Skip to content

ApproveParams

ApproveParams = Omit<TransferParams, "to"> & object

Defined in: packages/ledger-icrc/src/types/ledger.params.ts:72

Params for an icrc2_approve.

optional expected_allowance: IcrcTokens

optional expires_at: IcrcTimestamp

spender: IcrcCandidAccount

The account of the spender.

The Amount of tokens to approve.

The subaccount to transfer tokens from.

Transfer memo.

nanoseconds since unix epoc to trigger deduplication and avoid other issues

The fee of the transfer when it’s not the default fee.

The optional allowance expected. If the expected_allowance field is set, the ledger MUST ensure that the current allowance for the spender from the caller’s account is equal to the given value and return the AllowanceChanged error otherwise.

When the approval expires. If the field is set, it’s greater than the current ledger time.