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
| Parameter | In | Type | Notes |
|---|---|---|---|
address | path | string | The contract, 0x + 40 hex, any case. |
limit | query | integer, optional | 1 to 200, default 100. |
cursor | query | string, optional | nextCursor 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
| Field | Meaning |
|---|---|
address | The contract, lowercase and 0x-prefixed. |
chainId | Chain id. 1 is Ethereum mainnet. |
nextCursor | Cursor of the next page. Absent on the last page. |
readThroughBlock | The block the list was read through. |
slots | The direct slots of this page. |
data.slots[]
| Field | Meaning |
|---|---|
changes | Blocks in which its value changed. |
currentValue | The current value, 0x + 64 hex — only when currentValueStatus is observed. |
currentValueStatus | observed, system_writes, ambiguous_order, storage_cleared, no_transaction_write or not_computed. Other values may be added. |
firstChangeBlock | First block in which the slot's value changed. |
lastChangeBlock | Last block in which the slot's value changed. |
slot | The slot number, decimal string. |
storageKey | The slot key, 0x + 64 hex. |
meta is the same envelope on every method — see conventions.
Errors
| Status | When |
|---|---|
| 400 | bad_request: a malformed address (reason: address_invalid), limit outside 1 to 200, or an unknown query parameter; invalid_cursor |
| 404 | chain_not_supported, or an unknown path |
| 422 | storage_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 |
| 503 | service_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.
Related pages
- One contract
- Bytecode
- Function selectors
- Disassembly
- All API methods — every method on one page
- Conventions — requests, responses, errors and pagination
Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown