BNB Smart Chain
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
BNB Smart Chain
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
A 32-byte block hash points at exactly one block, fork or no fork. That is what sets debug_traceBlockByHash apart from its by-number twin: feed it a hash and you get an opcode-level trace of every transaction in that specific block, even if a competing block won the same height. On BNB Smart Chain (BSC), where PoSA consensus seals a block roughly every three seconds and short reorgs do happen, that determinism matters. Send the request to chain ID 56 at https://bsc.therpc.io/YOUR_API_KEY. The call replays the whole block against historical state, so plan on a debug-enabled archive node.
callTracer, capturing each transaction's nested calls in fork order.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | blockHash | string | نعم | Hash of the block to trace. |
| 2 | options | object | لا | Same tracer configuration object as debug_traceTransaction. |
| النوع | الوصف |
|---|---|
| array | Array of per-transaction trace results in block order. Each element has the same shape as debug_traceTransaction output for the active tracer. |
Try it live in the BNB Smart Chain playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Block hash is missing or not a valid 32-byte hex value. |
-32000 | block not found | Block hash not found or archive state unavailable. |
debug_traceBlockByNumber, since both re-run every transaction the block carries.المعاملات
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.