# Every block that changed an account's balance, nonce or code

[Open the address on its entity page →](https://tracefast.xyz/entity/0xd8da6bf26964af9d7eed9e03e53415d37aa96045)

The history of one account's own state, newest first — one entry per block that changed its balance, nonce or code, with the values before and after the block (the net change over the whole block, not per transaction) and whether the account came into existence in it. A change made by someone else counts too: receiving ETH from a transaction or a validator withdrawal, being self-destructed into. The list is known up to `meta.asOfBlock`, which is published in steps and can trail the chain head by a few minutes: a newer change is not listed yet. Continue with `nextCursor`.

```
GET https://tracefast.xyz/api/v1/chains/1/entities/{address}/state-changes
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The account, `0x` + 40 hex, any case. |
| `limit` | query | integer, optional | 1 to 100, default 25. |
| `cursor` | query | string, optional | `nextCursor` of the previous page. Opaque, and valid only for this method and this account. |

**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_entity_state_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,
    "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "changes": [
      {
        "blockNumber": 26399548,
        "timestamp": 1794494759,
        "balanceChanged": true,
        "nonceChanged": false,
        "codeChanged": false,
        "created": false,
        "balanceBefore": "5794616987480413546",
        "balanceAfter": "5798969845714110716",
        "nonceBefore": 5970,
        "nonceAfter": 5970,
        "codeHashBefore": "0xd8ef78646344da0ceb69cbcdb306939b3ba0514174fa28b6c6fa189953ff226d",
        "codeHashAfter": "0xd8ef78646344da0ceb69cbcdb306939b3ba0514174fa28b6c6fa189953ff226d"
      },
      {
        "blockNumber": 26384365,
        "timestamp": 1794311939,
        "balanceChanged": true,
        "nonceChanged": false,
        "codeChanged": false,
        "created": false,
        "balanceBefore": "5794416376380413546",
        "balanceAfter": "5794616987480413546",
        "nonceBefore": 5970,
        "nonceAfter": 5970,
        "codeHashBefore": "0xd8ef78646344da0ceb69cbcdb306939b3ba0514174fa28b6c6fa189953ff226d",
        "codeHashAfter": "0xd8ef78646344da0ceb69cbcdb306939b3ba0514174fa28b6c6fa189953ff226d"
      }
    ],
    "nextCursor": "AVsyNjM4NDM2NV0OXFGD0f5REmNbQYHdU65D"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918362214,
    "cached": false,
    "asOfBlock": 26434638,
    "docs": "https://docs.tracefast.xyz/api/entity-state-changes"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `address` | The account, lowercase and `0x`-prefixed. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `changes` | The changes of this page, newest block first. |
| `nextCursor` | Cursor of the next page. Absent on the last page. |

### `data.changes[]`

| Field | Meaning |
|---|---|
| `balanceAfter` | Balance in wei at the end of the block, as a decimal string. |
| `balanceBefore` | Balance in wei before the block, as a decimal string. Absent when the account did not exist before — never `"0"`. |
| `balanceChanged` | `true` when the native balance changed in the block. |
| `blockNumber` | The block. |
| `codeChanged` | `true` when the code changed in the block. |
| `codeHashAfter` | Code hash at the end of the block, `0x`-prefixed. Absent where it is not recorded. |
| `codeHashBefore` | Code hash before the block, `0x`-prefixed. Absent where it is not recorded. |
| `created` | The account did not exist before this block: a first receipt of ETH, a first EIP-7702 delegation, or a deployment. Every `…Before` field is then absent. |
| `nonceAfter` | Nonce at the end of the block. |
| `nonceBefore` | Nonce before the block. Absent with `balanceBefore`. |
| `nonceChanged` | `true` when the nonce changed in the block. |
| `timestamp` | Block time, Unix seconds. |

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

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: a malformed address (`reason: address_invalid`), `limit` outside 1 to 100, or an unknown query parameter; `invalid_cursor` |
| 404 | `chain_not_supported`, or an unknown path |
| 503 | `service_unavailable`: how far the history is known cannot be read right now; retry later; 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

* [Resolve a name](/api/entity-resolve)
* [One address](/api/address)
* [Activity](/api/address-activity)
* [Daily activity](/api/address-daily-activity)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
