curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getStorageAt",
"params": [
"0x00dA114221cb83fa859DBdb4C44bEeaa0BB37C7537ad5ae66Fe5e0efD20E6eB3",
"0x2de7ac669936cc3b4e9784ff23826dc9056c74d54d3f41f1b0d28b36966369e",
"latest"
]
}'
starknet_getStorageAt
curl --request POST \
--url https://starknet-mainnet.core.chainstack.com/365cf697a3ad6d950b4c4a911e2e4f4d \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getStorageAt",
"params": [
"0x00dA114221cb83fa859DBdb4C44bEeaa0BB37C7537ad5ae66Fe5e0efD20E6eB3",
"0x2de7ac669936cc3b4e9784ff23826dc9056c74d54d3f41f1b0d28b36966369e",
"latest"
]
}'
address
— the string of the address of the account.position
— the string of the position in the storage.result
— the value stored at the given position in the account’s storage, represented as a hexadecimal string.starknet_getStorageAt
is to inspect the state of a smart contract. For example, if a smart contract stores the balance of an account at a specific position in its storage, you can use starknet_getStorageAt
to retrieve the balance of the account at a specific block.
curl 'https://alpha-mainnet.starknet.io/feeder_gateway/get_storage_at?contractAddress=0x00dA114221cb83fa859DBdb4C44bEeaa0BB37C7537ad5ae66Fe5e0efD20E6eB3&key=1297713107789520337982513184691958288380927033924334369025906284470037001886&blockNumber=latest'
Successful response