getBlock method

Future<Block?> getBlock(
  1. u64 slot, {
  2. GetBlockConfig? config,
})

Returns identity and transaction information about a confirmed block at slot in the ledger.

Implementation

Future<Block?> getBlock(
  final u64 slot, {
  final GetBlockConfig? config,
}) async =>
    (await getBlockRaw(slot, config: config)).result;