Avalanche
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Avalanche
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
eth_getStorageAt reads the raw 32-byte value stored at a specific slot of a contract on the Avalanche C-Chain, bypassing the ABI entirely. The C-Chain runs the EVM and pays gas in AVAX, so any contract — a Trader Joe pair, an Aave market, a proxy — keeps its state in numbered storage slots that you can inspect directly with this call. It is read-only and consumes no gas. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with the contract address, a slot index, and a block tag; the node returns the slot's 32-byte value, left-padded with zeros.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | address | string (hex) | Oui | The contract whose storage to read. |
| 2 | storageSlot | string (hex) | Oui | Storage position to read. For mappings, this is the keccak256-derived slot. |
| 3 | blockTag | string | Non | Block at which to read.Défaut : latest |
| Type | Description |
|---|---|
| string (hex) | 32-byte hex-encoded value stored at the slot, left-padded with zeros. |
Try it live in the Avalanche playground.
| Code | Message | Cause |
|---|---|---|
-32602 | Invalid params | Address or slot index is malformed. |
-32000 | Missing trie node | Historical block pruned on a non-archive node. |
keccak256(abi.encode(key, baseSlot)), which you must compute before calling.Paramètres
0x-prefixed 20-byte contract address
0x-prefixed 32-byte slot index (e.g. "0x0")
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"