I something like onCoinReceived
in bitcoinj
2 Answers
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
Use NBXplorer for notifications: https://github.com/dgarage/NBXplorer/blob/master/docs/API.md#websocket