# Accounts a transaction changed

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

Every account one transaction changed, with its balance, nonce and code hash before and after, whether it existed before, still exists after, and whether its storage was wiped — the net effect of the whole transaction, inner calls included, ETH and gas fee included. Two rules of the source: the fee recipient has no row when its only change is the priority fee, and an account created and destroyed within the transaction has no row. A transaction whose execution is not computed yet (usually minutes) answers 422, never an empty list.

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

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

**Access** — an [API key](/api/authentication) on the **Enriched Data** 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_account_changes` 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",
    "accounts": [
      {
        "address": "0x07d65f37f0b4e10070eb683e51ebce416eb5aa3a",
        "existedBefore": true,
        "existsAfter": true,
        "balanceBefore": "16283832972300424",
        "balanceAfter": "16073092077857788",
        "nonceBefore": 205,
        "nonceAfter": 206,
        "codeHashBefore": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "codeHashAfter": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "storageDestroyed": false
      },
      {
        "address": "0x4cd00e387622c35bddb9b4c962c136462338bc31",
        "existedBefore": true,
        "existsAfter": true,
        "balanceBefore": "14020066642164261404",
        "balanceAfter": "14020266642164261404",
        "nonceBefore": 1,
        "nonceAfter": 1,
        "codeHashBefore": "0x27fed69438cf2a1e69f053e52d5ee6f9637963c44da6035fb9241063240c799e",
        "codeHashAfter": "0x27fed69438cf2a1e69f053e52d5ee6f9637963c44da6035fb9241063240c799e",
        "storageDestroyed": false
      }
    ],
    "truncated": false
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918388744,
    "cached": false,
    "asOfBlock": 25920000,
    "docs": "https://docs.tracefast.xyz/api/transaction-account-changes"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `accounts` | Ordered by address. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `hash` | The transaction, lowercase and `0x`-prefixed. |
| `truncated` | More accounts than the cap (5 000): these are the first ones by address. |

### `data.accounts[]`

| Field | Meaning |
|---|---|
| `address` | The account, lowercase and `0x`-prefixed. |
| `balanceAfter` | Balance in wei after the transaction, as a decimal string. Absent when the account does not exist after it — never `"0"`. |
| `balanceBefore` | Balance in wei before the transaction, as a decimal string. Absent when the account did not exist before — never `"0"`. |
| `codeHashAfter` | Code hash after the transaction, `0x`-prefixed (the hash of empty code for an account without code). Absent when the account does not exist after it. |
| `codeHashBefore` | Code hash before the transaction, `0x`-prefixed (the hash of empty code for an account without code). Absent when the account did not exist before. |
| `existedBefore` | The account existed before the transaction. `false` means every `…Before` field is absent. |
| `existsAfter` | The account exists after the transaction. `false` (destroyed) means every `…After` field is absent. |
| `nonceAfter` | Nonce after the transaction. Absent when the account does not exist after it. |
| `nonceBefore` | Nonce before the transaction. Absent when the account did not exist before. |
| `storageDestroyed` | The account's storage was wiped by the transaction. |

`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, retry later; `reason: block_not_available` — older than the first block served (`minAvailableBlock`) |
| 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
