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.
The other trace methods start from a single transaction or block. trace_filter works the other way around: you hand it search criteria, and it sweeps a range of BSC blocks for every trace that matches. Filter by sender or recipient address, set a from/to block window, and page through results with after and count. Query it on chain ID 56 at https://bsc.therpc.io/YOUR_API_KEY. The result is a flat array of every matching call, create, or self-destruct across all the blocks in range. BSC's ~3s blocks carry heavy BEP-20 and DeFi traffic, so that range can be enormous, which is why the call is heavy and depends on a trace-enabled archive node holding the full historical index.
| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | filter | object | Sim | Filter object with the following optional fields. |
| Tipo | Descrição |
|---|---|
| array | Flat array of matching trace objects, each with the same shape as trace_transaction results: `{action, result, subtraces, traceAddress, transactionHash, transactionPosition, blockHash, blockNumber, type}`. |
Try it live in the BNB Smart Chain playground.
| Código | Mensagem | Causa |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or client does not support trace_filter. |
-32602 | Invalid params | Filter object contains invalid fields, or block range is too wide for the node's configured limit. |
-32000 | query returned more than X results | Result set exceeded the node's per-request limit; narrow the block range or use pagination. |
eth_getLogs, traces are indexed only by address and block number, never by event topic, so you cannot filter on a log signature.Parâmetros
Filter object with the following optional fields.