getHistory method

Future<List<ScripthashHistory>> getHistory(
  1. dynamic scripthash
)

Implementation

Future<List<ScripthashHistory>> getHistory(scripthash) async {
  var proc = 'blockchain.scripthash.get_history';
  List<dynamic> history = await request(proc, [scripthash]);
  return (history.map((response) => ScripthashHistory(
      height: response['height'], txHash: response['tx_hash']))).toList();
}