Skip to content

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

{ TemporarilyUnavailable: string; }

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: object

The allowance given to the minter is too low.

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; }; }

AmountTooLow: object

The withdrawal amount is too low and doesn’t cover the ledger transaction fee.

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; }; }

InsufficientFunds: object

The balance of the withdrawal account is too low.

balance: bigint

failed_burn_amount: bigint

ledger_id: Principal

token_symbol: string