eth_getStorageAt
Returns the value from a storage position at a given address. This method uses 80 credits from your daily balance.
Binance Smart Chain archive support
- Mainnet: Near head requests (latest 128 blocks) and archive requests are supported.
- Testnet: Only near head requests are supported; archive requests are not available.
Parameters
address: [Required] A string representing the address (20 bytes) of the storage.storage position: [Required] A hexadecimal code of the position in the storage.block parameter: [Required] A hexadecimal block number, or one of the string tagslatest,earliest,pending,safe, orfinalized. See the default block parameter.
Returns
storage value: A hexadecimal equivalent of the integer indicating the value of the storage position at the provided address.
Example
Replace <YOUR-API-KEY> with an API key from your MetaMask Developer dashboard.
Request
- curl
- WSS
curl https://bsc-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}'
wscat -c wss://bsc-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}'
Response
- JSON
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}