Base
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
trace_block returns the OpenEthereum-style call-tree traces for every transaction in a single Base block, flattened into one array. Base is the OP Stack optimistic rollup Coinbase runs, with roughly two-second blocks, ETH as the gas token, and settlement to Ethereum L1. Address the block by number or by a tag such as latest and send the request to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105). The node returns each call, create, and self-destruct action across the whole block, with a transactionPosition field on every entry so you can tell which transaction it came from. This is the trace-namespace way to capture all of a Base block's internal activity in one round trip.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 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 Base 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. |
pending tag for production data — a pending Base block can still change before it is finalized, so the traces you read may not match the canonical block.المعاملات
hex block number or "latest" | "earliest" | "pending"