0

i installed bit coin core in my Windows machine [test-net] .i implemented a C#.net application using Bitcoin RPC command like generate address , transfer BTC to one address to another address. It working great.

My question is, how can I get a notification once an address that I generated receives a payment? How can I get a notification when the payment is confirmed?

Any help / guidance would be helpful.

Test net bitcoin core

0

you have to use ZeroMQ for that purpose see Bitcoin/zmq once you receive a transaction you can get a notification.

Bitcoin/zmq doesn't tell you if some transaction confirmations changed, so you can check transaction confirmations manually by calling getrawtransaction

You can use walletnotfiy as well

walletnotify=/bin/curl http://127.0.0.1/receive.php?trx=%s
  • 1
    They can also use the walletnotify option – Raghav Sood Jun 21 '18 at 6:15
  • 1
    Thanks @Adam i resolved issue using wallet notify -> walletnotify=curl 123.95.66.172/Notify/walletnotiy?txnid=%s in bitcoin config file . i implemented a simple mvc.net application – madan Jun 22 '18 at 4:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.