getTxHashesByBlockHeight method

Future<List<String>> getTxHashesByBlockHeight(
  1. int? height
)

Implementation

Future<List<String>> getTxHashesByBlockHeight(int? height) async {
  var blockInfo = await TerraStartup.getLCDClient()
      .tendermint
      .getBlockInfo(height: height);
  var txs = blockInfo.block.data;

  return txs.txs.map((w) => HashExtensions.hashToHex(w)).toList();
}