Optimism
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.
Optimism
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
trace_filter searches OP Mainnet traces across a range of blocks, returning a flat array of all call-tree entries that match your criteria — sender or receiver address, a fromBlock/toBlock window, and after/count pagination. It is the cross-block counterpart to trace_transaction: instead of one transaction, you scan many blocks for every internal call touching the addresses you care about. On OP Mainnet — the OP Stack rollup where ETH is the native gas and value token — send the request to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa) to mine internal activity that never surfaces as event logs.
| # | 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 Optimism 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 and paginate with after/count.trace_filter.eth_getLogs, traces are not indexed by topic, only by address and block number, so you cannot filter on event signatures here.Parâmetros
Filter object with the following optional fields.