コード例 #1
0
        public async void GetBalanceTest(
            BitcoinBasedCurrency currency,
            string baseUri,
            string address)
        {
            var api           = new InsightApi(currency, baseUri);
            var balanceResult = await api.GetBalanceAsync(address);

            Assert.False(balanceResult.HasError, balanceResult.Error?.Description ?? "");
        }
コード例 #2
0
        public async void GetBalanceTest(
            BitcoinBasedCurrency currency,
            string baseUri,
            string address)
        {
            var api     = new InsightApi(currency, baseUri);
            var balance = await api.GetBalanceAsync(address);

            // todo: catch error
        }