Supported wallets
BlinkWallet
Setup
- Sign up at blink.sv
- Go to Dashboard → API Keys → create a key
- Copy your Wallet ID from the dashboard
Node.js
Python
How it works
Calls the Blink GraphQL API with thelnInvoicePaymentSend mutation. Returns the preImage from the settled transaction.
AlbyWallet
Setup
- Create an account at getalby.com
- Go to Settings → Access Tokens → create a token with
payments:sendscope - (Optional) Run your own Alby Hub for self-custody
Node.js
Python
How it works
CallsPOST /payments/bolt11 on the Alby Hub REST API with a Bearer token. Returns the payment_preimage from the response.
Custom wallet
Implement theL402Wallet interface to use any Lightning wallet:
- TypeScript
- Python
| Method | TypeScript | Python |
|---|---|---|
| Pay a BOLT11 invoice | payInvoice(bolt11): Promise<{ preimage: string }> | pay_invoice(bolt11: str) -> str |
Choosing a wallet
- Testing / prototyping → Blink (custodial, instant setup, free tier)
- Production agent, max control → Alby Hub self-hosted (non-custodial, REST API)
- High throughput / low fees → Phoenix via custom
L402Wallet(non-custodial, ACINQ) - Enterprise → LNbits self-hosted via custom wallet