# Who writes a contract's storage

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

The accounts that wrote a contract's storage, ranked by the number of writes — each row a pair of the CALLER (who called the frame that wrote) and the EXECUTION address (whose code ran in it: the contract itself, or an implementation it delegated to) — with the writes, the transactions (an estimate on large contracts), and the first and last block. `totalPairs` counts every pair; the list is the top `limit` of them, not a page of a feed, ties broken by caller and then execution address. The ranking and its pairs are refreshed once a day: a pair that started writing, or overtook another, since then is not reflected yet; the counts and blocks are refreshed hourly. No names are stated.

```
GET https://tracefast.xyz/api/v1/chains/1/contracts/{address}/storage/writers
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The contract, `0x` + 40 hex, any case. |
| `limit` | query | integer, optional | 1 to 100, default 25. |

**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_storage_writers` 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",
    "totalPairs": 37360301,
    "writers": [
      {
        "callerAddress": "0x7ec8a30a34b86927dc77b302603d1d53e640bef7",
        "executionAddress": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",
        "writeCount": 31279161,
        "uniqueTxs": 600195,
        "firstBlock": 24430813,
        "lastBlock": 26434414
      },
      {
        "callerAddress": "0xdc4858741e738bb304fc5b290e7b9453da6a5baa",
        "executionAddress": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",
        "writeCount": 18883572,
        "uniqueTxs": 848966,
        "firstBlock": 24522300,
        "lastBlock": 26434412
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918347130,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/contract-storage-writers"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `address` | The contract, lowercase and `0x`-prefixed. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `totalPairs` | How many (caller, execution address) pairs wrote its storage in all. |
| `writers` | The top pairs by writes. |

### `data.writers[]`

| Field | Meaning |
|---|---|
| `callerAddress` | Who called the frame that wrote. |
| `executionAddress` | Whose code ran in that frame — the contract itself, or an implementation it delegated to. |
| `firstBlock` | First block this pair wrote in. |
| `lastBlock` | Last block this pair wrote in. |
| `uniqueTxs` | Distinct transactions they happened in — an estimate on large contracts. |
| `writeCount` | Storage writes by this pair. |

`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 |
| 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
