getMomentumsByHeight method

Future<MomentumList> getMomentumsByHeight(
  1. int height,
  2. int count
)

Implementation

Future<MomentumList> getMomentumsByHeight(int height, int count) async {
  height = height < 1 ? 1 : height;
  count = count > rpcMaxPageSize ? rpcMaxPageSize : count;
  var response = await client
      .sendRequest('ledger.getMomentumsByHeight', [height, count]);
  return MomentumList.fromJson(response);
}