getBlocksByHeight method

Future getBlocksByHeight(
  1. int blockHeight, [
  2. bool withTransactioins = false
])

Blocks ///

Implementation

Future<dynamic> getBlocksByHeight(int blockHeight, [bool withTransactioins = false]) async {
  final path = "$endpoint/blocks/by_height/$blockHeight?with_transactions=$withTransactioins";
  final resp = await http.get(path);
  return resp.data;
}