Storage
Gets a single piece of smart contract data, which was stored as a key–value pair using the SmartContract.PersistentState property.
get
The method performs a lookup in the smart contract state database for the supplied smart contract address and key. The value associated with the given key, deserialized for the specified data type, is returned.
If the key does not exist or deserialization fails, the method returns the default value for the specified type.
Query parameters
ContractAddressstringRequired
The address of the smart contract.
StorageKeystringRequired
The key for the piece of stored data to retrieve.
DataTypestring · enumRequiredPossible values:
The stored data type.
Responses
200
Returns data response (may be unsuccessful)
400
Invalid request
get
GET /api/SmartContracts/storage HTTP/1.1
Host: strax.nownodes.io
Accept: */*
No content