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.
BNB Smart Chain operates as chain ID 56 and meters gas in BNB, and eth_newPendingTransactionFilter lets you observe its mempool as transactions queue up ahead of the next ~3-second PoSA block. Directed at https://bsc.therpc.io/YOUR_API_KEY, it creates a server-side filter for incoming pending transactions and returns a hex filter ID. Poll that ID with eth_getFilterChanges and the node hands back the hashes of pending transactions it has seen since your last poll, giving polling clients a mempool feed without keeping a WebSocket open 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 pending transaction 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_getTransactionByHash when you need sender, value, or calldata.eth_subscribe newPendingTransactions stream over WebSocket.