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.