queryBalance method

Future<BalanceData?> queryBalance(
  1. String? address
)

query balance

Implementation

Future<BalanceData?> queryBalance(String? address) async {
  final res = await service.queryBalance(address);
  return res != null
      ? BalanceData.fromJson(res as Map<String, dynamic>)
      : null;
}