Icrc2ApproveRequest
Icrc2ApproveRequest =
Omit<Icrc1TransferRequest,"to"> &object
Defined in: packages/ledger-icp/src/types/ledger_converters.ts:53
Params for an icrc2_approve.
Type Declaration
Section titled “Type Declaration”expected_allowance?
Section titled “expected_allowance?”
optionalexpected_allowance:Icrc1Tokens
expires_at?
Section titled “expires_at?”
optionalexpires_at:Icrc1Timestamp
spender
Section titled “spender”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.