Skip to content

Icrc2ApproveRequest

Icrc2ApproveRequest = Omit<Icrc1TransferRequest, "to"> & object

Defined in: packages/ledger-icp/src/types/ledger_converters.ts:53

Params for an icrc2_approve.

optional expected_allowance: Icrc1Tokens

optional expires_at: Icrc1Timestamp

spender: Icrc1Account

The account of the spender.

The amount of tokens to approve.

The subaccount to transfer tokens from.

Approve 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.