Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
trace_filter searches across a range of Base blocks and returns every trace that matches the criteria you set — sender or receiver address, a fromBlock/toBlock range, and after/count pagination. Base is the OP Stack optimistic rollup built by Coinbase, with ETH gas and settlement to Ethereum L1, so its trace data follows the OpenEthereum shape. Post the filter object to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) and the node walks the requested block window, returning a flat array of matching call, create, and self-destruct traces. It is the query tool of the trace namespace: instead of tracing one block or one transaction at a time, you ask "show me everything touching this address between these blocks."
toAddress on the filter — these include transfers that emit no event log.fromAddress of known bot wallets across a busy block window.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Base 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 page with after/count.trace_filter at all.eth_getLogs, traces are not indexed by topic — you can only filter by address and block number, so you cannot query by event signature here.参数
Filter object with the following optional fields.