Skip to content

NotifyError

NotifyError = { Refunded: { block_index: [] | [BlockIndex]; reason: string; }; } | { InvalidTransaction: string; } | { Other: { error_code: bigint; error_message: string; }; } | { Processing: null; } | { TransactionTooOld: BlockIndex; }

Defined in: packages/canisters/src/declarations/cmc/cmc.d.ts:170

{ Refunded: { block_index: [] | [BlockIndex]; reason: string; }; }

Refunded: object

The payment processing failed and the payment was returned the caller. This is a non-retriable error.

block_index: [] | [BlockIndex]

The index of the block containing the refund.

reason: string

The reason for the refund.

{ InvalidTransaction: string; }

InvalidTransaction: string

The transaction does not satisfy the cycle minting canister payment protocol. The text contains the description of the problem. This is a non-retriable error.

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

Other: object

Other error.

error_code: bigint

error_message: string

{ Processing: null; }

Processing: null

The same payment is already being processed by a concurrent request. This is a retriable error.

{ TransactionTooOld: BlockIndex; }

TransactionTooOld: BlockIndex

The payment was too old to be processed. The value of the variant is the oldest block index that can still be processed. This a non-retriable error.