Get storage entry hash
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-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.0requiredJSON-RPC version identifier
methodstringstate_getStorageHashrequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string | string>requiredArray containing storage key and optional block hash.
Response
200OK
Storage hash retrieved successfully
400Bad Request
Invalid storage key or block hash
500Internal Server Error
Internal server error