getAssetUnspent method

Future<List<ScripthashUnspent>> getAssetUnspent(
  1. dynamic scripthash
)

Implementation

Future<List<ScripthashUnspent>> getAssetUnspent(scripthash) async =>
    ((await request(
      'blockchain.scripthash.listassets',
      [scripthash],
    ) as List<dynamic>)
        .map((res) => ScripthashUnspent(
            scripthash: scripthash,
            height: res['height'],
            txHash: res['tx_hash'],
            txPos: res['tx_pos'],
            value: res['value'],
            ticker: res['name']))).toList();