debug_storageRangeAt
Last updated:
debug_storageRangeAt reads the storage trie of a single contract and returns a
range (page) of its slots, reconstructed at the state that existed after a
chosen transaction in a chosen block. Each entry is a preimage key and its
32-byte value, indexed by the hash of the slot key. Because storage is a large
keyed map, the method is paginated: you give it a starting key and a maximum
count, and it returns the slots from that point plus a nextKey cursor to
continue from.
Use this when you need to inspect or snapshot raw contract state at a precise point in history — for example to audit a storage layout, diff a contract's slots across two transactions, or recover a value that is not exposed through a view function. Unlike a single-slot read, it walks the trie and hands back many slots in one call.
This is a debug-namespace method and is available on the Pro tier and
above. It is rate limited per tier (5 RPS on Pro, 15 RPS on Business) with a
short burst allowance; there is no daily quota.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"debug_storageRangeAt","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "debug_storageRangeAt",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"debug_storageRangeAt","params":[],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- Credit cost: 5 per call.
FAQ
- What does debug_storageRangeAt do?
- Returns a page of contract storage slots as they existed at a specific transaction within a given block.
- How many credits does debug_storageRangeAt cost?
- debug_storageRangeAt costs 5 credit(s) per call on Triport by default.
- Is debug_storageRangeAt available over WebSocket?
- debug_storageRangeAt is an HTTP JSON-RPC method.