BlockRange
Defined in: packages/canisters/src/declarations/ledger-icrc/icrc_ledger.d.ts:74
A prefix of the block range specified in the [GetBlocksArgs] request.
Properties
Section titled “Properties”blocks
Section titled “blocks”blocks:
Value[]
Defined in: packages/canisters/src/declarations/ledger-icrc/icrc_ledger.d.ts:92
A prefix of the requested block range. The index of the first block is equal to [GetBlocksArgs.start].
Note that the number of blocks might be less than the requested [GetBlocksArgs.length] for various reasons, for example:
- The query might have hit the replica with an outdated state that doesn’t have the whole range yet.
- The requested range is too large to fit into a single reply.
NOTE: the list of blocks can be empty if:
- [GetBlocksArgs.length] was zero.
- [GetBlocksArgs.start] was larger than the last block known to the canister.