Nostr Archives

Network Explorer

Brunswick10h ago

Do you want to send and recieve lightning payments with your server with no lightning node liquidity management and no KYC lightning service provider accounts? - Yes, so do I. Does it drive you nuts that to make your software's payment interface fully sovereign and KYC-free on the lightning network, you need it to have practically 100% uptime. - This problem is solved. CashU solves these problems, but how do you do it with a headless system? - This is how. I wrote this to make my life easier. Maybe yours too. Run a systemd daemon, nutshell-walletd.service, on your server under a unique system user, store CashU tokens on the filesystem with permissions only accessible through the API and by the superuser. There are no network leaks, you access it exclusively through a permissioned Unix domain socket. There are three simple operations, the design is minimalistic: 1) get wallet balance. 2) get lightning invoice to be paid into wallet. 3) pay lightning invoice from wallet balance. Operations 2 and 3 involve two additional calls to complete and monitor the transaction status. It is documented in the API specification. Take a look at this document. The code is fully operational in the associated branch, I am using it with a custom lnbits funding source. https://github.com/BrunswickBTC/nutshell/blob/BrunswickBTC_Wallet_FastAPI_UDS/walletd_UDS_API.md

0 reactions0 replies2 reposts0 zaps

Replies (0)

No replies yet.