curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"id": 1,
"params": [
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"0x7",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"id": 1,
"params": [
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"0x7",
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}eth_getStorageAt retrieves the value from a specific storage position of a contract at a given address. This method is useful for inspecting the state of smart contracts at specific points in their execution or at a particular block.
This example makes a call to slot 7 of the USDC contract on the Base Mainnet.
address — the address of the contract to access.position — the storage position to inspect, given as a hexadecimal value.block — the block number (in hexadecimal) or one of the strings "earliest", "latest", or "pending", indicating the state to consider. The default is "latest".result — the value from the specified storage position at the given address, returned as a hexadecimal string.eth_getStorageAt method is essential for:
Was this page helpful?