TransferError
TransferError = {
TxTooOld: {allowed_window_nanos:bigint; }; } | {BadFee: {expected_fee:Tokens; }; } | {TxDuplicate: {duplicate_of:BlockIndex; }; } | {TxCreatedInFuture:null; } | {InsufficientFunds: {balance:Tokens; }; }
Defined in: packages/canisters/src/declarations/ledger-icp/ledger.d.ts:434
Type Declaration
Section titled “Type Declaration”{ TxTooOld: { allowed_window_nanos: bigint; }; }
TxTooOld
Section titled “TxTooOld”TxTooOld:
object
The request is too old. The ledger only accepts requests created within 24 hours window. This is a non-recoverable error.
TxTooOld.allowed_window_nanos
Section titled “TxTooOld.allowed_window_nanos”allowed_window_nanos:
bigint
{ BadFee: { expected_fee: Tokens; }; }
BadFee
Section titled “BadFee”BadFee:
object
The fee that the caller specified in the transfer request was not the one that ledger expects.
The caller can change the transfer fee to the expected_fee and retry the request.
BadFee.expected_fee
Section titled “BadFee.expected_fee”expected_fee:
Tokens
{ TxDuplicate: { duplicate_of: BlockIndex; }; }
TxDuplicate
Section titled “TxDuplicate”TxDuplicate:
object
The ledger has already executed the request.
duplicate_of field is equal to the index of the block containing the original transaction.
TxDuplicate.duplicate_of
Section titled “TxDuplicate.duplicate_of”duplicate_of:
BlockIndex
{ TxCreatedInFuture: null; }
TxCreatedInFuture
Section titled “TxCreatedInFuture”TxCreatedInFuture:
null
The caller specified created_at_time that is too far in future.
The caller can retry the request later.
{ InsufficientFunds: { balance: Tokens; }; }
InsufficientFunds
Section titled “InsufficientFunds”InsufficientFunds:
object
The account specified by the caller doesn’t have enough funds.
InsufficientFunds.balance
Section titled “InsufficientFunds.balance”balance:
Tokens