Builder's Guide
  • Welcome to the Builder's Guide to the LND Galaxy!
  • The Lightning Network
    • Overview
    • Payment Channels
      • Lifecycle of a Payment Channel
      • Watchtowers
      • Understanding Sweeping
      • Etymology
    • The Gossip Network
      • Identifying Good Peers on the Lightning Network
    • Pathfinding
      • Finding routes in the Lightning Network
      • Channel Fees
      • Multipath Payments (MPP)
    • Lightning Network Invoices
      • Understanding Lightning Invoices
    • Making Payments
      • The Payment Cycle
      • Timelocks
      • ⭐Hashed Timelock Contract (HTLC)
      • Payment Etymology
      • ⭐What Makes a Good Routing Node
      • Understanding Submarine Swaps
      • Instant Submarine Swaps
    • Liquidity
      • ⭐Understanding Liquidity
      • Managing Liquidity on the Lightning Network
      • Liquidity Management for Lightning Merchants
      • How to Get Inbound Capacity on the Lightning Network
      • Lightning Service Provider
    • L402: Lightning HTTP 402 Protocol
      • Macaroons
      • L402
      • 📋Protocol Specification
      • Implementations and Links
    • Taproot Assets
      • Taproot Assets Protocol
      • Taproot Assets on Lightning
      • Edge Nodes
      • Taproot Assets Trustless Swap
      • FAQ
      • Glossary
  • Lightning Network Tools
    • LND
      • 🛠️Get Started
      • lnd.conf
      • First Steps With LND
      • Wallet Management
      • Sending Payments
      • Atomic Multi-path Payments (AMP)
      • Receiving Payments
      • Unconfirmed Bitcoin Transactions
      • Channel Fees
      • Inbound Channel Fees
      • Macaroons
      • Configuring Watchtowers
      • Pathfinding
      • Blinded Paths
      • Key Import
      • Secure Your Lightning Network Node
      • Configuration of a Routing Node
      • Quick Tor Setup
      • Configuring Tor
      • Enable ‘Neutrino mode’ in Bitcoin Core
      • Send Messages With Keysend
      • Partially Signed Bitcoin Transactions
      • Bulk onchain actions with PSBTs
      • Sweeper
      • Debugging LND
      • Fuzzing LND
      • LND API documentation
      • Channel Acceptor
      • RPC Middleware Interceptor
      • HTLC Interceptor
      • NAT Traversal
      • Recovery: Planning for Failure
      • Migrating LND
      • Disaster recovery
      • Contribute to LND
    • Lightning Terminal
      • What is Lightning Terminal?
      • 🛠️Get litd
      • Run litd
      • Integrating litd
      • Demo: Litd Speed Run
      • Connect to Terminal
      • Recommended Channels
      • Rankings
      • Health Checks
      • Liquidity Report
      • Opening Lightning Network Channels
      • Managing Channel Liquidity
      • Autofees
      • AutoOpen
      • LND Accounts
      • Loop and Lightning Terminal
      • Loop Fees
      • Pool and Lightning Terminal
      • Command Line Interface
      • Troubleshooting
      • Lightning Node Connect: Under the hood
      • LNC Node Package
      • LITD API Documentation
      • Privacy and Security
      • Privacy Policy
      • Terms of Use
    • Loop
      • 🛠️Get Started
      • The Loop CLI
      • Autoloop
      • Static Loop In Addresses
      • Instant Loop Outs
      • Peer with Loop
      • Loop API Documentation
    • Pool
      • Overview
      • Quickstart
      • 🛠️Installation
      • First Steps
      • Accounts
      • Orders and Asks
      • Sidecar Channels
      • Zero-confirmation Channels
      • Channel Leases
      • Batch Execution
      • Account Recovery
      • Pool API Documentation
      • FAQs
    • Taproot Assets
      • Get Started
      • First Steps
      • Taproot Assets Channels
      • Asset Decimal Display
      • Become an Edge Node
      • RFQ
      • Collectibles
      • Universes
      • Asset Loop
      • Debugging Tapd
      • Multisignature
      • Minting Assets With an External Signer
      • Lightning Polar
      • Operational Safety Guidelines
      • Taproot Assets API Documentation
    • Aperture
      • ⚒️Get Aperture
      • LNC Backend
      • LNC Mailbox
      • Pricing
    • Faraday
      • 🛠️Get Started
      • The Faraday CLI
      • Faraday API Documentation
  • LAPPs
    • Guides
      • Use Polar to Build Your First LAPP
        • Setup: Local Cluster with Polar
        • Setup: Run the Completed App
        • Setup: Run the App Without LND
      • Add Features
        • Feature 1: Connect to LND
        • Feature 2: Display Node Alias and Balance
        • Feature 3: Sign and Verify Posts
        • Feature 4: Modify Upvote Action
      • Make Your own LNC-powered Application
    • Next Steps
  • Community Resources
    • Resource List
    • Lightning Bulb 💡
    • Glossary
    • FAQ
Powered by GitBook
On this page
  • Lightning Bulb Requests for Development:
  • L402 implementation ideas

Was this helpful?

  1. Community Resources

Lightning Bulb 💡

Experimental Ideas for Building on Bitcoin

PreviousResource ListNextGlossary

Last updated 8 months ago

Was this helpful?

The Lightning Network enables new and exciting ways to build on bitcoin, but the endless possibilities can be overwhelming. That’s why we are launching Lightning Bulb to help inspire the community and kick-start new Lightning projects. This is where we'll host open research questions, experimental ideas, and other forms of inspiration for the Lightning developer community.

If you’re just getting started building on Lightning, we that will familiarize you with our Lightning implementation and its APIs.

We will track developer progress and showcase projects here and on our social channels. These questions will be updated with input from the team and community. If you have ideas of your own you would like to propose, send us an email at or directly to the Github repository.

We are here to help. If you have questions or need to bounce ideas around, feel free to jump in our dev or join our developer office hours on to chat with our team and the rest of the community. Let’s get building!

Lightning Bulb Requests for Development:

A native interface to Lightning on the web

  • New Lightning browser extensions like and the built on the standard.

  • Suggestion: extending to encompass liquidity APIs and as well as any other Lightning APIs.

Streaming payments on social platforms

  • Build an easy way for creators on Twitch, YouTube, and other popular platforms to accept streaming payments from their audience.

  • Suggestion: use webhooks to build ways for Lightning payments to interact with existing platform creator tools and enable audience engagement.

Distributed compute with Lightning

  • Use for a decentralized metered container execution service (like ). Will have with the potential to reach a more global audience without the requirement of credit cards.

  • Suggestion: think serverless microVMs like as a starting point, will likely need a small overlay layer to let people find other nodes.

Lightning Paywall Plugin

  • Combined with the Web LN work mentioned above, implement as a , and/or plug-in. Long term, the plugin should target so only a Chrome extension install is required.

  • For thought: could potentially serve as a captcha replacement, where popular sites present de minimis paywalls at first, ramping up only with actual abuse.

Pay-per-use Lightning API calls

  • Suggestions: a Keysend Services Directory, ability to sell Mission Control data to a peer in need of updated routing data, etc.

L402 implementation ideas

L402s allow for paid APIs in distributed systems. L402s are built on top of Macaroons -- they can carry caveats, be attenuated, can be delegated and further restricted by the bearer.

Implementing L402s is most attractive in services that require metered or paid access together with granular access control. A key advantage of L402s is that the logic of collecting payments can be separate from verifying access, often without the need to maintain customer records or expose them to the open internet.

Here are just some initial ideas for potential L402 powered products:

  • Bitcoin price API

There are many APIs for obtaining Bitcoin prices, some paid, others free. A Bitcoin price API built with L402s may issue a macaroon to each new user, allowing for some free usage. Upon hitting a daily or total limit, the API can issue an L402 together with a Lightning invoice. There could be separate pricing for surge traffic or historic data. One idea is to issue L402s that include a “delay” as a caveat. Free access requests are served after a few seconds, while paid access is served immediately.

  • Virtual Private Network

A VPN provider can use L402s to sell bandwidth, adjusting their rates by location and speed. This makes it easy to integrate the VPN service into other products, resell bandwidth or share bandwidth between users or applications.

  • Voice over IP gateway

There are plenty of low-fee VoIP gateways, troubled by high payment costs. A VoIP gateway using L402s could quickly become attractive for other applications to integrate once pay-as-you-go plans over Lightning become available. L402s could be obtained for a set amount of minutes, a monthly plan or for each call separately, turning every Lightning wallet also into a phone, fax or SMS application.

  • Podcasts and movies

Podcasts could become available with advertisements to the general public, and without ads to paying subscribers. L402s issued to the subscriber define which episodes and versions are available. The paying subscriber can also share an attenuated L402 with their friends that lets them listen to a single episode without having to pay for it. This can be implemented into existing infrastructure without breaking backwards compatibility.

  • Cloud storage (differentiated by speed, per bandwidth or by storage, delegate access)

A cloud storage provider can sell their space and bandwidth and use L402s to track payments and organize access control. A user can attenuate their L402s and share them among their separate devices or even specific files with friends.

Create APIs where all requests and responses are made with Lightning push payments with , instead of requiring an invoice

have a beginner’s guide
lnd
hello@lightning.engineering
submit a PR
Slack
Discord
Joule
Lightning Browser Extension
WebLN
WebLN
Loop
Pool
L402s
Travis CI
Firecracker VM
BTCPayServer
Wordpress
Ghost
WASM
Keysend