Skip to content

RetrieveBtcWithApprovalError

RetrieveBtcWithApprovalError = { MalformedAddress: string; } | { GenericError: { error_code: bigint; error_message: string; }; } | { TemporarilyUnavailable: string; } | { InsufficientAllowance: { allowance: bigint; }; } | { AlreadyProcessing: null; } | { AmountTooLow: bigint; } | { InsufficientFunds: { balance: bigint; }; }

Defined in: packages/canisters/src/declarations/ckbtc/minter.d.ts:517

{ MalformedAddress: string; }

MalformedAddress: string

The minter failed to parse the destination address.

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

GenericError: object

A generic error reserved for future extensions.

error_code: bigint

error_message: string

{ TemporarilyUnavailable: string; }

TemporarilyUnavailable: string

The minter is overloaded, retry the request. The payload contains a human-readable message explaining what caused the unavailability.

{ InsufficientAllowance: { allowance: bigint; }; }

InsufficientAllowance: object

The allowance given to the minter is too low.

allowance: bigint

{ AlreadyProcessing: null; }

AlreadyProcessing: null

The minter is already processing another retrieval request for the same principal.

{ AmountTooLow: bigint; }

AmountTooLow: bigint

The withdrawal amount is too low. The payload contains the minimal withdrawal amount.

{ InsufficientFunds: { balance: bigint; }; }

InsufficientFunds: object

The ckBTC balance of the withdrawal account is too low.

balance: bigint