junobuild_shared::ledger::icpFunction chain_length
Source pub async fn chain_length(block_index: BlockIndex) -> CallResult<u64>
Expand description
Queries the ledger for the current chain length.
§Arguments
block_index
- The block index from which to start the query.
§Returns
A result containing the chain length or an error message.