Home

Query storage changes over a range of blocks

POST
https://moonbeam.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns storage entries for multiple keys over a range of blocks.

The state_queryStorage method retrieves the historical changes of storage keys between two blocks. This is essential for tracking state changes over time, building historical data views, and analyzing storage evolution.

This method is essential for:

  • Historical data analysis
  • State change tracking
  • Building time-series data
  • Audit and compliance reporting

Body

application/json
jsonrpcstring2.0required

JSON-RPC version identifier

methodstringstate_queryStoragerequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<Array<string> | string | string>required

Array containing storage keys, start block hash, and optional end block hash.

Show child attributes
One of
Array<string>

Start block hash for the query range

string

Optional end block hash for the query range. If omitted, uses the latest finalized block.

string

Response

200OK

Storage changes retrieved successfully

400Bad Request

Invalid parameters

500Internal Server Error

Internal server error