0

I something like onCoinReceived in bitcoinj

Example with bitcoinj

2 Answers 2

1

NBitcoin is only a library. In order to get notified upon receipt of funds you would need to be running a bitcoin implementation such as bitcoin-core and use it's JSON-RPC, or ZMQ or it's built-in features like walletnotify.

https://github.com/NicolasDorier/NBitcoin.Docs/blob/master/README.md

How do I use walletnotify?

0

Use NBXplorer for notifications: https://github.com/dgarage/NBXplorer/blob/master/docs/API.md#websocket

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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