• Returns the value associated with the given key in the current contract's datastore.

    Returns

    The value associated with the given key in the datastore.

    Throws

    • if the key does not exist in the datastore.
    • [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

    • key: T

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

    Returns T

Generated using TypeDoc