Post
Topic
Board Project Development
Re: Bitcoin Windows gadget which displays BTC and currency amounts
by
w.a.y.n.e
on 31/05/2024, 10:48:48 UTC
If anyone else is having problems retrieving wallet balance, since blockchain.info started refusing requests from old IE versions, here's the solution. In settings, don't use "Addresses" field. Retrieve your address balance through "Pool #1":
Poll #1 URL: https://chain.api.btc.com/v3/address/YOUR_BTC_ADDRESS
Paid amount JSON key: json.data.balance/100000000

So this stopped working a week or 2 ago, initially dropped out for a day then came back, now gives 404 on the page, and going back to the root address only gives 5o3 error.

So i figured i'd look for a new address to put in Pool #1 and came up with this....

https://api.blockcypher.com/v1/btc/main/addrs/PUT_YOUR_ADDRESS_HERE

and that works in the browser, and gives this block of data in the first section of the return (test address they use)

Code:
{
  "address": "38DGj87axzmQiZeAd1w1y5FEmuu5a7pfBa",
  "total_received": 1630000,
  "total_sent": 1630000,
  "balance": 0,
  "unconfirmed_balance": 0,
  "final_balance": 0,
  "n_tx": 7,
  "unconfirmed_n_tx": 0,
  "final_n_tx": 7,
  "txrefs": [

so i figured great, i can substitute that in (yes i tested with my address and all good) and in the Paid amount JSON key use: json.data.final_balance/100000000

but it doesn't work, i've also just tried plain balance, json.data.balance etc etc, with no luck.
can anyone see what i'm doing wrong please