TriportRPC

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

debug_storageRangeAt return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"debug_storageRangeAt","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "debug_storageRangeAt",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"debug_storageRangeAt","params":[],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. 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.