BNB Smart Chain
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
BNB Smart Chain
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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 não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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 | Mensagem | 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.