Optimism
Optimism
Optimism
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | filter | object | 是 | Filter object with the following optional fields. |
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.参数
Filter object with the following optional fields.