getBlockAtTopoHeight method

Future<Block> getBlockAtTopoHeight(
  1. GetBlockAtTopoHeightParams getBlockAtTopoHeightParams
)

Returns a block at a specific topo height.

Implementation

Future<Block> getBlockAtTopoHeight(
  GetBlockAtTopoHeightParams getBlockAtTopoHeightParams,
) async {
  final result = await sendRequest(
    DaemonMethod.getBlockAtTopoHeight,
    getBlockAtTopoHeightParams.toJson(),
  );
  return Block.fromJson(result as Map<String, dynamic>);
}