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_block returns the OpenEthereum-style call-tree traces for every transaction in a single Avalanche C-Chain block, selected by block number or by a tag such as latest. 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. Unlike the opcode-level debug_* tracers, this returns a flat list of call/create/suicide actions, which is ideal for extracting internal transfers at scale. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a). Each trace in the flat array carries a transactionPosition so you can tell which transaction it belongs to.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockParameter | string | Oui | Block whose transactions to trace. |
| Type | Description |
|---|---|
| array | Flat array of all trace objects across all transactions in the block. Each object has the same shape as individual entries from trace_transaction, with `transactionPosition` indicating which transaction it belongs to. |
Try it live in the Avalanche playground.
| Code | Message | Cause |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client. |
-32602 | Invalid params | blockParameter is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or trace archive data is unavailable. |
debug namespace is not enough, and many public Avalanche endpoints do not expose the trace namespace at all.pending tag for production data — on a chain that produces a block every second or two, the pending set can change before the block is finalized.Paramètres
hex block number or "latest" | "earliest" | "pending"