Skip to content

trace_get ​

served · same as reth

Returns one trace of a transaction, by its trace address.

When to use ​

Use it to read one call of a transaction when you know its place in the call tree.

Example ​

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

Response ​

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

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "action": {
      "from": "0x0000000aa232009084bd71a5797d089aa4edfad4",
      "callType": "call",
      "gas": "0x65d17",
      "input": "0x48c89491000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002bd0000cca0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000082bedcbe00000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000aa059a20000000000000000000003bd97020d200000000000000000... 1146 more characters",
      "to": "0x000000000004444c5dc75cb358380d2e3de08a90",
      "value": "0x0"
    },
    "blockHash": "0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
    "blockNumber": 26193069,
    "result": {
      "gasUsed": "0x34ed0",
      "output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000"
    },
    "subtraces": 1,
    "traceAddress": [
      0
    ],
    "transactionHash": "0xa457d1d714f7c63b99f3846b390c13ae45d5f41952cc657d369b439b8fc8fa16",
    "transactionPosition": 0,
    "type": "call"
  }
}

Full response

Parameters ​

NameTypeRequiredMeaning
transactionHash32-byte hashyesThe transaction.
indiceslist of hex numbersyesThe trace address of the call. [] is the top call. ["0x0"] is its first sub-call, ["0x0", "0x1"] is the second sub-call of that call.

Returns ​

The trace at that position, or null when it does not exist. See Trace (trace_*).

Compared with reth ​

The trace address, the null answer and the errors for bad indices are those of reth.

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

trace_transaction.

Schema (OpenRPC) ​

More: trace_get.

Parameter hash: Hash32
json
{
  "title": "32 byte hex value",
  "type": "string",
  "pattern": "^0x[0-9a-f]{64}$"
}
Parameter indices: Quantity[]
json
{
  "type": "array",
  "minItems": 1,
  "maxItems": 1,
  "items": {
    "title": "hex encoded unsigned integer",
    "type": "string",
    "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
  }
}
Result: LocalizedParityTrace or null
json
{
  "oneOf": [
    {
      "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"
            }
          }
        }
      ]
    },
    {
      "type": "null"
    }
  ]
}