WithdrawErc20Error
WithdrawErc20Error = {
TokenNotSupported: {supported_tokens:CkErc20Token[]; }; } | {TemporarilyUnavailable:string; } | {CkErc20LedgerError: {cketh_block_index:bigint;error:LedgerError; }; } | {CkEthLedgerError: {error:LedgerError; }; } | {RecipientAddressBlocked: {address:string; }; }
Defined in: packages/canisters/src/declarations/cketh/minter.d.ts:787
Type Declaration
Section titled “Type Declaration”{ TokenNotSupported: { supported_tokens: CkErc20Token[]; }; }
TokenNotSupported
Section titled “TokenNotSupported”TokenNotSupported:
object
The user provided ckERC20 token is not supported by the minter.
TokenNotSupported.supported_tokens
Section titled “TokenNotSupported.supported_tokens”supported_tokens:
CkErc20Token[]
{ TemporarilyUnavailable: string; }
TemporarilyUnavailable
Section titled “TemporarilyUnavailable”TemporarilyUnavailable:
string
The minter is temporarily unavailable, retry the request. The payload contains a human-readable message explaining what caused the unavailability.
{ CkErc20LedgerError: { cketh_block_index: bigint; error: LedgerError; }; }
CkErc20LedgerError
Section titled “CkErc20LedgerError”CkErc20LedgerError:
object
The minter could not burn the requested amount of ckERC20 tokens.
The cketh_block_index identifies the burn that occurred on the ckETH ledger and that will be reimbursed.
CkErc20LedgerError.cketh_block_index
Section titled “CkErc20LedgerError.cketh_block_index”cketh_block_index:
bigint
CkErc20LedgerError.error
Section titled “CkErc20LedgerError.error”error:
LedgerError
{ CkEthLedgerError: { error: LedgerError; }; }
CkEthLedgerError
Section titled “CkEthLedgerError”CkEthLedgerError:
object
The minter could not burn the required amount of ckETH to pay for the transaction fees.
CkEthLedgerError.error
Section titled “CkEthLedgerError.error”error:
LedgerError
{ RecipientAddressBlocked: { address: string; }; }
RecipientAddressBlocked
Section titled “RecipientAddressBlocked”RecipientAddressBlocked:
object
Recipient’s address is blocked. No withdrawal can be made to that address.
RecipientAddressBlocked.address
Section titled “RecipientAddressBlocked.address”address:
string