starknet_getStorageAt

Returns the value from a storage position at a given address.

Parameters

Object NameRequiredTypeDetail
ADDRESSStringAddress from logs should originate.
STORAGE POSITIONStringA hex code of an integer that represents the position in the storage.
BLOCK PARAMETERString"latest", "pending", or the hash of a block.
"params": [
    "0x044e5b3f0471a26bc749ffa1d8dd8e43640e05f1b33cf05cef6adee6f5b1b4cf",
    "0x0000000000000000000000000000000000000000000000000000000000000001",
    "latest"
]

Result

A hex code that represents the value at the provided storage position.

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "starknet_getStorageAt",
    "params": [
        "0x044e5b3f0471a26bc749ffa1d8dd8e43640e05f1b33cf05cef6adee6f5b1b4cf",
        "0x0000000000000000000000000000000000000000000000000000000000000001",
        "latest"
    ]
}'

Return

{
    "jsonrpc": "2.0",
    "result": "0x0",
    "id": 1
}
Language
Click Try It! to start a request and see the response here!