<p>Since you only care about transactions involving your wallet, you can specify the <code>walletnotify</code> option in your bitcoin.conf or your bitcoind start command.</p>

<p>Since <code>walletnotify</code> allows you to execute an arbitrary command with the new tx info, it's fairly easy to make it call a webhook on your application, or invoke your application via the command line, or pass the information on in any number of other ways.</p>

CC BY-SA 3.0
2018-03-20T12:14:42.117Z
2018-03-20T12:14:42.117Z
Raghav Sood
<p>I am trying to create some app based on RPC API call from bitcoin core.</p>

<p>I want to make my btc core daemon send a notification whenever a new transaction is observed. Does BTC core RPC API have a websocket interface to make a call when new transaction happens ?</p>

CC BY-SA 3.0
2018-03-19T05:24:07.727Z
Do you want the call happen for every transaction on the network or just transactions in your wallet?
Ava Chow
CC BY-SA 3.0
2018-03-20T02:45:25.703Z
just on my wallet
Billy Adelphia
<bitcoin-core><api><json-rpc>
Does Bitcoin RPC API have a realtime websocket?
Billy Adelphia
# Does Bitcoin RPC API have a realtime websocket?

(Asked by: username_0 on 2018-03-19)

I am trying to create some app based on RPC API call from bitcoin core.

I want to make my btc core daemon send a notification whenever a new transaction is observed. Does BTC core RPC API have a websocket interface to make a call when new transaction happens ?

**Tags:** bitcoin-core, api, json-rpc

> **Comments:**
> **username_1**: Do you want the call happen for every transaction on the network or just transactions in your wallet?  
> **username_0**: just on my wallet  

---

## 1 answers

### Answer by username_2 on 2018-03-20. Score: 5 | Accepted answer

Since you only care about transactions involving your wallet, you can specify the `walletnotify` option in your bitcoin.conf or your bitcoind start command.

Since `walletnotify` allows you to execute an arbitrary command with the new tx info, it's fairly easy to make it call a webhook on your application, or invoke your application via the command line, or pass the information on in any number of other ways.


---

