0

I something like onCoinReceived in bitcoinj

Example with bitcoinj

Murch
  • 75,206
  • 34
  • 186
  • 622
s k
  • 175
  • 6

2 Answers2

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?

m1xolyd1an
  • 5,636
  • 2
  • 14
  • 30
0

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

BlueTang
  • 11
  • 1