debug_traceBlockByNumber
Parameters
blockNumber
[REQUIRED] - The block number (HEX string format)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 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.TraceBlockByNumber(number uint64, config. *vm.Config) BlockTraceResult |
Console | debug.traceBlockByNumber(number, [options]) |
RPC | {"method": "debug_traceBlockByNumber", "params": [number, {}]} |
Example
Request
curl https://astar.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceBlockByNumber","params":["0x412A62", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'