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
Type Declaration
Section titled “Type Declaration”{ GenericError: { description: string; error_code: bigint; }; }
GenericError
Section titled “GenericError”GenericError:
object
Any error not covered by the above variants.
GenericError.description
Section titled “GenericError.description”description:
string
GenericError.error_code
Section titled “GenericError.error_code”error_code:
bigint
{ InsufficientPayment: icrc21_error_info; }
InsufficientPayment
Section titled “InsufficientPayment”InsufficientPayment:
icrc21_error_info
{ UnsupportedCanisterCall: icrc21_error_info; }
UnsupportedCanisterCall
Section titled “UnsupportedCanisterCall”UnsupportedCanisterCall:
icrc21_error_info
{ ConsentMessageUnavailable: icrc21_error_info; }
ConsentMessageUnavailable
Section titled “ConsentMessageUnavailable”ConsentMessageUnavailable:
icrc21_error_info