When run in daemon mode, bitcoind accepts a parameter
-walletnotify=<cmd> 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?
watch_wallet script seems to do something similar but only works on individual addresses, not whole wallets. In addition, it only prints a message.