debug_traceBlockByHash

Replay the block that is already present in the database (Trace Mode required).

📘

Supported on Arbitrum One (Nitro) only.

Parameters

  • hash - Hash of the block to be traced.

Returns

  • array - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
    • results - Trace Object, which has the following fields:
      • calls - Array of transactions in the block with the following fields.
        • from - Address
        • gas - Quantity
        • gasused - Quantity
        • input - Data
        • otput - Data
        • to - Address
        • type - Data
        • value - Quantity

API Endpoint

The format of an Arbitrum Nova API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/arbitrum-nitro/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/arbitrum-nitro/

Example

Request

curl https://open-platform.nodereal.io/{{apiKey}}/arbitrum-nitro/ \
 -X POST \
 -H "Content-Type: application/json" \
 --data '{"method":"debug_traceBlockByHash","params":["0x97b49e43632ac70c46b4003434058b18db0ad809617bd29f3448d46ca9085576", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'

Result