debug_traceBlockByHash
It accepts a block hash and will replay the block that is already present in the database.
String - The hash of a transaction.
Object - tracer
- tracer: string - the type of tracer. Currently supports
callTracer
andprestateTracer
Array - Block traces
// Request
curl https://polygon.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByHash","params":["0xef332f22761b8dbf80ddb3bfdc4ec2f5ab92cf1e084fedaa989538958367b586", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": -
}
Last modified 10mo ago