getHistory method

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

Implementation

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