DefaultArgument
Algorand TypeScript / arc4 / DefaultArgument
DefaultArgument<
TContract> = {constant:string|boolean|number|bigint; } | {from: keyofTContract; }
Defined in: arc4/index.ts:82
Type alias for a default argument schema
Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract
The type of the contract containing the method this default argument is for
Type declaration
Section titled “Type declaration”{ constant: string | boolean | number | bigint; }
constant
Section titled “constant”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