Ethereum
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Ethereum
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
trace_filter is the search method of Ethereum's trace namespace. Instead of fetching the traces for one transaction or one block, you hand it a filter and it sweeps a range of blocks for every trace that matches. You can narrow by sender (fromAddress), recipient (toAddress), and a fromBlock/toBlock window, then page through the results with after and count. It's how you find, say, every internal ETH transfer that ever hit a particular contract on Ethereum mainnet (chain ID 1) without replaying each block yourself. Queries go to https://ethereum.therpc.io/YOUR_API_KEY, and each match comes back in the same flat shape as trace_transaction, carrying its own transactionHash and blockNumber.
toAddress to a contract and collect every internal ETH transfer it received across a block range, including value moves that left no log behind.fromAddress, then study the calls they fired to map out arbitrage and liquidation strategies.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 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 Ethereum 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 window is brutally slow and will often be rejected outright. Keep the range tight and walk it with after/count pagination rather than asking for a million blocks in one shot.eth_getLogs lets you filter by event topic; trace_filter only filters by address and block number, so you cannot query by event signature here.المعاملات
Filter object with the following optional fields.