getAssetBalance method

Future<ScripthashAssetBalances> getAssetBalance(
  1. dynamic scripthash
)

Implementation

Future<ScripthashAssetBalances> getAssetBalance(scripthash) async {
  var proc = 'blockchain.scripthash.get_asset_balance';
  dynamic balance = await request(proc, [scripthash]);
  return ScripthashAssetBalances(
      balance['confirmed'], balance['unconfirmed']);
}