Home

Get Storage

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-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
jsonrpcstring

The JSON-RPC protocol version. Always "2.0".

methodstring

The 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.

idinteger

The request identifier used to match the response with the request.

Response

200OK

Successful response with the stored value.