debug_traceBlockByHash
Parameters
- hash - Hash of the block to be traced.
Returns:
Object
- Full trace of the block.
result
- Trace Object, which has the following fields:from
- The address the transaction is sent fromto
- The address the transaction is directed togas
- The gas provided for the transaction executiongasUsed
- The gasPrice used for each paid gasinput
- The data sent along with the transactionoutput
- The output datatype
- Type of the transactionvalue
- The value transferred in Wei, encoded as a hexadecimal
Client | Method invocation |
---|---|
Go | debug.TraceBlockByHash(hash common.Hash, config. *vm.Config) BlockTraceResult |
Console | debug.traceBlockByHash(hash, [options]) |
RPC | {"method": "debug_traceBlockByHash", "params": [hash {}]} |
Example
Request
curl https://eth-mainnet.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceBlockByHash","params":["0x91c3c6efc7801dc2b76972a9c3396dff2c82d40f1625fcef703f6ad378f4e18f", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'