blockTxs method

Future<TxHistoryPage> blockTxs(
  1. String hashOrHeight, {
  2. int page = 0,
  3. int pageSize = 25,
})

Get transactions in a block

Implementation

Future<TxHistoryPage> blockTxs(
  String hashOrHeight, {
  int page = 0,
  int pageSize = 25,
}) async {
  final data = await _proxyInterface.get(
    '/block-txs/$hashOrHeight?page=$page&page_size=$pageSize',
  );

  final txsPage = pb.TxHistoryPage.fromBuffer(data);
  return TxHistoryPage.fromProto(txsPage);
}