Damus
Rizful.com · 22w
Good point. SENDING would be much safer and easier to implement. I want to study CoinOs' implementation first. I just checked the CoinOs web interface, and I don't yet see a way to send a keysend usin...
Eric P profile picture
CoinOs's implementation is NWC-only as far as I know. Here's the relevant (Core Lightning) code from their repo:
https://github.com/coinos/coinos-server/blob/master/lib/nwc.ts#L293-L330
https://github.com/coinos/coinos-server/blob/master/lib/payments.ts#L499-L534

Here's Alby Hub's LND implementation:
https://github.com/getAlby/hub/blob/master/nip47/controllers/pay_keysend_controller.go
https://github.com/getAlby/hub/blob/master/lnclient/lnd/lnd.go#L497-L589

The main ones that support NWC right now are v4vmusic.com, Castamatic, and StableKraft.app. Podverse is adding NWC to their 2.0 version. The other apps have historically used the Alby API directly, but we're working to get each of them to adopt NWC.
๐Ÿ‘1