Comment on page
starknet_getStorageAt
Get the value of the storage at the given address and key
- 1.
CONTRACT_ADDRESS
- The address of the contract to read from - 2.
STORAGE_POSITION
- A hex code of an integer that represents the position in the storage. - 3.
BLOCK_PARAM
- "latest", "pending", or the hash of a block.
The value at the given key for the given contract. 0 if no value is found
Request
curl https://starknet-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"starknet_getStorageAt","params": ["0x04D88BeCbd1DC984ae04A96E77828E603c5244e68224903D92CA0a1Ff1C8e807", "0x21", "latest"],"id":1}'
Result
{
"jsonrpc": "2.0",
"result": "0x0",
"id": 1
}
Last modified 1yr ago