Alchemy Logo

eth_getStorageAt

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Addressstringformat: "^0x[0-9a-fA-F]{40}$"required

The address of the contract to read storage from.

Storage slotstringformat: "^0x([1-9a-f]+[0-9a-f]{0,31})|0$"required

The index position of the storage slot to retrieve, as a hexadecimal string.

Blockstring or enumrequired

The block number, tag, or hash at which to retrieve the storage value.

Identifies a block by explicit number, a predefined tag (e.g., latest/safe/finalized), or a 32-byte block hash.

Responses

200

The value stored at the given storage slot, encoded as a hexadecimal string.

Was this page helpful?