Home

Get storage entry hash

POST
https://moonbeam.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the hash of a storage entry.

The state_getStorageHash method retrieves the hash of a specific storage entry at an optional block. This is useful for verifying storage contents without retrieving the full value, or for checking if a storage entry has changed.

This method is useful for:

  • Efficient storage change detection
  • Light client verification
  • Cache validation
  • Storage synchronization

Body

application/json
jsonrpcstring2.0required

JSON-RPC version identifier

methodstringstate_getStorageHashrequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<string | string>required

Array containing storage key and optional block hash.

Show child attributes
One of

Storage key in hex format

string

Optional block hash to query storage at specific block. If omitted, uses the latest finalized block.

string

Response

200OK

Storage hash retrieved successfully

400Bad Request

Invalid storage key or block hash

500Internal Server Error

Internal server error