Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: justone123 on January 02, 2018, 02:44:24 PM



Title: How can i view balance/status of BTC blockchain at certain block height?
Post by: justone123 on January 02, 2018, 02:44:24 PM
So is there any API or similar service, where i could like view the "status" at certain block. Say i want to check the balance of some X address at block height number 1000.

Can i do this easily?


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: cellard on January 02, 2018, 03:32:50 PM
So is there any API or similar service, where i could like view the "status" at certain block. Say i want to check the balance of some X address at block height number 1000.

Can i do this easily?

I was just looking for something like this recently. This would be extremely useful to know how much of a bitcoin fork you own by simply entering your addresses at the block height when the split happens, then you would get the total balance you own on the forked chain.

So far I have been needing to check address by address and manually making the sums, I think I got it right but im not sure. If you have a lot of addresses it can be tricky.

I hope someone can craft something that manages this for you automatically. You would only need to enter public addresses so no problems of losing coins.


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: LoyceV on January 02, 2018, 05:18:06 PM
I was just looking for something like this recently. This would be extremely useful to know how much of a bitcoin fork you own by simply entering your addresses at the block height when the split happens, then you would get the total balance you own on the forked chain.
You can manually use block explorers for the different forks.
I use this one for Bitcoin Cash (https://blockdozer.com), this one for Bitcoin Gold (https://btgexplorer.com/), and this one for BitCore (https://chainz.cryptoid.info/btx/) (technically BitCore is an airdrop, not a fork, but the result is the same: money connected to your private key.

Quote
I hope someone can craft something that manages this for you automatically. You would only need to enter public addresses so no problems of losing coins.
I kinda expect multi-coin-wallets will evolve if the forks keep coming. I now have to import the same private key several times into Coinomi, I can imagine in the future Coinomi or another wallet can automatically import all possible chains at once.

@TryNinja (under): thanks, I've bookmarked the link.


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: TryNinja on January 02, 2018, 08:28:02 PM
-snip-
Or just use this all-in-one tool which supports BTC, BCH, BitCore, BTG and BCD.

https://bitcore.cc/checker.php

Here is how it looks like:
https://talkimg.com/images/2023/05/14/blobc8266cfa5d32e83b.png
Direct link: https://talkimg.com/images/2023/05/14/blobc8266cfa5d32e83b.png


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: piotr_n on January 03, 2018, 01:11:38 AM
It can be done but requires some exercise and some time as the process might take awhile.

Basically you need a full bitcoin node.
You better  keep it offline and then remove all the blocks starting from the height you don't need.
Then you tell the node to rebuild the unspent database.

If you want to use my gocoin node for that, I can guide you through. For the core client,  ask the core people.


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: jnano on January 04, 2018, 03:44:34 PM
For your own wallet, in Bitcoin Core you can type in the console:

Code:
getbalance * <N>

Where N is the number of blocks back relative to the current.


Title: Re: How can i view balance/status of BTC blockchain at certain block height?
Post by: Coding Enthusiast on January 05, 2018, 06:16:25 AM
https://github.com/Coding-Enthusiast/Watch-Only-Bitcoin-Wallet/commit/7b7757652d4d23d4441b94a333fb3b2f5653dcf4

https://i.imgur.com/kskLnGh.jpg

I'll probably merge it into master today.  ::)