• Returns the value associated with the given key in the datastore of the contract at the specified address.

    Returns

    The value associated with the given key in the datastore of the specified contract.

    Throws

    • if the key does not exist in the datastore.
    • if the datastore at the given address does not exist.
    • [compilation only] if the key type are neither string, StaticArray<u8>, or Args.

    Type Parameters

    • T

      Can be either string, Args, or StaticArray<u8>.

    Parameters

    • address: Address

      The targeted smart contract address.

    • key: T

      The key whose associated value is to be retrieved from the datastore.

    Returns T

Generated using TypeDoc