Skip to main content
Returns the traces of every transaction in an RLP-encoded block, replayed with the given tracer. This method will use 80 Compute Units.
Traces need the state of the traced block, so World Chain Mainnet can trace the last 10,064 blocks, about 5.6 hours at World Chain’s 2-second block time. Older blocks return JSON-RPC error -32603 with a message that contains insufficient changesets to revert to block.

Parameters

block - String - Required - The RLP-encoded block as a hexadecimal string. World Chain Mainnet doesn’t serve debug_getRawBlock, so encode the block yourself or use debug_traceBlockByNumber, which takes a block number. object - Object - Required - The tracer object, same as debug_traceBlockByNumber: tracer (callTracer or prestateTracer), optional tracerConfig and timeout.

Returns

array - One entry per transaction in the block, each with a txHash and a result object in the shape the chosen tracer produces.