BNB Smart Chain
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
A fresh block lands on BNB Smart Chain about every three seconds under PoSA, and eth_newBlockFilter lets you catch each one without holding a socket open. Chain ID 56 pays fees in BNB. Call the method against https://bsc.therpc.io/YOUR_API_KEY and it spins up a server-side filter that tracks new block arrivals, returning a hex filter ID. Poll that ID with eth_getFilterChanges to collect the block hashes seen since your previous poll. Think of it as the request-response counterpart to a streaming newHeads subscription, a good fit for clients that cannot hold a persistent WebSocket to BNB Smart Chain.
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| string | Hex filter ID. When polled with eth_getFilterChanges, yields an array of new block hashes since the last poll. |
Try it live in the BNB Smart Chain playground.
| Código | Mensaje | Causa |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getBlockByHash when you need the contents.filter not found error surfaces.