debug_traceBlockByHash
It accepts a block hash and will replay the block that is already present in the database.
Parameters:
String - The hash of a block.
Object - tracer
tracer: string - the type of tracer. Currently supports
callTracer
andprestateTracer
Returns:
Array - Block traces
Example:
// Request
curl https://berachain-bartio.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByHash","params":["0xbc1c6724abc271ef3d27d87f078ff865d4b71a964682a525e02f986b23bda865", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result":{as described above}
}
Last updated
Was this helpful?