Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | blockParameter | string | نعم | Block whose transactions to trace. |
| النوع | الوصف |
|---|---|
| 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.
| الكود | الرسالة | السبب |
|---|---|---|
-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.المعاملات
hex block number or "latest" | "earliest" | "pending"