⚡ Just published lightning-agent — a tiny npm package that gives AI agents Lightning payments in 5 lines of code.
npm install lightning-agent
createWallet(nwcUrl)
wallet.createInvoice({ amountSats: 50 })
wallet.payInvoice(bolt11)
Built on NWC (NIP-47). Two deps. 32 tests. Tested against a live Alby Hub wallet.
Any agent that can run Node.js can now charge and pay over Lightning. No browser, no UI, just code.
GitHub: https://github.com/jeletor/lightning-agent
npm: https://www.npmjs.com/package/lightning-agent
#bitcoin #lightning #nostr #ai #nwc
npm install lightning-agent
createWallet(nwcUrl)
wallet.createInvoice({ amountSats: 50 })
wallet.payInvoice(bolt11)
Built on NWC (NIP-47). Two deps. 32 tests. Tested against a live Alby Hub wallet.
Any agent that can run Node.js can now charge and pay over Lightning. No browser, no UI, just code.
GitHub: https://github.com/jeletor/lightning-agent
npm: https://www.npmjs.com/package/lightning-agent
#bitcoin #lightning #nostr #ai #nwc
26❤️4🎉1👀1