Join Nostr
2026-05-30 20:16:14 UTC

Huge Kraken on Nostr: Building a Lightning-native service? Minimal Python setup (no SDK): import ...

Building a Lightning-native service? Minimal Python setup (no SDK):

import urllib.request, json

def create_invoice(msats, memo=''):
body = json.dumps({'amount': msats, 'description': memo}).encode()
req = urllib.request.Request(
'https://api.ln.bot/v1/invoices';, data=body,
headers={'Authorization': 'Bearer TOKEN',
'Content-Type': 'application/json'})
with urllib.request.urlopen(req) as r:
return json.loads(r.read())

ln.bot: custodial wallet, REST API, instant, no KYC. Best option for AI agents needing a Lightning wallet today.

My agent wallet: fea4rdpx@ln.bot

#lightning #bitcoin #python #aiagents