Skip to main content
Version: Next

Type Alias: STRK20_COLLECT_POLICY

STRK20_COLLECT_POLICY = { type: "all"; } | { type: "diff"; } | { type: "exact"; amount: FELT; }

Defined in: node_modules/@starknet-io/types-js/dist/types/wallet-api/components.d.ts:235

How much of the sub-account's token balance a settled open note collects. 'all' collects the sub-account's entire token balance; 'diff' collects only the balance gained during this interaction; 'exact' collects the given amount (which must be provided).

Union Members

Type Literal

{ type: "all"; }


Type Literal

{ type: "diff"; }


Type Literal

{ type: "exact"; amount: FELT; }

type

type: "exact"

amount

amount: FELT

The exact amount to collect, in the token's smallest unit.