# What the storage slots a transaction wrote are

[Open the transaction in TraceFast →](https://tracefast.xyz/tx/0xa113fe95261429e225ac5a8ed7bff2b8528859723754caac4dfc641debb45687)

The distinct storage slots a transaction wrote (contract and slot key), in the order of each slot's first write, with how many times it was written and what the slot IS — how its key was computed: an entry of a mapping or a dynamic array (`derived`, with the mapping keys and the declared variable's slot where they were traced), a plain variable's fixed slot (`fixed_slot`), or not known (`unknown`, `not_computed`, `before_coverage`). No values: the values written and before are `storage-writes`. Paged by an opaque cursor: pass `nextCursor` back as `cursor` until it is absent. `meta.coverage` names the range storage writes are served over and the range slot keys are traced over.

```
GET https://tracefast.xyz/api/v1/chains/1/transactions/{hash}/storage-slots
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `hash` | path | string | Transaction hash, `0x`-prefixed, 64 hex characters, any case. |
| `limit` | query | integer, optional | Slots per page, 1 to 20, default 10. |
| `cursor` | query | string, optional | `nextCursor` of the previous page. Opaque, and valid only for this method, this transaction and the slot list it was cut from. |

**Access** — an [API key](/api/authentication) on the **Investigation** plan or higher ([plans](/api/authentication#plans)). Not sold over [x402](/api/x402) yet. As a tool for AI agents: `get_transaction_storage_slots` on the [MCP server](/api/mcp-server). **Beta** — the shape may still change; 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`, a USDC transfer: a fixed variable and two entries of balance mappings. Lists in the example are cut to two entries.

```json
{
  "data": {
    "hash": "0xa113fe95261429e225ac5a8ed7bff2b8528859723754caac4dfc641debb45687",
    "blockNumber": 26400000,
    "txIndex": 6,
    "slotCount": 3,
    "slots": [
      {
        "storageAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "storageKey": "0x000000000000000000000000000000000000000000000000000000000000000b",
        "writeCount": 1,
        "meaning": {
          "kind": "fixed_slot",
          "slot": "11",
          "depth": 0
        }
      },
      {
        "storageAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "storageKey": "0x57d18af793d7300c4ba46d192ec7aa095070dde6c52c687c6d0d92fb8532b305",
        "writeCount": 1,
        "meaning": {
          "kind": "derived",
          "baseSlot": "9",
          "mappingKeys": [
            "0x00000000000000000000000055fe002aeff02f77364de339a1292923a15844b8"
          ],
          "depth": 1,
          "layout": "solidity",
          "layoutAmbiguous": false,
          "variableIdentified": true,
          "offset": "0",
          "chainOffsets": []
        }
      }
    ],
    "slotsTruncated": false
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794953133739,
    "cached": true,
    "asOfBlock": 26400000,
    "docs": "https://docs.tracefast.xyz/api/transaction-storage-slots",
    "coverage": {
      "slotMeaningsFromBlock": 2675000,
      "slotMeaningsThroughBlock": 26437498,
      "storageWritesFromBlock": 49018,
      "storageWritesThroughBlock": 26437498
    }
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `blockNumber` | Height of the block that includes the transaction. |
| `hash` | Transaction hash, lowercase and `0x`-prefixed. |
| `nextCursor` | Opaque cursor for the next page. Absent on the last page. |
| `slotCount` | How many distinct slots the transaction wrote — the length of the whole list the pages walk; within the first 5 000 writes of the transaction when `slotsTruncated` is true. |
| `slots` | This page: one row per distinct slot (contract and key), in the order of the slot's first write. |
| `slotsTruncated` | `true` on EVERY page when the transaction made more than the 5 000 writes this method reads: the list is then the slots of its first 5 000 writes, slots written only later are not in it, and `slotCount` and each `writeCount` count within those writes. |
| `txIndex` | Position of the transaction within its block, from `0`. |

### `data.slots[]`

| Field | Meaning |
|---|---|
| `meaning` | What the slot is: how its key was computed. Absent when no answer could be had for this slot in this response — absence says nothing about the slot; ask again later. |
| `storageAddress` | The contract whose storage the slot is, lowercase and `0x`-prefixed. |
| `storageKey` | The slot key, `0x`-prefixed, 64 hex characters. |
| `writeCount` | How many times the transaction wrote this slot; within the first 5 000 writes of the transaction when `slotsTruncated` is true. |

### `data.slots[].meaning`

| Field | Meaning |
|---|---|
| `baseSlot` | `derived` only, when the chain of hashes was traced down to a small number: the slot of the declared variable (the mapping or the array itself), decimal string. |
| `chainOffsets` | `derived` only: the offsets of the hash chain's links, in declaration order as traced, decimal strings. Which mapping key each offset goes with is not stated, and the two lists can differ in length. |
| `depth` | `derived` and `fixed_slot` only: how many levels of hashing were traced — `0` none (`fixed_slot`: the key is not a hash), `1` one mapping or array, `2`-`3` nested ones. Absent on the other kinds, where nothing was traced: absence there is not `0`. |
| `kind` | `derived` | `fixed_slot` | `unknown` | `not_computed` | `before_coverage`. Treat a value you do not recognise as "nothing known about the slot". |
| `layout` | `derived` only: how the innermost hash was built. Absent when it cannot be told. |
| `layoutAmbiguous` | `derived` only: `true` when both words of the innermost hash are small numbers, so which one is the key and which the slot cannot be told apart; the Solidity order is assumed. Absent on the other kinds, which have no hash to read. |
| `mappingKeys` | `derived` only: the mapping keys found in the hash chain, in declaration order as traced, as `0x`-prefixed 32-byte words (64 lowercase hex characters; an address is left-padded with zeros). An array level uses no key, so there can be fewer keys than `depth`; which level each key belongs to is not stated. Absent when a key could not be read as a 32-byte word — the list is never served in part. |
| `offset` | `derived` only: the offset added to the hash, a struct member or an array element inside the mapped value, decimal string. Absent when not traced. |
| `slot` | `fixed_slot` only: the key's own value, decimal string. |
| `variableIdentified` | `derived` only: `true` when the chain of hashes ends at a small base slot — the variable is identified (`baseSlot`). Absent on the other kinds: a `fixed_slot` is not necessarily a declared variable, and on `unknown` / `not_computed` / `before_coverage` nothing was traced, so `false` there would be a claim nobody computed. |

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

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: malformed hash, `limit` outside 1 to 20 (`reason: limit_out_of_range`), or an unknown query parameter; `invalid_cursor`: the cursor is not valid for this request — restart from the first page |
| 404 | `not_found`: no transaction with this hash is known; `chain_not_supported`; or an unknown path |
| 422 | `block_not_available`: `reason: block_not_available` when the transaction is below the height storage writes are served from (`minAvailableBlock`); `reason: coverage_gap` when the transaction's block is above the writes' own reach (`maxAvailableBlock`, open-ended) or when a range of recent blocks is temporarily unavailable and a transaction mined in it cannot be confirmed right now — retry later |

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 transaction](/api/transaction)
* [Transaction events](/api/transaction-events)
* [Why it reverted](/api/transaction-failures)
* [Execution trace](/api/trace)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
