Skip to main content

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 from
    • to - The address the transaction is directed to
    • gas - The gas provided for the transaction execution
    • gasUsed - The gasPrice used for each paid gas
    • input - The data sent along with the transaction
    • output - The output data
    • type - Type of the transaction
    • value - The value transferred in Wei, encoded as a hexadecimal
ClientMethod invocation
Godebug.TraceBlockByHash(hash common.Hash, config. *vm.Config) BlockTraceResult
Consoledebug.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"}'