LedgerError
LedgerError = {
TemporarilyUnavailable:string; } | {InsufficientAllowance: {allowance:bigint;failed_burn_amount:bigint;ledger_id:Principal;token_symbol:string; }; } | {AmountTooLow: {failed_burn_amount:bigint;ledger_id:Principal;minimum_burn_amount:bigint;token_symbol:string; }; } | {InsufficientFunds: {balance:bigint;failed_burn_amount:bigint;ledger_id:Principal;token_symbol:string; }; }
Defined in: packages/canisters/src/declarations/cketh/minter.d.ts:348
Type Declaration
Section titled “Type Declaration”{ TemporarilyUnavailable: string; }
TemporarilyUnavailable
Section titled “TemporarilyUnavailable”TemporarilyUnavailable:
string
The ledger is overloaded, retry the request. The payload contains a human-readable message explaining what caused the unavailability.
{ InsufficientAllowance: { allowance: bigint; failed_burn_amount: bigint; ledger_id: Principal; token_symbol: string; }; }
InsufficientAllowance
Section titled “InsufficientAllowance”InsufficientAllowance:
object
The allowance given to the minter is too low.
InsufficientAllowance.allowance
Section titled “InsufficientAllowance.allowance”allowance:
bigint
InsufficientAllowance.failed_burn_amount
Section titled “InsufficientAllowance.failed_burn_amount”failed_burn_amount:
bigint
InsufficientAllowance.ledger_id
Section titled “InsufficientAllowance.ledger_id”ledger_id:
Principal
InsufficientAllowance.token_symbol
Section titled “InsufficientAllowance.token_symbol”token_symbol:
string
{ AmountTooLow: { failed_burn_amount: bigint; ledger_id: Principal; minimum_burn_amount: bigint; token_symbol: string; }; }
AmountTooLow
Section titled “AmountTooLow”AmountTooLow:
object
The withdrawal amount is too low and doesn’t cover the ledger transaction fee.
AmountTooLow.failed_burn_amount
Section titled “AmountTooLow.failed_burn_amount”failed_burn_amount:
bigint
AmountTooLow.ledger_id
Section titled “AmountTooLow.ledger_id”ledger_id:
Principal
AmountTooLow.minimum_burn_amount
Section titled “AmountTooLow.minimum_burn_amount”minimum_burn_amount:
bigint
AmountTooLow.token_symbol
Section titled “AmountTooLow.token_symbol”token_symbol:
string
{ InsufficientFunds: { balance: bigint; failed_burn_amount: bigint; ledger_id: Principal; token_symbol: string; }; }
InsufficientFunds
Section titled “InsufficientFunds”InsufficientFunds:
object
The balance of the withdrawal account is too low.
InsufficientFunds.balance
Section titled “InsufficientFunds.balance”balance:
bigint
InsufficientFunds.failed_burn_amount
Section titled “InsufficientFunds.failed_burn_amount”failed_burn_amount:
bigint
InsufficientFunds.ledger_id
Section titled “InsufficientFunds.ledger_id”ledger_id:
Principal
InsufficientFunds.token_symbol
Section titled “InsufficientFunds.token_symbol”token_symbol:
string