cashubtc / npubcash-server

MIT License
34 stars 4 forks source link

Replace Blink with Mint WebSocket connection #20

Open Egge21M opened 6 months ago

Egge21M commented 6 months ago

Feature Request

Is your feature request related to a problem? Please describe.

In order for npubcash to work properly it needs to know when invoices generated through LNURL get paid. Because polling mints is unfeasible, npubcash uses Blink to wrap each invoice and then uses Blink's WebHooks API to get notified.

While this works flawlessly, we should strive to reduce third party dependencies...

Describe the solution you'd like

Because polling is unfeasible we need a way for a mint to actively notify npubcash whenever an invoice has been paid. Mint WebSockets (https://github.com/cashubtc/nuts/pull/98) would solve this issue. Once this is implemented in Mints we can savely transition to WebSockets and remove Blink API completely.