⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

state_queryStorageAt - JSON-RPC Method

Description

Fetch storage values for one or more keys at a specific block hash. Useful to snapshot a set of keys at the same height.

Parameters

ParameterTypeRequiredDescription
keysstring[]YesArray of storage keys
atstringYesBlock hash

Returns

An array with a single entry containing the block hash and key/value pairs.

Request Example

Query System.Account prefix only (returns null for the prefix) alongside the runtime :code key:

curl -s https://api-moonriver.n.dwellir.com/YOUR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"id":1,
"method":"state_queryStorageAt",
"params":[[
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9",
"0x3a636f6465"
], "0x1849c7bc2c547b315fef716c6f2fb6f5e256da60482a013286caf975d035f766"]
}'