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://t3rn.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByHash","params":["0x8a7c32a1810f6b940bb46aa0c569d3c0f01a6e5fbb2d9f471cb2124b5eccea29", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": [ - ]
}
Last updated
Was this helpful?