getAssetUnspent method
Implementation
Future<List<ScripthashUnspent>> getAssetUnspent(scripthash) async {
var proc = 'blockchain.scripthash.listassets';
List<dynamic> unspent = await request(proc, [scripthash]);
return (unspent.map((res) => ScripthashUnspent(
scripthash: scripthash,
height: res['height'],
txHash: res['tx_hash'],
txPos: res['tx_pos'],
value: res['value'],
ticker: res['name']))).toList();
}