Bitcoin Forum
June 07, 2024, 03:14:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to query Bitcoin Core to get the balance of an address you don't own?  (Read 545 times)
racezefi (OP)
Member
**
Offline Offline

Activity: 80
Merit: 14


View Profile
April 18, 2016, 09:15:23 PM
 #1

From what I've been checking, getreceivedbyaddress RPC command doesn't work on addresses not added in the wallet.

How can I query the whole blockchain for the balance of a list of addresses?
Bonus question, same thing but with xpub keys.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3416
Merit: 6675


Just writing some code


View Profile WWW
April 18, 2016, 09:21:07 PM
 #2

You cannot.

racezefi (OP)
Member
**
Offline Offline

Activity: 80
Merit: 14


View Profile
April 19, 2016, 07:05:48 AM
 #3

Thanks!

Going to try BitCore.
Is there any other way that might be more efficient, aside from using a site with an API, like blockchain.info?
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!