Avalanche
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Avalanche
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
trace_filter searches across a range of Avalanche C-Chain blocks for traces that match criteria you supply — sender or receiver address, a fromBlock/toBlock window, and pagination via after and count. The C-Chain is Avalanche's EVM chain, where AVAX is the gas token and Snowman consensus finalizes blocks in roughly one to two seconds, so a single day already spans tens of thousands of blocks. Rather than tracing one transaction or one block at a time, this method scans the whole window and returns every matching call/create/suicide action. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a).
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | filter | object | Oui | Filter object with the following optional fields. |
| Type | Description |
|---|---|
| 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 Avalanche playground.
| Code | Message | Cause |
|---|---|---|
-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. |
after/count.trace namespace at all.eth_getLogs, traces are not indexed by topic — only by address and block number — so you cannot filter on event signatures here.Paramètres
Filter object with the following optional fields.