Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does walletnotify event occur on bitcoind

I have configured the walletnotify and the blocknotify event on the bitcoin daemon based on the documentation from https://en.bitcoin.it/wiki/Running_Bitcoin, to know any changes to my wallet. Only the blocknotify is executed and the walletnotify is never executed. Can someone advice on what event on the wallet will trigger the walletnotify event?

Bitcoin daemon version currently running on: 0.8.1

bitcoin.conf

rpcuser=bitcoinrpc rpcpassword=bitcoinrpc1 server=1 testnet=1 walletnotify=/home/dev/test_log/log.sh %s blocknotify=/home/dev/test_log/log.sh %s

like image 726
Abishek Avatar asked Dec 11 '13 11:12

Abishek


2 Answers

Walletnotify will get triggered when:

  • First receiving a payment
  • First conformation on the payment
  • You send a payment
like image 149
Loourr Avatar answered Oct 05 '22 02:10

Loourr


https://en.bitcoin.it/wiki/Running_Bitcoin

-walletnotify= Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)

https://github.com/bitcoin/bitcoin/pull/1974

Exactly like -blocknotify, except that it gives the TxID of transactions that hit the wallet.

Note that this is NOT a payment notification. It will trigger on outgoing transactions too, and can trigger multiple times on the same transaction.

like image 28
pro Avatar answered Oct 05 '22 01:10

pro