Skip to content
TraceFast Docs

The direct storage slots of a contract (its declared variables) and their values

Open the contract on its entity page →

The DIRECT storage slots of a contract — the slots below 2^64 that hold its declared variables, packed fields and fixed-array elements (not mapping entries) — in slot order, each with how many blocks changed its value, the first and last of them, and its current value. currentValueStatus says whether the value can be stated: observed (then currentValue), system_writes (a protocol system contract rewrites its storage outside transactions), ambiguous_order (the last transaction wrote the slot more than once with different values, in blocks old enough that the order of writes inside a transaction is not recorded), storage_cleared (a self-destruct wiped the storage after the last change), no_transaction_write (no transaction wrote the slot in the block it last changed: a protocol system call or a clearing), or not_computed (the newest blocks are not processed yet; retry); currentValue is absent in every state but observed, never a zero. Variable names are not stated. Only slots whose value ever changed are listed: absence is not "no such variable". Continue with nextCursor.

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

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_storage_parameters 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, USDC. Lists in the example are cut to two entries.

{
  "data": {
    "chainId": 1,
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "readThroughBlock": 26434750,
    "slots": [
      {
        "storageKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "slot": "0",
        "changes": 2,
        "firstChangeBlock": 6082473,
        "lastChangeBlock": 6282629,
        "currentValueStatus": "observed",
        "currentValue": "0x000000000000000000000000fcb19e6a322b27c06842a71e8c725399f049ae3a"
      },
      {
        "storageKey": "0x0000000000000000000000000000000000000000000000000000000000000001",
        "slot": "1",
        "changes": 4,
        "firstChangeBlock": 6082473,
        "lastChangeBlock": 17965526,
        "currentValueStatus": "observed",
        "currentValue": "0x0000000000000000000000004914f61d25e5c567143774b76edbf4d5109a8566"
      }
    ],
    "nextCursor": "AVsiMSJdMnf-iT9U23NswRiEpf_Knw"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918344741,
    "cached": false,
    "asOfBlock": 26434750,
    "docs": "https://docs.tracefast.xyz/api/contract-storage-parameters"
  }
}

data

FieldMeaning
addressThe contract, lowercase and 0x-prefixed.
chainIdChain id. 1 is Ethereum mainnet.
nextCursorCursor of the next page. Absent on the last page.
readThroughBlockThe block the list was read through.
slotsThe direct slots of this page.

data.slots[]

FieldMeaning
changesBlocks in which its value changed.
currentValueThe current value, 0x + 64 hex — only when currentValueStatus is observed.
currentValueStatusobserved, system_writes, ambiguous_order, storage_cleared, no_transaction_write or not_computed. Other values may be added.
firstChangeBlockFirst block in which the slot's value changed.
lastChangeBlockLast block in which the slot's value changed.
slotThe slot number, decimal string.
storageKeyThe slot key, 0x + 64 hex.

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

Errors

StatusWhen
400bad_request: a malformed address (reason: address_invalid), limit outside 1 to 200, or an unknown query parameter; invalid_cursor
404chain_not_supported, or an unknown path
422storage_parameters_unavailable: the contract's direct storage cannot be listed in one answer (reason: direct_slots_too_dense or direct_slots_too_many, with the bound) — use the slot history; block_not_available (reason: coverage_gap): part of the chain is temporarily unavailable
503service_unavailable: temporarily unavailable (reason: source_backlog_too_large or read_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