# Totals of a contract's storage writes

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

The totals of every write to a contract's storage over its history — how many writes, how many distinct slots, callers and executing code addresses (estimates on large contracts), the first and last block written, how many writes ran through DELEGATECALL (code borrowed from another contract, as in a proxy) and their share, and the deepest call depth a write happened at. The totals are refreshed hourly: the newest writes are not counted yet, and an address whose first write is that recent answers 404 like one that never wrote. No names are stated.

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

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The contract, `0x` + 40 hex, 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_contract_storage_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`, USDC. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "totalWrites": 980400692,
    "uniqueSlots": 64394403,
    "uniqueCallers": 35790647,
    "uniqueExecutors": 5,
    "firstWriteBlock": 6082465,
    "lastWriteBlock": 26434414,
    "delegatecallWrites": 980400679,
    "delegatecallShare": 99.99999867401155,
    "maxCallDepth": 188
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918345673,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/contract-storage-profile"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `address` | The contract, lowercase and `0x`-prefixed. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `delegatecallShare` | `delegatecallWrites` as a share of all writes, percent (0–100). |
| `delegatecallWrites` | Writes that ran through DELEGATECALL. |
| `firstWriteBlock` | The first block a write happened in. |
| `lastWriteBlock` | The last block a write happened in. |
| `maxCallDepth` | The deepest call depth a write happened at. |
| `totalWrites` | Storage writes in all. |
| `uniqueCallers` | Distinct callers of the frames that wrote — an estimate on large contracts. |
| `uniqueExecutors` | Distinct addresses whose code executed the writes — an estimate on large contracts. |
| `uniqueSlots` | Distinct storage slots written — an estimate on large contracts. |

`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`) or an unknown query parameter |
| 404 | `not_found`: no storage write is recorded for the address as of the last hourly refresh; `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
