Author

Topic: Checking balance of another address from daemon? (Read 1224 times)

legendary
Activity: 905
Merit: 1012
February 03, 2014, 02:15:03 AM
#8
There are a couple features under development which will enable this facility in a decentralized fashion, for anyone using Bitcoin-Qt or bitcoind:

1) An optional address index is being added, for searches such as these

2) A pull request exists for "watch only address" support.  A watch-only address is an address in your bitcoin wallet for which you do not have the private key.  With this feature, bitcoind will dutifully watch for any transactions on the watched addresses, just like a normal bitcoin address you control.

Is this going to be available any time soon ?

I can't speak to the "watch only addresses", but I'm one of the developers working on an address index. It's a nontrivial undertaking, but finally in the implementation phase. The draft BIP and Python prototype implementation are about a week away from finishing (just need to implement and document some last minute changes).. although it's been "a week away" for the past three weeks as I work on other, higher priority tasks. It might take a little bit of time to be finished. The C++ implementation is only about 50% complete, and that needs to get finished before we can even think about finalizing the spec and deployment.

To really make efficient and secure use of an index requires a soft-fork, and it is less clear when that might occur. Look at how long it took for P2SH to happen, and that was a considerably simpler change originating from the core developers (I'd still count myself as an outsider). In the mean time though it might be usable as a merged-mined side chain.
legendary
Activity: 2097
Merit: 1070
Hey all,

I am looking to check the balance of an address I don't own (e.g. 1HtUGfbDcMzTeHWx2Dbgnhc6kYnj1Hp24i) from the daemon, is this possible using an existing command? I have tried getreceivedbyaddress and listreceivedbyaddress but they do not seem to work.

The easiest way currently is to visit http://blockchain.info/ or http://blockexplorer.com/

There are a couple features under development which will enable this facility in a decentralized fashion, for anyone using Bitcoin-Qt or bitcoind:

1) An optional address index is being added, for searches such as these

2) A pull request exists for "watch only address" support.  A watch-only address is an address in your bitcoin wallet for which you do not have the private key.  With this feature, bitcoind will dutifully watch for any transactions on the watched addresses, just like a normal bitcoin address you control.



Is this going to be available any time soon ?

hero member
Activity: 836
Merit: 1030
bits of proof
Is a cake using BOP API. You might even register a listener for the address.
full member
Activity: 142
Merit: 100
Hive/Ethereum
Hey all,

I am looking to check the balance of an address I don't own (e.g. 1HtUGfbDcMzTeHWx2Dbgnhc6kYnj1Hp24i) from the daemon, is this possible using an existing command? I have tried getreceivedbyaddress and listreceivedbyaddress but they do not seem to work.

Thanks for your help!

Would you be interested in a service that delivered such notifications to your application via Webhooks?
legendary
Activity: 1596
Merit: 1100
Hey all,

I am looking to check the balance of an address I don't own (e.g. 1HtUGfbDcMzTeHWx2Dbgnhc6kYnj1Hp24i) from the daemon, is this possible using an existing command? I have tried getreceivedbyaddress and listreceivedbyaddress but they do not seem to work.

The easiest way currently is to visit http://blockchain.info/ or http://blockexplorer.com/

There are a couple features under development which will enable this facility in a decentralized fashion, for anyone using Bitcoin-Qt or bitcoind:

1) An optional address index is being added, for searches such as these

2) A pull request exists for "watch only address" support.  A watch-only address is an address in your bitcoin wallet for which you do not have the private key.  With this feature, bitcoind will dutifully watch for any transactions on the watched addresses, just like a normal bitcoin address you control.

legendary
Activity: 1596
Merit: 1100
It can be done with the Raw Transactions API but not easily.  You'ld use listunspent to get a list of transactions and filter that for the address you are checking on.
 - http://en.bitcoin.it/wiki/Raw_Transactions

That will not work for "an address I don't own" -- listunspent looks in the wallet.

legendary
Activity: 2506
Merit: 1010
I have tried getreceivedbyaddress and listreceivedbyaddress but they do not seem to work.

It can be done with the Raw Transactions API but not easily.  You'ld use listunspent to get a list of transactions and filter that for the address you are checking on.  [Update: See jgarzik's response below.]
 - http://en.bitcoin.it/wiki/Raw_Transactions

if you weren't needing bitcoind specifically for this then know that other clients including BitcoinJ, Armory, etc., provide access to this info in a different way.
newbie
Activity: 58
Merit: 0
Hey all,

I am looking to check the balance of an address I don't own (e.g. 1HtUGfbDcMzTeHWx2Dbgnhc6kYnj1Hp24i) from the daemon, is this possible using an existing command? I have tried getreceivedbyaddress and listreceivedbyaddress but they do not seem to work.

Thanks for your help!
Jump to: