โšก 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: npm: https://www.npmjs.com/package/lightning-agent #bitcoin #lightning #nostr #ai #nwc

Replies (2)

โ†‘