EVM
Archive
eth_getStorageAt
Summary: Get value from storage
This request returns the value from the given storage position of the provided contract's or externally owned account's (EOA).
Parameters
address
stringA string identifier for the contract or EOA address (20 bytes).
Pattern: ^0x[0-9a-fA-F]{40}$
storageSlot
stringThe storage position or index, in hexadecimal.
Pattern: ^0x([1-9a-f]+[0-9a-f]{0,31})|0$
block
anyOfBlock number, block hash, or string tag.
Returns
eth_getStorageAtResponse
stringThe data stored in the specified storage position at the specified address, in hexadecimal.
Pattern: ^0x[0-9a-f]*$
Customize request
Parameter
Value
RequestCURL
CURL
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": ["0x7d43aabc515c356145049227cee54b608342c0ad","0x5","latest"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "\"0x00000000000000000000000034dfa1226f8b3e36fe597b34eea809a2b5c0bbf9"
}