Skip to content

DefaultArgument

Algorand TypeScript


Algorand TypeScript / arc4 / DefaultArgument

DefaultArgument<TContract> = { constant: string | boolean | number | bigint; } | { from: keyof TContract; }

Defined in: arc4/index.ts:82

Type alias for a default argument schema

TContract extends Contract

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

{ 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