• Checks if the key-value pair exists in the datastore of the current contract.

    Returns

    A boolean value indicating whether the key-value pair exists in the datastore or not.

    Throws

    • [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 to check for existence in the datastore.

    Returns bool

Generated using TypeDoc