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
Type Declaration
Section titled “Type Declaration”{ MalformedAddress: string; }
MalformedAddress
Section titled “MalformedAddress”MalformedAddress:
string
The minter failed to parse the destination address.
{ GenericError: { error_code: bigint; error_message: string; }; }
GenericError
Section titled “GenericError”GenericError:
object
A generic error reserved for future extensions.
GenericError.error_code
Section titled “GenericError.error_code”error_code:
bigint
GenericError.error_message
Section titled “GenericError.error_message”error_message:
string
{ TemporarilyUnavailable: string; }
TemporarilyUnavailable
Section titled “TemporarilyUnavailable”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
Section titled “InsufficientAllowance”InsufficientAllowance:
object
The allowance given to the minter is too low.
InsufficientAllowance.allowance
Section titled “InsufficientAllowance.allowance”allowance:
bigint
{ AlreadyProcessing: null; }
AlreadyProcessing
Section titled “AlreadyProcessing”AlreadyProcessing:
null
The minter is already processing another retrieval request for the same principal.
{ AmountTooLow: bigint; }
AmountTooLow
Section titled “AmountTooLow”AmountTooLow:
bigint
The withdrawal amount is too low. The payload contains the minimal withdrawal amount.
{ InsufficientFunds: { balance: bigint; }; }
InsufficientFunds
Section titled “InsufficientFunds”InsufficientFunds:
object
The ckBTC balance of the withdrawal account is too low.
InsufficientFunds.balance
Section titled “InsufficientFunds.balance”balance:
bigint