getBalance method

Future<CoinBalance> getBalance(
  1. String owner, {
  2. String coinType = "0x2::sui::SUI",
})

Implementation

Future<CoinBalance> getBalance(String owner,
    {String coinType = "0x2::sui::SUI"}) async {
  final result = await client.request('suix_getBalance', [owner, coinType]);
  return CoinBalance.fromJson(result);
}