Docs

starknet_getStorageAt - Get the value of th...

Get the value of the storage at the given address and key

Get the value of the storage at the given address and key

Request Parameters

Request
contract_addressfelt252

Contract address

keyfelt252

Storage key

block_idstring

Block reference: `"latest"`, `"l1_accepted"`, block hash, or block number

Response Body

Response
resultOBJECT

The value at the given key for the given contract. 0 if no value is found Storage value (felt252)

Errors

CodeMessage
20Contract not found
24Block not found

Examples

Bash
curl -X POST https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "starknet_getStorageAt",
    "params": [
      "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
      "0x0",
      "latest"
    ],
    "id": 1
  }'

On this page