history method

Future<HistoryResponse> history(
  1. String groupHex, {
  2. int page = 0,
  3. int pageSize = 10,
})

Get transaction history for a plugin group

Implementation

Future<HistoryResponse> history(
  String groupHex, {
  int page = 0,
  int pageSize = 10,
}) async {
  final data = await proxy.get(
    '/plugin/$pluginName/$groupHex/history?page=$page&page_size=$pageSize',
  );

  final historyPage = _decodeProto(data, () => pb.TxHistoryPage());
  return HistoryResponse(
    page: page,
    pageSize: pageSize,
    txs: historyPage.txs,
  );
}