<p>Bitcoin New transactions can be discovered by polling using the listsinceblock API command with the Bitcoin.org client.</p>

<p>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.</p>

<p>The BitsOfProof supernode will offer this as well I believe.</p>

<p>[Update: Thanks to <a href="https://bitcoin.stackexchange.com/a/8133/153">Pelle's answer</a> to a related question,</p>

<p>You can do this using BitcoinJ by implementing the <a href="http://code.google.com/p/bitcoinj/source/browse/core/src/main/java/com/google/bitcoin/core/PeerEventListener.java" rel="nofollow noreferrer">PeerEventListener</a> interface.</p>

<p>The <a href="http://code.google.com/p/bitcoinj/source/browse/core/src/main/java/com/google/bitcoin/core/PeerEventListener.java#74" rel="nofollow noreferrer">OnTransaction</a> will be called every time a new Transaction is broadcast out and received from a Peer ]</p>

CC BY-SA 3.0
2013-05-28T14:31:23.213Z
Updated to refer to how -walletnotify will help with this.
Stephen Gornick
CC BY-SA 3.0
2013-02-25T22:15:42.900Z
2013-05-28T14:31:01.463Z
2017-04-13T12:47:32.940Z
Stephen Gornick
<p>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?</p>

CC BY-SA 3.0
2013-02-25T17:21:01.880Z
AFAIK, there's no way in the standard client to add a callback. Seems like it would be a useful feature though.
Nick ODell
CC BY-SA 3.0
2013-02-25T23:03:08.627Z
Watch only addresses. On a mobile phone wallet.
vi.su.
<bitcoind>
What is the best way to get notified of new payments received
BitWarrior
# What is the best way to get notified of new payments received

(Asked by: username_0 on 2013-02-25)

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?

**Tags:** bitcoind

> **Comments:**
> **username_1**: AFAIK, there's no way in the standard client to add a callback. Seems like it would be a useful feature though.  
> **username_2**: Watch only addresses. On a mobile phone wallet.  

---

## 1 answers

### Answer by username_3 on 2013-02-25. Score: 4

Bitcoin New transactions can be discovered by polling using the listsinceblock API command with the Bitcoin.org 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](https://bitcoin.stackexchange.com/a/8133/153) to a related question,

You can do this using BitcoinJ by implementing the [PeerEventListener](http://code.google.com/p/bitcoinj/source/browse/core/src/main/java/com/google/bitcoin/core/PeerEventListener.java) interface.

The [OnTransaction](http://code.google.com/p/bitcoinj/source/browse/core/src/main/java/com/google/bitcoin/core/PeerEventListener.java#74) will be called every time a new Transaction is broadcast out and received from a Peer ]

> **Comments:**
> **username_3**: Updated to refer to how -walletnotify will help with this.  

---

