Example #1
0
        public async void GetBalanceAsyncTest()
        {
            var api = new EtherScanApi(Common.EthTestNet, Chain.Ropsten);

            var balance = await api
                          .GetBalanceAsync("0xe4aec93f3c0807b66b3fd043623e21dbbb0a3a82")
                          .ConfigureAwait(false);
        }
Example #2
0
        public async void GetBalanceAsyncTest()
        {
            var api = new EtherScanApi(Common.EthTestNet);

            var asyncResult = await api
                              .GetBalanceAsync("0xe4aec93f3c0807b66b3fd043623e21dbbb0a3a82")
                              .ConfigureAwait(false);

            Assert.False(asyncResult.HasError);
        }