The CosmWasm integration provides simplifications for the most common queries on smart contracts.
Cosmos.rest(network)
endpoint directly.
Uint8Array
directly and it will be used as-is, in case your smart contract does
not use cw-storage-plus
and thus does not adhere to the standard format.
Cosmos.rest(network)
endpoint directly.
encodeKeypath
naturally encodes a keypath into a binary string. decodeKeypath
is its inverse.
And decodeKeypathMaybe
is a variant that returns null
if the keypath is not valid rather than
throwing an error.
The encodeKeypath
method is used under the hood by CosmWasm.query.raw
.
contract_info
storage key, which contains the name and version of a smart
contract. Apophis simply fetches this value using its own Raw Query implementation. It contains
the name and version of the smart contract as defined by its developer (i.e. may contain untruths).