lightning-invoice-decoder

Decode BOLT11 Lightning invoices to extract amounts in satoshis and validate format.

Updated Dec 31, 2025
One-click install
npx skills add https://github.com/PerceptLabs/mvmnt --skill lightning-invoice-decoder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lightning-invoice-decoder
Source: https://github.com/PerceptLabs/mvmnt/tree/main/skills/lightning-invoice-decoder
Command: npx skills add https://github.com/PerceptLabs/mvmnt --skill lightning-invoice-decoder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers implement BOLT11 Lightning invoice decoding by providing patterns to decode amounts, validate formats, and extract satoshis from invoices.

Core Features & Use Cases

  • Decode BOLT11 invoice amounts to satoshis.
  • Validate BOLT11 invoice format and handle amountless invoices.
  • Use in wallets, payment processors, and invoicing workflows to verify and process Lightning invoices.

Quick Start

Install or import the Lightning invoice decoder, then call the isValidBolt11Invoice and decodeBolt11Amount functions with a sample invoice.

Frequently Asked Questions about lightning-invoice-decoder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a BOLT11 invoice format in TypeScript without external dependencies?

Decoding BOLT11 invoices is necessary when building Lightning wallets, payment processors, or invoicing tooling to verify payment requests and process amounts. It allows applications to reliably extract satoshis before initiating Lightning payments.

Can I handle amountless Lightning invoices using a pure TypeScript implementation?

Yes, this Skill supports amountless Lightning invoices by validating the BOLT11 format and safely decoding the amount when present. It provides pure TypeScript functions to handle both standard and amountless invoices.

Does this Lightning invoice decoder work with Node.js and frontend TypeScript wallets?

Yes, this Lightning invoice decoder works in Node.js and frontend TypeScript wallets because it is a pure TypeScript implementation with no external dependencies. You can import its validation and decoding functions directly.

What is the best way to parse BOLT11 invoice amounts for a Lightning payment processor?

The best way to parse BOLT11 invoice amounts for a Lightning payment processor is using a pure TypeScript implementation to validate the format and extract satoshis. This approach avoids external dependencies while providing reliable decoding.