Skip to content

DefaultArgument

DefaultArgument = { data: ABIMethodParams; source: "abi-method"; } | { data: string; source: "global-state"; } | { data: string; source: "local-state"; } | { data: string | number; source: "constant"; }

Defined in: algokit-utils-ts/src/types/app-spec.ts:228

Defines a strategy for obtaining a default value for a given ABI arg.

{ data: ABIMethodParams; source: "abi-method"; }

data: ABIMethodParams

source: "abi-method"

The default value should be fetched by invoking an ABI method


{ data: string; source: "global-state"; }

data: string

The key of the state variable

source: "global-state"

The default value should be fetched from global state


{ data: string; source: "local-state"; }

data: string

The key of the state variable

source: "local-state"

The default value should be fetched from the local state of the sender user


{ data: string | number; source: "constant"; }

data: string | number

The static default value to use.

source: "constant"

The default value is a constant.