getBlockByRound method
Future<Block>
getBlockByRound(
- BigInt round, {
- CancelToken? cancelToken,
- ProgressCallback? onSendProgress,
- 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,
);
}