getBlockByHeight method

Future<Map<String, String>?> getBlockByHeight(
  1. String blockHeight
)

Get block by height

Implementation

Future<Map<String, String>?> getBlockByHeight(String blockHeight) async {
  final block = await _channel.invokeMethod("getBlockByHeight", {
    "block_height": blockHeight,
  });

  return Map.from(block);
}