Arbitrum One
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Arbitrum One
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
debug_storageRangeAt reads a contract's raw storage on Arbitrum One (chain ID 42161, gas paid in ETH) exactly as it stood right after a chosen transaction in a chosen block executed. You give it a block hash, the index of the transaction within that block, the contract address, a starting storage-key hash, and a page size; it walks the contract's storage trie from that key and returns one page of {key, value} slots plus a nextKey cursor when more remain. Because Arbitrum One is a Nitro rollup with its own ArbOS state, this lets you reconstruct the precise L2 storage of any contract at any historical point. Send the request to https://arbitrum.therpc.io/YOUR_API_KEY.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockHash | string | Oui | Hash of the block containing the transaction of interest. |
| 2 | txIndex | integer | Oui | Index of the transaction within the block after whose execution the storage is read. |
| 3 | contractAddress | string | Oui | Address of the contract whose storage to inspect. |
| 4 | startKey | string | Oui | Storage key hash from which to begin iteration. Use `0x0000…0000` to start from the beginning. |
| 5 | limit | integer | Oui | Maximum number of storage entries to return in one call. |
| Type | Description |
|---|---|
| object | `{storage: Record<keyHash, {key: string, value: string}>, nextKey?: string}` — `nextKey` is present when more entries follow and can be passed as `startKey` for the next page. |
Try it live in the Arbitrum One playground.
| Code | Message | Cause |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Any required parameter is missing, malformed, or txIndex is out of range for the block. |
-32000 | block not found | Block hash not found or the node lacks state for that block (archive node required for historical blocks). |
limit and follow nextKey to page rather than trying to pull everything at once.Paramètres
0x-prefixed 32-byte block hash
0-based index
0x-prefixed 20-byte address
0x-prefixed 32-byte storage key hash
e.g. 1024