Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
debug_storageRangeAt reads the raw storage slots of a contract deployed on the Avalanche C-Chain — the EVM chain where AVAX pays for gas and Snowman consensus settles blocks in roughly one to two seconds. Given a block hash, a transaction index, and a contract address, it returns a paginated slice of that contract's storage tree as it stood immediately after the chosen transaction executed. Point your request at https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a). Because storage can hold thousands of slots, the response is delivered in pages: each call returns up to limit entries plus a nextKey cursor you feed back in as startKey to continue.
| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | blockHash | string | Sim | Hash of the block containing the transaction of interest. |
| 2 | txIndex | integer | Sim | Index of the transaction within the block after whose execution the storage is read. |
| 3 | contractAddress | string | Sim | Address of the contract whose storage to inspect. |
| 4 | startKey | string | Sim | Storage key hash from which to begin iteration. Use `0x0000…0000` to start from the beginning. |
| 5 | limit | integer | Sim | Maximum number of storage entries to return in one call. |
| Tipo | Descrição |
|---|---|
| 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 Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-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). |
block not found for older blocks.limit and follow nextKey rather than trying to read the entire tree in one call.Parâmetros
0x-prefixed 32-byte block hash
0-based index
0x-prefixed 20-byte address
0x-prefixed 32-byte storage key hash
e.g. 1024