Get Storage
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the value stored at a specific key in a smart contract's storage. This method is commonly used to read state variables from deployed smart contracts on the Ontology blockchain.
Body
application/json
jsonrpcstringThe JSON-RPC protocol version. Always "2.0".
methodstringThe RPC method name to be invoked.
paramsArray<string>An array containing the contract script hash, the storage key (both in hexadecimal format), and optionally the block height or hash to query.
idintegerThe request identifier used to match the response with the request.
Response
200OK
Successful response with the stored value.