By the end of this guide you will have the Buda Lightning Invoice service running on your local machine, a real BOLT11 Lightning invoice generated through your Buda.com account, and a confirmed payment status check — all in under five minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nicosaporiti/buda-lightning-invoice/llms.txt
Use this file to discover all available pages before exploring further.
The production deployment lives at
https://budaln.fly.dev. Use that base URL if you want to test against the hosted instance instead of running locally.Clone the repository and install dependencies
Clone the project from GitHub and install its npm dependencies:This installs Express, express-validator, dotenv, cors, and the rest of the runtime dependencies listed in
package.json.Configure your environment
Create a
.env file at the project root with your Buda.com credentials and optional server settings:PORT and DOMAIN are both optional. If omitted, the server defaults to port 8080 (matching the Fly.io configuration) and derives the domain from the incoming request’s Host header. BUDA_API_KEY and BUDA_API_SECRET are required — without them the service cannot authenticate with Buda.com.See the Configuration page for a full description of every variable.Start the server
Start in development mode with hot reload powered by Or start without hot reload for a production-like environment:Either command prints the following when the server is ready:
nodemon:Create your first invoice
With the server running, send a A successful response returns the BOLT11 invoice string along with the values you submitted:Copy the
POST request to /newinvoice with an amount in satoshis and a short memo:invoice value — you will need it in the next step.Configuration
Learn about every environment variable and how to obtain your Buda.com API credentials.
API Reference
Explore the full request and response schemas for all four endpoints.