Skip to content
Alchemy Logo

starknet_getStorageAt

POST
/{apiKey}

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

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"required

The address of the contract to read from

stringformat: "^0x(0|[0-7]{1}[a-fA-F0-9]{0,62})$"required

The key to the storage value for the given contract

object or enumrequired

The hash of the requested block, or number (height) of the requested block, or a block tag

Block hash, number or tag

Responses

200

The value at the given key for the given contract. 0 if no value is found

A field element. Represented by at most 63 hex digits

Was this page helpful?