Skip to main content

debug_traceBlockByHash

Parameters

  • hash [REQUIRED]- Hash of the block to be traced
  • tracer [REQUIRED] - The tracer type

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://astar.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceTransaction","params":["0x36bbac12f3d2d4d221785fe62ca681c2bceaa3cbc6d706156054722997eb1a2c",{"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'