Intégration avec les fournisseurs de services Lightning

VérifiéSûr

Spécifications et services des LSP (Lightning Service Providers) pour résoudre le problème de liquidité entrante dans le réseau Lightning.

Spar Skills Guide Bot
DeveloppementAvancé
24/07/2026
Claude CodeCursorCodex
#lightning#lsp#bitcoin#blip#liquidity

Recommandé pour

Synthèse automatique

Skill de référence sur les LSP Lightning : types de services (canal statique payant, canaux JIT, liquidity ads, routage MPP-trampoline), spécifications BLIP-50 à 53 et panorama des principaux fournisseurs.

Points forts

  • Couvre précisément les BLIP-50 à 53 avec les endpoints HTTPS (get_info, create_order, get_order)
  • Décrit le flux JIT étape par étape, y compris le risque de confiance entre réception du paiement et confirmation du canal
  • Liste comparative des LSP majeurs (ACINQ, Voltage, Olympus, Megalith, Flashsats, Magma) avec leur spécialité
  • Inclut une section bugs fréquents et vérifications d'auto-garde utiles à l'intégration

Limites

  • Skill purement documentaire en lecture seule : aucun appel API ni génération de code fourni
  • Les frais et comportements des LSP évoluent vite ; les chiffres cités (1-2 %) sont indicatifs
  • Ne détaille pas l'implémentation LDK ou Breez SDK au-delà de quelques phrases
Quand l'utiliser

À utiliser pour concevoir ou évaluer une intégration LSP dans un wallet Lightning, ou pour choisir un fournisseur selon le besoin de liquidité entrante.

Quand l'éviter

À éviter si vous cherchez du code d'implémentation prêt à l'emploi ou des tarifs LSP à jour, ce skill ne fournit ni l'un ni l'autre.

Analyse de sécurité

Sûr
Score qualité85/100

This is a pure documentation/reference skill about Lightning Service Providers. The declared allowed-tools are limited to Read, Grep, and Glob — no bash, network, or write access. The content contains only conceptual explanations, tables, and example HTTP API sketches for illustration; there is no executable code, no curl|sh, no credential/token handling, no obfuscation, and no instructions that would cause destructive or exfiltrating behavior. Listing it presents no meaningful execution risk.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Design a JIT flow
Our mobile wallet needs to receive a first payment without an existing channel. Walk me through a BLIP-52 JIT channel flow, including the invoice route hints, the fee deduction, and what happens if the payment arrives close to invoice expiry.
Compare LSP options
Compare ACINQ, Voltage and the Breez SDK for a self-custodial wallet that needs inbound liquidity, focusing on custody model, splicing behaviour and what the user should verify on-chain.
Debug a failed LSP payment
A payer got 'incorrect_or_unknown_payment_details' on an invoice our LSP issued. Using the common-bugs list for LSP integrations, list the likely causes and how to check each one.

name: lightning-lsp description: | LSP (Lightning Service Provider) specifications: BLIPs, JIT channels, on-pay channel open, MPP-trampoline, BOLT12 hosted invoice. Major LSPs: ACINQ (Phoenix backend), Voltage, Olympus, Megalith, Flashsats. USE WHEN: integrating with an LSP, designing LSP services, evaluating LSP options for a wallet. allowed-tools: Read, Grep, Glob

LSPs (Lightning Service Providers)

LSPs solve the inbound liquidity problem: a new Lightning user has no inbound capacity — they can't receive without first opening a channel. LSPs offer hosted, JIT, or "channel-on-pay" services.

Service types

Static channel-open (paid)

  • Customer pays LSP a fee (sats) for a fixed inbound capacity.
  • Typically dual-funded or zero-conf.

JIT (Just-in-Time) channels

  • Customer requests an invoice.
  • LSP intercepts the payment and opens a channel during the payment flow, paying out via the new channel.
  • Customer needs no pre-existing channel.

Typical fee: 1-2% of channel amount, deducted from payment.

Liquidity ads (BOLT 9 features)

  • LSP advertises liquidity for sale on Lightning gossip.
  • Customers buy via dual-funded channel open.

MPP-trampoline routing

  • LSP runs trampoline node.
  • Mobile clients route through LSP without full graph knowledge.

BLIP-50+ specifications

BLIPs (BOLT-Lightning Improvement Proposals) at github.com/lightning/blips. Key for LSPs:

  • BLIP-50: LSP API: GetInfo, CreateOrder, GetOrder.
  • BLIP-51: Channel-open via CreateOrder.
  • BLIP-52: JIT channels (channel opens during payment forward).
  • BLIP-53: HODL invoices for LSP integration.

LSP API typically over HTTPS with API key:

POST /v1/get_info
POST /v1/create_order   { lspBalance, clientBalance, expiry }
POST /v1/get_order

Major LSPs (late 2025)

| LSP | Specialty | |-----|-----------| | ACINQ | Phoenix's hosted backend, splice-on-demand | | Voltage | Cloud LN nodes + LSP services | | Olympus by ZBD | Zaps + LN payments LSP | | Megalith Node | Public liquidity provider | | Flashsats | LSP service for app integrators | | Magma (Amboss) | LSP marketplace |

Many LSPs operate via custom HTTP APIs in addition to BLIP-50+.

Mobile wallet / LSP patterns

Phoenix + ACINQ

  • Phoenix mobile is the wallet, ACINQ hosts an Eclair node as the customer's "LSP".
  • ACINQ auto-splices to maintain liquidity.
  • Fees: small per-transaction percentage.

Mutiny + multiple LSPs

  • Mutiny Wallet uses LDK + can rotate between LSPs.
  • Customer can choose LSP per channel.

Breez SDK

  • Spec-driven LSP integration via BLIPs.
  • Self-custodial; LSP provides liquidity only.

Channel-open during payment (JIT) flow

1. Customer opens app, requests invoice for 50,000 sats.
2. App talks to LSP: "I need an invoice; here's my static node info."
3. LSP returns:
   - BOLT11 invoice with route_hint pointing through LSP.
   - Promise to open channel on first payment.
4. Customer shares invoice with payer.
5. Payer pays. LSP receives the payment. LSP opens a channel to
   customer with `value = payment - fee`. Forwards remainder via
   the new channel as final HTLC. Channel funded with the inbound
   payment.

Risk: between LSP receiving payment and channel funding tx confirming (zero-conf), customer trusts LSP not to keep funds.

Self-custodial verification

When using an LSP, customer should:

  • Verify channel open tx confirms (or has min_depth).
  • Monitor channel state (no surprises in commitment).
  • Have a watchtower in case LSP cheats.

Common bugs

  • LSP fee not communicated to user → user surprised by reduced amount received.
  • Race: invoice expiry too short for LSP's channel-open path.
  • LSP rejects payment → customer's payer is confused (sees error "incorrect_or_unknown_payment_details" but the invoice was valid).
  • Channel close due to LSP cycling: customer needs new channel on next payment, more fees.

See also

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/lightning-service-provider-integration-mryiqgi4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/lightning-service-provider-integration-mryiqgi4/download' --output '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md.part' && mv '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md.part' '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Grep, Glob

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && test -s '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/lightning-lsp' && cp -R '.skill-downloads/lightning-service-provider-integration-mryiqgi4' '.claude/skills/lightning-lsp'

Cursor
test -f '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && test -s '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/lightning-lsp' && cp -R '.skill-downloads/lightning-service-provider-integration-mryiqgi4' '.cursor/skills/lightning-lsp'

Codex
test -f '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && test -s '.skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/lightning-lsp' && cp -R '.skill-downloads/lightning-service-provider-integration-mryiqgi4' '.agents/skills/lightning-lsp'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/lightning-service-provider-integration-mryiqgi4'

openskills read 'lightning-service-provider-integration-mryiqgi4'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/lightning-service-provider-integration-mryiqgi4/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires