getBalanceByAddr static method

Future<double> getBalanceByAddr(
  1. String address, {
  2. WalletConfig? config,
})

getBalanceByAddr is the same as getBalance

Implementation

static Future<double> getBalanceByAddr(String address,
    {WalletConfig? config}) async {
  try {
    return await _methodChannel.invokeMethod('getBalance', {
      'address': address,
      'seedRpc': config?.seedRPCServerAddr?.isNotEmpty == true
          ? config?.seedRPCServerAddr
          : [DEFAULT_SEED_RPC_SERVER],
    });
  } catch (e) {
    rethrow;
  }
}