Bitcoin Forum
March 18, 2026, 02:50:55 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to know BTC balance of certain addresses at a certain block height?  (Read 177 times)
100bitcoin (OP)
Sr. Member
****
Offline Offline

Activity: 862
Merit: 423


View Profile WWW
January 22, 2020, 04:57:26 PM
 #1

Looking for some online tool or api...

Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1048
Merit: 2852


Bitcoin and C♯ Enthusiast


View Profile WWW
January 22, 2020, 05:42:10 PM
Merited by joniboini (2), ABCbits (1), Heisenberg_Hunter (1)
 #2

https://api.blockcypher.com/v1/btc/main/addrs/$Address?limit=2000
The response will be in JSON, look for the key "txrefs" which is an array of transactions that contain hash, block height, ... Then it's just a matter of putting the result in an array and then filtering the result based on whatever block height number or datetime you want.

I am doing it this way in my little project. In the ForkBalance window you can update the tx history and by setting the height to whatever it will calculate the balance of the address at that height.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.20.0)Ann-git
Denovo(0.8.0)Ann-git
Bitcoin.Net(0.27.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(4.0.0)Ann-git
SharpPusher(0.14.0)Ann-git
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!