# Who changed a proxy's implementation or admin, and when

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

Every write to a proxy's control slots — the EIP-1967 implementation, admin and beacon slots and the older OpenZeppelin slot — newest first, one row per write: the block and transaction, which slot, the value before and after, who called the frame that wrote it and whose code ran in it. `kind` is `upgrade` (a value written), `unset` (the slot written to zero) or `cleared` (wiped with the account, pre-Cancun SELFDESTRUCT); other values may be added. An `upgrade` whose previous value is all zeros means the slot was empty before the write — not necessarily its first deployment. History of the OWNER role is not here: only storage slots that proxies use for control. `meta.asOfBlock` is how far the history is known. Continue with `nextCursor`.

```
GET https://tracefast.xyz/api/v1/chains/1/contracts/{address}/control-history
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The proxy, `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. |

**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_contract_control_history` 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`, USDC. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "changes": [
      {
        "blockNumber": 18963716,
        "txIndex": 35,
        "txHash": "0xae3ad89e569f27d47a8a02999a6d937c12aaa6bc50e66650e7cbd3244bde9951",
        "slot": "oz_v1",
        "kind": "upgrade",
        "oldValue": "0x000000000000000000000000a2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "newValue": "0x00000000000000000000000043506849d7c04f9138d1a2050bbf3a0c054402dd",
        "callerAddress": "0x9999fa87f5a1d1c64e7c709838b92006ab0cc1ad",
        "executionAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
      },
      {
        "blockNumber": 12317814,
        "txIndex": 80,
        "txHash": "0xe2e40640ffd5f76538cd23660cf56f00bfebd5fe925ebad6b8067c4cee18a2c3",
        "slot": "oz_v1",
        "kind": "upgrade",
        "oldValue": "0x000000000000000000000000b7277a6e95992041568d9391d09d0122023778a2",
        "newValue": "0x000000000000000000000000a2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "callerAddress": "0xd13689e8da0ed95b55100e27b7dbc95c03b5259b",
        "executionAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
      }
    ],
    "nextCursor": "AVsxMjMxNzgxNCw4MCwiNzA1MGM5ZTBmNGNhNzY5YzY5YmQzYThlZjc0MGJjMzc5MzRmOGUyYzAzNmU1YTcyM2ZkOGVlMDQ4ZWQzZjhjMyIsIjAwMDAwMDBhIiwiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwYTIzMjdhOTM4ZmViZjVmZWMxM2JhY2ZiMTZhZTEwZWNiYzRjYmRjZiJdYfvzg6bDaqM2Y1bMhocKnA"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918331936,
    "cached": true,
    "asOfBlock": 26434116,
    "docs": "https://docs.tracefast.xyz/api/contract-control-history"
  }
}
```

### `data`

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

### `data.changes[]`

| Field | Meaning |
|---|---|
| `blockNumber` | Block of the write. |
| `callerAddress` | Who called the frame that wrote the slot, lowercase and `0x`-prefixed. |
| `executionAddress` | Whose code ran in the frame that wrote the slot, lowercase and `0x`-prefixed. |
| `kind` | `upgrade` (a value written), `unset` (written to zero) or `cleared` (wiped with the account). Other values may be added. |
| `newValue` | The value written (all zeros on a `cleared` row). |
| `oldValue` | The slot's value before the write, 32-byte hex. All zeros means the slot was empty before — not necessarily a first deployment. Absent when it cannot be stated. |
| `slot` | The slot: `eip1967_impl` (implementation), `eip1967_admin` (admin), `beacon`, `oz_v1` (the older OpenZeppelin implementation slot) or `safe_singleton` (a Safe's master copy). Other values may be added. |
| `txHash` | Hash of the writing transaction, lowercase and `0x`-prefixed. |
| `txIndex` | Position of the writing 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`: 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 |

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 contract](/api/contract)
* [Bytecode](/api/contract-bytecode)
* [Function selectors](/api/contract-selectors)
* [Disassembly](/api/contract-disassembly)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
