# How a contract's storage was read and written, per day

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

For each UTC day of a window, oldest first, how many transactions touched a contract's storage, read it, wrote it, or only read it without writing (a dependency on its state); the SLOAD and SSTORE opcode counts (reverted frames included — opcodes, not distinct slots); the transient storage opcodes TLOAD and TSTORE (EIP-1153); and the slot touches (distinct slots per transaction, summed). Only days with activity have a row: a missing day is not a zero stated. The last day is partial — it holds the blocks through `readThroughBlock`.

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

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The contract, `0x` + 40 hex, any case. |
| `days` | query | integer, optional | The window in UTC days, 1 to 365, default 90. |

**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_activity` 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",
    "fromDate": "2026-11-16",
    "toDate": "2026-11-17",
    "readThroughBlock": 26434300,
    "series": [
      {
        "date": "2026-11-16",
        "txsTouching": 336028,
        "txsReading": 336028,
        "txsWriting": 332773,
        "txsReadOnly": 3255,
        "sloadOpcodeTotal": 7195813,
        "sstoreOpcodeTotal": 1298590,
        "tloadTotal": 0,
        "tstoreTotal": 0,
        "sloadSlotTouches": 2122311,
        "sstoreSlotTouches": 1020861
      },
      {
        "date": "2026-11-17",
        "txsTouching": 118853,
        "txsReading": 118853,
        "txsWriting": 117747,
        "txsReadOnly": 1106,
        "sloadOpcodeTotal": 3047008,
        "sstoreOpcodeTotal": 573857,
        "tloadTotal": 0,
        "tstoreTotal": 0,
        "sloadSlotTouches": 861188,
        "sstoreSlotTouches": 471539
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918333279,
    "cached": false,
    "asOfBlock": 26434300,
    "docs": "https://docs.tracefast.xyz/api/contract-storage-activity"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `address` | The contract, lowercase and `0x`-prefixed. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `fromDate` | First day of the window, UTC date `YYYY-MM-DD`, inclusive. |
| `readThroughBlock` | The block the last day holds the blocks through. |
| `series` | Oldest first; only days with activity. |
| `toDate` | Last day of the window, UTC date `YYYY-MM-DD`, inclusive. This day is partial: it holds the blocks through `readThroughBlock`. |

### `data.series[]`

| Field | Meaning |
|---|---|
| `date` | `YYYY-MM-DD`. |
| `sloadOpcodeTotal` | SLOAD opcodes executed, reverted frames included. |
| `sloadSlotTouches` | Distinct slots read per transaction, summed over the day. |
| `sstoreOpcodeTotal` | SSTORE opcodes executed, reverted frames included. |
| `sstoreSlotTouches` | Distinct slots written per transaction, summed over the day. |
| `tloadTotal` | TLOAD opcodes executed (EIP-1153 transient storage). |
| `tstoreTotal` | TSTORE opcodes executed (EIP-1153 transient storage). |
| `txsReadOnly` | Transactions that read the contract's storage without writing it. |
| `txsReading` | Transactions that read the contract's storage. |
| `txsTouching` | Transactions that touched the contract's storage (read or wrote it). |
| `txsWriting` | Transactions that wrote the contract's storage. |

`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`), `days` outside 1 to 365 (`reason: days_out_of_range`), or an unknown query parameter |
| 404 | `chain_not_supported`, or an unknown path |
| 503 | `service_unavailable`: how far the series 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

* [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
