Skip to main content

starknet_getStorageAt RPC Method

Get the information about the result of executing the requested block.

Updated on
Mar 18, 2024

starknet_getStorageAt RPC Method

Parameters

contract_address
string
REQUIRED
The address of the contract to read from
key
string
REQUIRED
The key to the storage value for the given contract
block_id
string
REQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)

Returns

result
string
The value at the given key for the given contract. 0 if no value is found
Request
1
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"id": 1,
6
"jsonrpc": "2.0",
7
"method": "starknet_getStorageAt",
8
"params": [
9
"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
10
"0x0000000000000000000000000000000000000000000000000000000000000001",
11
"latest"
12
]
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free