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.
Type Declaration
Section titled “Type Declaration”{ BadFirstBlockIndex: { first_valid_index: BlockIndex; requested_index: BlockIndex; }; }
BadFirstBlockIndex
Section titled “BadFirstBlockIndex”BadFirstBlockIndex:
object
[GetBlocksArgs.from] argument was smaller than the first block served by the canister that received the request.
BadFirstBlockIndex.first_valid_index
Section titled “BadFirstBlockIndex.first_valid_index”first_valid_index:
BlockIndex
BadFirstBlockIndex.requested_index
Section titled “BadFirstBlockIndex.requested_index”requested_index:
BlockIndex
{ Other: { error_code: bigint; error_message: string; }; }
Other:
object
Reserved for future use.
Other.error_code
Section titled “Other.error_code”error_code:
bigint
Other.error_message
Section titled “Other.error_message”error_message:
string