<p>An old question - by the time I saw it - but the Electrum daemon - assuming it is running on Linux of some type must be polled from an external source with software or a cron job.</p>

<p>see <a href="https://bitcoin.stackexchange.com/questions/51499/checking-polling-a-balance-of-an-address-in-electrum-via-the-command-line-rpc/58992#58992">Checking/polling a balance of an address in Electrum via the command line/RPC</a></p>

CC BY-SA 3.0
2017-09-01T18:49:13.507Z
2017-09-01T18:49:13.507Z
wilburunion
<p>When run in daemon mode, bitcoind accepts a parameter <a href="https://en.bitcoin.it/wiki/Running_Bitcoin" rel="nofollow"><code>-walletnotify=&lt;cmd&gt;</code></a> which runs <code>&lt;cmd&gt;</code> whenever a wallet transaction changes due to sending/receiving.</p>

<p>Is there a similar feature in Electrum?  If not, how can it be simulated?  </p>

<p>The <a href="https://github.com/spesmilo/electrum/blob/bb7b0884e31f5c7d1a4f93cf63c65401c7f496fd/scripts/watch_address" rel="nofollow"><code>watch_wallet</code></a> script seems to do something similar but only works on individual addresses, not whole wallets.  In addition, it only prints a message.</p>

<electrum>
Simulating -walletnotify option in Electrum
Mr. Llama
# Simulating -walletnotify option in Electrum

(Asked by: username_0 on 2015-11-04)

When run in daemon mode, bitcoind accepts a parameter [`-walletnotify=<cmd>`](https://en.bitcoin.it/wiki/Running_Bitcoin) which runs `<cmd>` whenever a wallet transaction changes due to sending/receiving.

Is there a similar feature in Electrum? If not, how can it be simulated?

The [`watch_wallet`](https://github.com/spesmilo/electrum/blob/bb7b0884e31f5c7d1a4f93cf63c65401c7f496fd/scripts/watch_address) script seems to do something similar but only works on individual addresses, not whole wallets. In addition, it only prints a message.

**Tags:** electrum


---

## 1 answers

### Answer by username_1 on 2017-09-01. Score: 0

An old question - by the time I saw it - but the Electrum daemon - assuming it is running on Linux of some type must be polled from an external source with software or a cron job.

see [Checking/polling a balance of an address in Electrum via the command line/RPC](https://bitcoin.stackexchange.com/questions/51499/checking-polling-a-balance-of-an-address-in-electrum-via-the-command-line-rpc/58992#58992)


---

