Skip to main content
GET
/
{chain_id}
/
api
/
v2
/
transactions
/
{transaction_hash_param}
/
raw-trace
Get step-by-step execution trace for a specific transaction
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/raw-trace \
  --header 'Authorization: Bearer <token>'
[
  {
    "action": {
      "from": "<string>",
      "gas": "<string>",
      "input": "<string>",
      "value": "<string>",
      "init": "<string>",
      "to": "<string>"
    },
    "subtraces": 1,
    "traceAddress": [
      123
    ],
    "result": {
      "gasUsed": "<string>",
      "output": "<string>"
    },
    "transactionHash": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header.

Path Parameters

transaction_hash_param
string
required

Transaction hash in the path

Pattern: ^0x([A-Fa-f0-9]{64})$
chain_id
string
required

The ID of the blockchain

Response

Raw execution trace for the specified transaction.

action
object
required
subtraces
integer
required
Required range: x >= 0
traceAddress
integer[]
required
type
enum<string>
required
Available options:
call,
create,
create2,
reward,
selfdestruct,
stop,
invalid
result
object
transactionHash
string | null
Pattern: ^0x([A-Fa-f0-9]{64})$