BNB Smart Chain
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
BNB Smart Chain
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
BNB Smart Chain settles BNB-denominated transactions into blocks roughly every three seconds, so a stateless application needs an efficient way to ask "what is new?" eth_getFilterChanges does exactly that: hand it a filter ID and it returns only the events that arrived since your previous call, advancing an internal cursor each time. The payload type follows the filter — log objects for a log filter, block-hash strings for a block filter, or transaction-hash strings for a pending filter. Direct the poll at https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 to keep an indexer current without re-sending the filter criteria.
eth_newBlockFilter once, then call this method on repeat to learn of each newly sealed block.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | filterId | string | Oui | The filter ID to poll. |
| Type | Description |
|---|---|
| array | For log filters: array of log objects. For block filters: array of block hash strings. For pending-tx filters: array of transaction hash strings. Empty array if no new events. |
Try it live in the BNB Smart Chain playground.
| Code | Message | Cause |
|---|---|---|
-32000 | filter not found | Filter ID is invalid, expired (>5 min inactivity), or was already uninstalled. |
removed flag on each one to catch entries rolled back by a BSC reorg and undo them downstream.Paramètres
Hex filter ID from eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter