BTC

=

Loading price...

gold

=

Loading price...
Core Lightning

Core LNURL

LNURL Server for Core Lightning

A lightweight Go application that enables Lightning Network invoice generation through Core Lightning's REST API using the LNURL-Pay protocol.

What is Core LNURL?

Core LNURL is a self-custodial LNURL server designed to work with Core Lightning (CLN) nodes. It provides a simple HTTP endpoint that generates Lightning invoices dynamically, making it easy to accept Lightning payments without giving up control of your funds.

Unlike custodial services, Core LNURL runs on your own infrastructure, communicating directly with your Core Lightning node via its REST API. This means you maintain full sovereignty over your Bitcoin while providing a clean LNURL interface for payments.

โšก Built for Self-Sovereignty

Core LNURL is open source and self-hosted. No third-party dependencies, no custodial risksโ€”just you and your Lightning node.

โšก

Lightning Integration

  • โœ“ Dynamic invoice generation
  • โœ“ Direct CLN REST API integration
  • โœ“ LNURL-Pay protocol compatible
  • โœ“ Works with any LNURL wallet
  • โœ“ Unique invoices per request
  • โœ“ Configurable payment amounts
๐Ÿ”

Security & Setup

  • โœ“ Runes-based authentication
  • โœ“ Restricted command permissions
  • โœ“ Configurable ports and URLs
  • โœ“ Simple YAML configuration
  • โœ“ Pre-built binaries available
  • โœ“ Minimal attack surface

๐Ÿ”ง How It Works

1๏ธโƒฃ

Setup Your Node

Run a Core Lightning node with REST API enabled. Create a rune (restricted auth token) that allows only invoice generation.

2๏ธโƒฃ

Configure & Deploy

Edit the YAML config with your node URL, rune, and server port. Run the pre-built binary or build from source.

3๏ธโƒฃ

Accept Payments

Share your LNURL endpoint. Wallets scan it, request an invoice, and you receive payments directly to your node.

๐Ÿ“ก API Endpoint

GET /lnurl/pay

Accepts username and amount parameters, returns a Lightning payment request.

https://your-server.com/lnurl/pay?username=satoshi&amount=1000

The server communicates with your Core Lightning node's REST API to generate fresh invoices on each request.

โš™๏ธ Requirements

Infrastructure

  • โ€ข Bitcoin full node (Bitcoin Core, etc.)
  • โ€ข Core Lightning node with open channels
  • โ€ข CLN REST server enabled
  • โ€ข Server or VPS to host the LNURL server

Configuration

  • โ€ข Rune with invoice generation permissions
  • โ€ข YAML config file with node details
  • โ€ข Domain or IP for public access
  • โ€ข Optional: Reverse proxy for HTTPS

Get Started with Core LNURL

Core LNURL is open source and built for Lightning node operators who value self-custody. Pre-built binaries available for Linux, macOS, and Windows.

License: MIT โ€ข Language: Go โ€ข Status: Production Ready