Bitcoin Forum
May 04, 2024, 10:41:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: get bitcoin address balance  (Read 209 times)
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
February 16, 2018, 02:13:36 PM
 #1

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
1714862490
Hero Member
*
Offline Offline

Posts: 1714862490

View Profile Personal Message (Offline)

Ignore
1714862490
Reply with quote  #2

1714862490
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714862490
Hero Member
*
Offline Offline

Posts: 1714862490

View Profile Personal Message (Offline)

Ignore
1714862490
Reply with quote  #2

1714862490
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
February 16, 2018, 02:27:48 PM
 #2

From bitcoin core:

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

You are using testnet.


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


Blockexplorer.com is searching on mainNet (not testnet).
ManaMan
Member
**
Offline Offline

Activity: 238
Merit: 38


View Profile
February 16, 2018, 03:22:22 PM
 #3

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.
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
February 17, 2018, 12:43:29 AM
 #4

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.
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!