Comment on page
debug_traceBlockByHash
Accepts a block hash and will replay the block that is already present in the database.
hash
[REQUIRED]- Hash of the block to be tracedtracer
[REQUIRED] - The tracer type
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 {}]} |
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"}'
Last modified 3mo ago