Skip to main content

starknet_getStorageAt RPC Method

Loading...

Updated on
Mar 18, 2024

starknet_getStorageAt RPC Method

Parameters

contract_address
string
REQUIRED
Loading...
key
string
REQUIRED
Loading...
block_id
string
REQUIRED
Loading...

Returns

result
string
Loading...
Request
1
# Note: You can specify Starknet version in the URL path
2
# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.6
3
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \
4
--header 'accept: application/json' \
5
--header 'content-type: application/json' \
6
--data '{
7
"id": 1,
8
"jsonrpc": "2.0",
9
"method": "starknet_getStorageAt",
10
"params": [
11
"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
12
"0x0000000000000000000000000000000000000000000000000000000000000001",
13
"latest"
14
]
15
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free