Algorand TypeScript
    Preparing search index...

    Type Alias DefaultArgument<TContract>

    DefaultArgument:
        | { constant: string
        | boolean
        | number
        | bigint }
        | { from: keyof TContract }

    Type alias for a default argument schema

    Type Parameters

    • TContract extends Contract

      The type of the contract containing the method this default argument is for

    Type declaration

    • { constant: string | boolean | number | bigint }
      • constant: string | boolean | number | bigint

        A compile time constant value to be used as a default

    • { from: keyof TContract }
      • from: keyof TContract

        Retrieve the default value from a member of this contract. The member can be

        LocalState: The value is retrieved from the calling user's local state before invoking this method GlobalState: The value is retrieved from the specified global state key before invoking this method Method: Any readonly abimethod with no arguments can be used as a source