Skip to main content

debug_traceBlockByNumber

Returns the tracing result by executing all transactions in the block specified by the block number with a tracer.

Params

(2)

1. block_number (required)

string<hex>

2. tracer (required)

tracer
string
required
Allowed values:
callTracerprestateTracer

Result

(MonadDebugTraceBlockResult)
result
MonadCallFrame
required
error
string or null
from
string<hex>
required
gas
string<hex>
required
gasUsed
string<hex>
required
input
string<hex>
required
output
string<hex>
required
revertReason
string or null
to
type
string
required
Allowed values:
CALLDELEGATECALLCALLCODECREATECREATE2SELFDESTRUCTSTATICCALL
value
txHash
string<hex>
required

Params

block_number

tracer


Request

await window.ethereum.request({
"method": "debug_traceBlockByNumber",
"params": [
null,
null
]
});