getBlockByRound method

Future<Block> getBlockByRound(
  1. BigInt round, {
  2. CancelToken? cancelToken,
  3. ProgressCallback? onSendProgress,
  4. ProgressCallback? onReceiveProgress,
})

Lookup a block it the given round number.

Throws an AlgorandException if there is an HTTP error. Returns the block in the given round number.

Implementation

Future<Block> getBlockByRound(
  BigInt round, {
  CancelToken? cancelToken,
  ProgressCallback? onSendProgress,
  ProgressCallback? onReceiveProgress,
}) async {
  return _blocksApi.getBlockByRound(
    round,
    cancelToken: cancelToken,
    onSendProgress: onSendProgress,
    onReceiveProgress: onReceiveProgress,
  );
}