Skip to content
TraceFast Docs

How one storage slot of a contract changed over time

Open the contract on its entity page →

Every block in which one storage slot of a contract CHANGED value, newest first — the value before and after the block, and the transactions that wrote the slot in it. One entry per block: several writes in one block are one change, and a write of the value already held is none. valueAfter is absent on the newest change when it is not stated; it is never a zero standing in. writerTxs is empty for a system write with no transaction, and absent until the block is attributed (usually seconds after it lands). readThroughBlock is the newest block the page was read through. A page can be shorter than limit and still have a nextCursor: one request reads a bounded span of history. Continue with nextCursor.

GET https://tracefast.xyz/api/v1/chains/1/contracts/{address}/storage/{key}/history
ParameterInTypeNotes
addresspathstringThe contract, 0x + 40 hex, any case.
keypathstringThe 32-byte slot key, 0x + 64 hex.
limitqueryinteger, optional1 to 100, default 50.
cursorquerystring, optionalnextCursor of the previous page. Opaque, and valid only for this method, this contract and this slot.

Access — an API key on the Investigation plan or higher (plans), or no key at all: pay per call with 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_slot_history on the MCP server. Stable — see 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, the implementation slot of USDC. Lists in the example are cut to two entries.

{
  "data": {
    "chainId": 1,
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "storageKey": "0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3",
    "readThroughBlock": 26434750,
    "changes": [
      {
        "blockNumber": 18963716,
        "valueBefore": "0x000000000000000000000000a2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "writerTxs": [
          {
            "txHash": "0xae3ad89e569f27d47a8a02999a6d937c12aaa6bc50e66650e7cbd3244bde9951",
            "txIndex": 35
          }
        ]
      },
      {
        "blockNumber": 12317814,
        "valueBefore": "0x000000000000000000000000b7277a6e95992041568d9391d09d0122023778a2",
        "valueAfter": "0x000000000000000000000000a2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
        "writerTxs": [
          {
            "txHash": "0xe2e40640ffd5f76538cd23660cf56f00bfebd5fe925ebad6b8067c4cee18a2c3",
            "txIndex": 80
          }
        ]
      }
    ],
    "nextCursor": "AVsxMjAwMDAwMF3BTldCRyL5QCQKL-GqaDYT"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918353916,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/contract-slot-history"
  }
}

data

FieldMeaning
addressThe contract, lowercase and 0x-prefixed.
chainIdChain id. 1 is Ethereum mainnet.
changesThe changes of this page, newest first.
nextCursorCursor of the next page. Absent on the last page.
readThroughBlockThe newest block this page was read through.
storageKeyThe slot key, 0x + 64 hex.

data.changes[]

FieldMeaning
blockNumberThe block in which the slot's value changed.
valueAfterThe value after the block. Absent when it is not stated (the newest change) — never a zero standing in.
valueBeforeThe value before the block, 0x + 64 hex.
writerTxsEvery transaction that wrote the slot in this block, by position — writes of the value it already held included. Empty for a system write with no transaction; absent while the block is not attributed yet.

data.changes[].writerTxs[]

FieldMeaning
txHashHash of the writing transaction, lowercase and 0x-prefixed.
txIndexPosition of the writing transaction within its block, from 0.

meta is the same envelope on every method — see conventions.

Errors

StatusWhen
400bad_request: a malformed address (reason: address_invalid) or slot key (reason: storage_key_invalid), limit outside 1 to 100, or an unknown query parameter; invalid_cursor
404chain_not_supported, or an unknown path
422block_not_available (reason: coverage_gap): part of the chain is temporarily unavailable; retry later
503service_unavailable: temporarily unavailable (reason: source_backlog_too_large with the bound, or no reason); 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 and API keys.


Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown