Kusama RPC API - State Methods
v1.0.0https://ksm.nownodes.ioKusama RPCAPI for interacting with Kusama via JSON-RPC. Contains state category methods for querying runtime storage, metadata, runtime version, and related information.
Authentication
api-keyAuthapiKeyAPI Key: API_key in header
NODE
state
Retrieve storage for a given key
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the value stored under a specific key at the latest block or a given block.
Body
JSON-RPC request parameters
jsonrpcstringrequiredJSON-RPC version
idstringrequiredRequest identifier
methodstringrequiredMethod name
paramsArray<string>requiredArray containing storage keys
Response
Returns the value stored at the specified key
Malformed address or application ID
Invalid API key
Internal server error
Get the runtime version
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns version information about the runtime, including spec version, implementation version, and transaction version.
Body
JSON-RPC request parameters
jsonrpcstringrequiredJSON-RPC version
idstringrequiredRequest identifier
methodstringrequiredMethod name
paramsArray<any>requiredNo parameters required
Response
Runtime version information
Malformed address or application ID
Invalid API key
Internal server error
Retrieve runtime metadata
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the runtime metadata, which includes information about modules, calls, storage, and events.
Body
JSON-RPC request parameters
jsonrpcstringrequiredJSON-RPC version
idstringrequiredRequest identifier
methodstringrequiredMethod name
paramsArray<any>requiredNo parameters required
Response
Runtime metadata in hex format
Malformed address or application ID
Invalid API key
Internal server error
Returns proof of storage entries at a specific block state
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Provides a cryptographic proof for the existence and content of storage entries at a given block.
Body
JSON-RPC request parameters
jsonrpcstringrequiredJSON-RPC version
idstringrequiredRequest identifier
methodstringrequiredMethod name
paramsArray<any>requiredList of storage keys for which to generate proof
Response
Proof of storage entries
Malformed address or application ID
Invalid API key
Internal server error
Retrieves the storage hash
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the hash of the storage value stored under a specific key.
Body
JSON-RPC request parameters
jsonrpcstringrequiredidstringrequiredmethodstringrequiredparamsArray<any>requiredStorage key(s) to compute hash
Response
Storage hash result
Malformed address or application ID
Invalid API key
Internal server error
Retrieves the storage size
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the size in bytes of the storage value under a specific key.
Body
JSON-RPC request parameters
jsonrpcstringrequiredidstringrequiredmethodstringrequiredparamsArray<any>requiredStorage key(s) to measure
Response
Storage size result
Malformed address or application ID
Invalid API key
Internal server error
Query historical storage entries
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the storage changes between two blocks for a set of keys.
Body
JSON-RPC request parameters
jsonrpcstringrequiredidstringrequiredmethodstringrequiredparamsArray<any>requiredList of storage keys and block range
Response
Query storage result
Malformed address or application ID
Invalid API key
Internal server error
Query storage entries at a specific block
Authorizations
ApiKeyAuthApiKeyAuthAPI_key string
NOWNodes API key passed in the api-key header.
Returns the storage values for given keys at a specified block hash.
Body
JSON-RPC request parameters
jsonrpcstringrequiredidstringrequiredmethodstringrequiredparamsArray<any>requiredList of storage keys and block hash
Response
Storage entries at block
Malformed address or application ID
Invalid API key
Internal server error