コード例 #1
0
        public async Task GetEthBalance()
        {
            string  address = "0x0000000000000000000000000000000000000000";
            decimal balance = await EthUtils.GetEtherBalance(address);

            Assert.IsTrue(balance > 0);
        }
コード例 #2
0
ファイル: EtherAsset.cs プロジェクト: HopeWallet/Hope-Desktop
 /// <summary>
 /// Gets the ether balance of a given address.
 /// </summary>
 /// <param name="address"> The address to get the Ether balance for. </param>
 /// <param name="onBalanceReceived"> Callback to execute once the balance has been received, with the amount as a parameter. </param>
 public override void GetBalance(string address, Action <dynamic> onBalanceReceived)
 {
     EthUtils.GetEtherBalance(address).OnSuccess(onBalanceReceived);
 }