• Sets a key-value pair in the current contract's datastore. Existing entries are overwritten and missing ones are created.

    Throws

    • [compilation only] if the key and value type are neither string, StaticArray<u8>, or Args.

    Type Parameters

    • T

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

    Parameters

    • key: T

      The key to set in the datastore.

    • value: T

      The value to associate with the key in the datastore.

    Returns void

Generated using TypeDoc