Skip to content

trace_block ​

served · same as reth

Returns the traces of all transactions of a block as one flat list.

When to use ​

Use it to index the internal calls and transfers of a whole block.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "trace_block", "params": ["0x18facaa"]}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "trace_block",
  "params": [
    "0x18facaa"
  ]
}

Response ​

Live mainnet, block 26193066, 2026-10-14. Checked against reth 2.7: equal.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "from": "0x8d8d7ea4761e3c0a78652331a844a121a63ac2b3",
        "callType": "call",
        "gas": "0x0",
        "input": "0x",
        "to": "0x351101b6341abb86b68bd5d18d26d8ddfe13fee1",
        "value": "0x1db0508fb65ee"
      },
      "blockHash": "0x5ae7b3bea1d0773e6f124069319201fa7963401336f072a58f68bc3fee920047",
      "blockNumber": 26193066,
      "result": {
        "gasUsed": "0x0",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0x6aab65ac3b5c83ca28846ab031e5f75d853aa8f496c8f4b83760f35423a0b950",
      "transactionPosition": 0,
      "type": "call"
    },
    "... 302 more items"
  ]
}

Full response

Parameters ​

NameTypeRequiredMeaning
blockblock number in hex, or a tag, see Block parameteryesThe block.

Returns ​

A list of traces for every transaction of the block, in order. Each trace has transactionHash and transactionPosition. See Trace (trace_*).

Notes and limits ​

  • Tracing works for the head and the 127 blocks before it.

Errors ​

CodeMessageWhen
-32001block not found: 0x...The block is above the head.
4444pruned history unavailable: requested N, earliest available MThe block is below the first block of the node.
-32603failed to apply blockhash contract call: database error: Database error: insufficient changesets to revert to block #N. Available changeset range: A..=BThe state of the parent block is gone: it is more than 128 blocks below the head. Below the first block of the node, the error is 4444.
-32602genesis is not traceableThe block is block 0.

Compared with reth ​

The live example above gives the same answer on Cinder and on reth 2.7.

Speed against reth ​

1.17x faster
Cinder65 ms
reth76 ms
Median, reth 2.7, 2026-10-17. Shorter is better.

trace_transaction, trace_filter, debug_traceBlockByNumber.

Schema (OpenRPC) ​

More: trace_block.

Parameter block: BlockNumberOrTag
json
{
  "title": "Block number or tag",
  "oneOf": [
    {
      "title": "hex encoded unsigned integer",
      "type": "string",
      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
    },
    {
      "title": "Block tag",
      "type": "string",
      "enum": [
        "earliest",
        "finalized",
        "safe",
        "latest",
        "pending"
      ],
      "description": "latest is the head of the last forkchoice update, as reth. pending is the block that Cinder builds from its transaction pool after latest, as reth. safe and finalized are the blocks of the last forkchoice update, as reth. Before the first update, they name no block. earliest is the first block that the node stored, as reth."
    }
  ]
}
Result: LocalizedParityTrace[]
json
{
  "type": "array",
  "items": {
    "title": "Parity call trace with its position",
    "allOf": [
      {
        "title": "Parity call trace",
        "type": "object",
        "properties": {
          "action": {
            "title": "Parity trace action",
            "type": "object",
            "description": "A call, create or self-destruct action. The fields depend on the type.",
            "properties": {
              "callType": {
                "type": "string"
              },
              "from": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              "to": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              "gas": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "input": {
                "title": "hex encoded bytes",
                "type": "string",
                "pattern": "^0x[0-9a-f]*$"
              },
              "value": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "init": {
                "title": "hex encoded bytes",
                "type": "string",
                "pattern": "^0x[0-9a-f]*$"
              },
              "address": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              "balance": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "refundAddress": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              }
            }
          },
          "result": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "gasUsed": {
                    "title": "hex encoded unsigned integer",
                    "type": "string",
                    "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                  },
                  "output": {
                    "title": "hex encoded bytes",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]*$"
                  },
                  "address": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  },
                  "code": {
                    "title": "hex encoded bytes",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]*$"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "type": "string"
          },
          "subtraces": {
            "type": "integer"
          },
          "traceAddress": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "call",
              "create",
              "suicide",
              "reward"
            ]
          }
        }
      },
      {
        "type": "object",
        "properties": {
          "blockHash": {
            "title": "32 byte hex value",
            "type": "string",
            "pattern": "^0x[0-9a-f]{64}$"
          },
          "blockNumber": {
            "type": "integer"
          },
          "transactionHash": {
            "title": "32 byte hex value",
            "type": "string",
            "pattern": "^0x[0-9a-f]{64}$"
          },
          "transactionPosition": {
            "type": "integer"
          }
        }
      }
    ]
  }
}