A simple web application that validates Lightning Network payments by verifying payment preimages against their corresponding invoices.
Check out the live application here.
- Supports both BOLT11 and BOLT12 invoice formats
- Automatic invoice format detection
- Real-time validation feedback
- Clean and simple user interface
- URL parameter support for external use
- React.js
- light-bolt11-decoder
- bolt12-decoder
- Clone the repository:
git clone https://github.com/yourusername/validate-payment.git- Install dependencies:
cd validate-payment
npm installNote: This project includes an
.npmrcfile that automatically uses--legacy-peer-depsto resolve dependency conflicts between React Scripts 5.0.1 and newer TypeScript versions required by bolt12-decoder.
- Start the development server:
npm startThe app will open automatically in your browser at http://localhost:3000.
You can validate payments by passing parameters in the URL:
https://validate-payment.netlify.app/?invoice=<INVOICE>&preimage=<PREIMAGE>
Supports both BOLT11 and BOLT12 formats:
- BOLT11 invoices (starting with
lnbcorlntb) - BOLT12 invoices (starting with
lni)
We welcome contributions from the community.
This project is licensed under the MIT License. See the LICENSE file for more information.