Portefeuilles pris en charge
BlinkWallet
Configuration
- Inscrivez-vous sur blink.sv
- Accédez à Dashboard → API Keys → créez une clé
- Copiez votre Wallet ID depuis le tableau de bord
Node.js
Python
Comment ça fonctionne
Appelle l’API GraphQL de Blink avec la mutationlnInvoicePaymentSend. Retourne le preImage de la transaction réglée.
AlbyWallet
Configuration
- Créez un compte sur getalby.com
- Accédez à Settings → Access Tokens → créez un jeton avec la portée
payments:send - (Facultatif) Exécutez votre propre Alby Hub pour l’auto-garde
Node.js
Python
Comment ça fonctionne
AppellePOST /payments/bolt11 sur l’API REST d’Alby Hub avec un jeton Bearer. Retourne le payment_preimage de la réponse.
Portefeuille personnalisé
Implémentez l’interfaceL402Wallet pour utiliser n’importe quel portefeuille Lightning :
- TypeScript
- Python
| Méthode | TypeScript | Python |
|---|---|---|
| Payer une facture BOLT11 | payInvoice(bolt11): Promise<{ preimage: string }> | pay_invoice(bolt11: str) -> str |
Choisir un portefeuille
- Tests / prototypage → Blink (custodial, configuration instantanée, offre gratuite)
- Agent en production, contrôle maximal → Alby Hub auto-hébergé (non-custodial, API REST)
- Débit élevé / frais réduits → Phoenix via
L402Walletpersonnalisé (non-custodial, ACINQ) - Entreprise → LNbits auto-hébergé via un portefeuille personnalisé