public async Task Test_GetBalance2() { var getBalance = GetBalance.Create(Consts.ApiUrl.TestNet); var balance = await getBalance("hx0000000000000000000000000000000000000000"); Console.WriteLine($"Treasury : {balance.ToString()}"); }
public static void DisplayBalance() { var wallet = WalletHelper.LoadWallet(); var getBalance = GetBalance.Create(WalletHelper.TestNetUrl); var balance = getBalance.Invoke(wallet.Address).Result; Console.WriteLine($"Your current ICX balance for {wallet.Address} is : {Utils.Loop2ICX(balance)} ICX"); }