Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: victorkimba17 on February 16, 2018, 02:13:36 PM



Title: get bitcoin address balance
Post by: victorkimba17 on February 16, 2018, 02:13:36 PM
From bitcoin core:

ubuntu@ip-172-31-16-165:~/bitcoin/src$ ./bitcoin-cli  -testnet getaddressesbyaccount ""
[
  "2MxoU6Sz8gyWfLCF2b8a8Wv56VT1MHdSB2x",
  "2NEquFrdTthcctUv3tUkeNU7FbbkgMT2812"
]

Then, i go to https://blockchain.info/search?search=2NEquFrdTthcctUv3tUkeNU7FbbkgMT2812%22

The webpage told me unrecognized search pattern.

Is the bitcoin core address not recognised ?

I go to https://blockexplorer.com/

The webpage told me "no matching records found".

Which address format should i use


Title: Re: get bitcoin address balance
Post by: DannyHamilton on February 16, 2018, 02:27:48 PM
From bitcoin core:

ubuntu@ip-172-31-16-165:~/bitcoin/src$ ./bitcoin-cli  -testnet getaddressesbyaccount ""

You are using testnet.

Then, i go to https://blockchain.info/search?search=2NEquFrdTthcctUv3tUkeNU7FbbkgMT2812%22

Blockchain.info is searching on mainNet (not testnet).

I go to https://blockexplorer.com/

Blockexplorer.com is searching on mainNet (not testnet).


Title: Re: get bitcoin address balance
Post by: ManaMan on February 16, 2018, 03:22:22 PM
If you are looking around at test-net Danny pointed out why you don't see anything with these.

However here is the link for one of your addresses and we can see that it has balance on the test-net, note that for this I used blockcypher explorer as they have an option for test-net as well as for main-net:

https://live.blockcypher.com/btc-testnet/address/2MxoU6Sz8gyWfLCF2b8a8Wv56VT1MHdSB2x/ - balance 1.1btc at the moment of checking.

and this one is empty: https://live.blockcypher.com/btc-testnet/address/2NEquFrdTthcctUv3tUkeNU7FbbkgMT2812/

Main-net addresses begin with "1" , "3" or "bc1" depending on which function you use for generating the private key.


Title: Re: get bitcoin address balance
Post by: victorkimba17 on February 17, 2018, 12:43:29 AM
However here is the link for one of your addresses and we can see that it has balance on the test-net, note that for this I used blockcypher explorer as they have an option for test-net as well as for main-net:

https://live.blockcypher.com/btc-testnet/address/2MxoU6Sz8gyWfLCF2b8a8Wv56VT1MHdSB2x/ - balance 1.1btc at the moment of checking.

Thank you !! I am a beginner in bitcoin, the forum helps a lot.