getAssetBalance method

Future<ScripthashAssetBalances> getAssetBalance(
  1. dynamic scripthash
)

Implementation

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