Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using the daemon and not a 3rd party pinging service, what is the best way to get notified of new payments? Do we need to constantly poll the server?

share|improve this question
AFAIK, there's no way in the standard client to add a callback. Seems like it would be a useful feature though. – Nick ODell Feb 25 '13 at 17:21
Watch only addresses. On a mobile phone wallet. – Feb 25 '13 at 23:03

Bitcoin New transactions can be discovered by polling using the listsinceblock API command with the client.

Beginning with v0.8.2 of the Bitcoin-Qt/bitcoind client is -walletnotify option that can run a process when a transaction that affects the wallet is seen.

The BitsOfProof supernode will offer this as well I believe.

[Update: Thanks to Pelle's answer to a related question,

You can do this using BitcoinJ by implementing the PeerEventListener interface.

The OnTransaction will be called every time a new Transaction is broadcast out and received from a Peer ]

share|improve this answer
Updated to refer to how -walletnotify will help with this. – Stephen Gornick May 28 '13 at 14:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.