Ethereum
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.
Ethereum
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
trace_filter is the search method of Ethereum's trace namespace. Instead of fetching the traces for one transaction or one block, you hand it a filter and it sweeps a range of blocks for every trace that matches. You can narrow by sender (fromAddress), recipient (toAddress), and a fromBlock/toBlock window, then page through the results with after and count. It's how you find, say, every internal ETH transfer that ever hit a particular contract on Ethereum mainnet (chain ID 1) without replaying each block yourself. Queries go to https://ethereum.therpc.io/YOUR_API_KEY, and each match comes back in the same flat shape as trace_transaction, carrying its own transactionHash and blockNumber.
toAddress to a contract and collect every internal ETH transfer it received across a block range, including value moves that left no log behind.fromAddress, then study the calls they fired to map out arbitrage and liquidation strategies.| # | 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 Ethereum 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. |
fromBlock/toBlock window is brutally slow and will often be rejected outright. Keep the range tight and walk it with after/count pagination rather than asking for a million blocks in one shot.eth_getLogs lets you filter by event topic; trace_filter only filters by address and block number, so you cannot query by event signature here.Parâmetros
Filter object with the following optional fields.