# Blockscout Transaction Raw Trace

> Blockscout Transaction Raw Trace is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-12).

Retrieves the raw execution trace of a specific transaction on a given blockchain network via Blockscout's multichain explorer API

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/%7Btransaction_hash_param%7D/raw-trace
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-transaction-raw-trace-2981113c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sCxTyOux-hzsAo9RSAITp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockscout-transaction-raw-trace-2981113c
```

Example prompt: Can you pull the raw execution trace for transaction 0xabc123...def on Ethereum (chain ID 1) using Blockscout so I can see all the internal calls and gas usage?

## When to prefer this

Use this endpoint when you need the lowest-level raw EVM execution trace for a specific transaction — especially for debugging smart contract failures, auditing internal call sequences, or analyzing gas consumption at the sub-call level. Prefer this over higher-level transaction detail endpoints when you need the full opcode-level trace structure rather than just decoded logs or token transfers.

## Known failure modes

- Invalid or unknown transaction hash returns empty array or 404
- Unsupported chain_id returns an error or empty response
- Transaction not yet indexed by Blockscout returns 404 or empty
- Network latency or Blockscout node unavailability causes timeout
- Transactions on chains that don't support trace APIs may return empty traces

## How this service works

Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data

## Output

Returns an array of raw trace objects for the transaction, each containing: trace type, action details (from/to addresses, gas limit, input data, value transferred, call type or init code), result (output data, gas used), number of subtraces, trace address path, and the originating transaction hash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "chain_id": {
       "type": "string"
      },
      "transaction_hash_param": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": [
  {
   "type": "string",
   "action": {
    "to": "string",
    "gas": "string",
    "from": "string",
    "init": "string",
    "input": "string",
    "value": "string",
    "callType": "string"
   },
   "result": {
    "output": "string",
    "gasUsed": "string"
   },
   "subtraces": 0,
   "traceAddress": [
    0
   ],
   "transactionHash": "string"
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-transaction-raw-trace-2981113c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockscout.com](https://www.zero.xyz/host/api.blockscout.com/llms.txt)
