Skip to content

icrc21_error

icrc21_error = { GenericError: { description: string; error_code: bigint; }; } | { InsufficientPayment: icrc21_error_info; } | { UnsupportedCanisterCall: icrc21_error_info; } | { ConsentMessageUnavailable: icrc21_error_info; }

Defined in: packages/canisters/src/declarations/ledger-icrc/icrc_ledger.d.ts:539

{ GenericError: { description: string; error_code: bigint; }; }

GenericError: object

Any error not covered by the above variants.

description: string

error_code: bigint

{ InsufficientPayment: icrc21_error_info; }

InsufficientPayment: icrc21_error_info

{ UnsupportedCanisterCall: icrc21_error_info; }

UnsupportedCanisterCall: icrc21_error_info

{ ConsentMessageUnavailable: icrc21_error_info; }

ConsentMessageUnavailable: icrc21_error_info