# How heavy a transaction was inside the EVM

[Open the transaction in TraceFast →](https://tracefast.xyz/tx/0x6bb3103eec4ca8f4a324bbab71dc84f533af7e6be11ab8b13d0d10333bb9abc5)

Opcode counts of one transaction over every frame, the reverted ones included — SLOAD / SSTORE / TLOAD / TSTORE / KECCAK256 executions, precompile calls, CREATE and SELFDESTRUCT, whether a DELEGATECALL ran, distinct contracts whose storage it touched, and the gas spent in frames that reverted. Executions, not committed effects: `sstoreTotal` is not the number of committed writes. A transaction whose execution is not computed yet (usually minutes) answers 422.

```
GET https://tracefast.xyz/api/v1/chains/1/transactions/{hash}/execution-profile
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `hash` | path | string | Transaction hash, `0x`-prefixed, 64 hex characters, any case. |

**Access** — an [API key](/api/authentication) on the **Investigation** plan or higher ([plans](/api/authentication#plans)), or no key at all: pay per call with [x402](/api/x402) at the same path on `https://mpp.tracefast.xyz/api/v1`, at the price its `402` states. As a tool for AI agents: `get_transaction_execution_profile` on the [MCP server](/api/mcp-server). **Stable** — see [stability](/api/conventions#stability).

`chains/1` is a literal: other chain ids answer `404 chain_not_supported`. An unknown query parameter is refused rather than ignored.

## Response

`200 application/json`. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "hash": "0x6bb3103eec4ca8f4a324bbab71dc84f533af7e6be11ab8b13d0d10333bb9abc5",
    "blockNumber": 25920000,
    "txIndex": 168,
    "sloadTotal": 10,
    "sstoreTotal": 4,
    "tloadTotal": 0,
    "tstoreTotal": 0,
    "keccakTotal": 7,
    "precompileCalls": 0,
    "distinctStorageAddresses": 2,
    "delegatecallExecuted": true,
    "createCount": 0,
    "selfdestructCount": 0,
    "gasInRevertedFrames": "0"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918389321,
    "cached": false,
    "asOfBlock": 25920000,
    "docs": "https://docs.tracefast.xyz/api/transaction-execution-profile"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `blockNumber` | Height of the block that includes the transaction. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `createCount` | CREATE and CREATE2 frames, reverted frames included. |
| `delegatecallExecuted` | At least one DELEGATECALL frame executed, reverted frames included. |
| `distinctStorageAddresses` | Distinct contracts whose storage the transaction read or wrote. |
| `gasInRevertedFrames` | Gas spent in frames that reverted, decimal string. |
| `hash` | The transaction, lowercase and `0x`-prefixed. |
| `keccakTotal` | KECCAK256 executions. |
| `precompileCalls` | Calls into precompiled contracts. |
| `selfdestructCount` | SELFDESTRUCT executions, reverted frames included. |
| `sloadTotal` | SLOAD executions, reverted frames included. |
| `sstoreTotal` | SSTORE executions, reverted frames included — not the committed writes (`storage.writes` on the transaction). |
| `tloadTotal` | TLOAD executions (EIP-1153). |
| `tstoreTotal` | TSTORE executions (EIP-1153). |
| `txIndex` | Position of the transaction within its block, from `0`. |

`meta` is the same envelope on every method — see [conventions](/api/conventions#meta).

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: malformed hash, or an unknown query parameter |
| 404 | `not_found`: no transaction with this hash is known; `chain_not_supported`; or an unknown path |
| 422 | `block_not_available`: `reason: coverage_gap` — not computed yet; `reason: block_not_available` — older than the first block served |
| 503 | `service_unavailable`: temporarily unavailable; retry; or `service_degraded`: who is calling could not be established right now; retry after `Retry-After`. |

Malformed input, unknown parameters and the key check's `401`/`403`/`429`/`503` are the same for every method — see [conventions](/api/conventions#errors) and [API keys](/api/authentication#when-a-key-is-refused).

## Related pages

* [One transaction](/api/transaction)
* [Transaction events](/api/transaction-events)
* [Why it reverted](/api/transaction-failures)
* [Execution trace](/api/trace)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
