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.