Skip to content

QueryArchiveError

QueryArchiveError = { BadFirstBlockIndex: { first_valid_index: BlockIndex; requested_index: BlockIndex; }; } | { Other: { error_code: bigint; error_message: string; }; }

Defined in: packages/canisters/src/declarations/ledger-icp/ledger.d.ts:257

An error indicating that the arguments passed to [QueryArchiveFn] were invalid.

{ BadFirstBlockIndex: { first_valid_index: BlockIndex; requested_index: BlockIndex; }; }

BadFirstBlockIndex: object

[GetBlocksArgs.from] argument was smaller than the first block served by the canister that received the request.

first_valid_index: BlockIndex

requested_index: BlockIndex

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

Other: object

Reserved for future use.

error_code: bigint

error_message: string