We build a new page dedicated to spreading awareness about the L402 protocol.
The L402 brings built-in payments to the HTTP level, powered by the Lightning Network, making it easier than ever to paywall any HTTP endpoint in the internet. It enables you to integrate a payment mechanisms directly into your web applications, enabling a smoother and more efficient monetization process.
There are currently several libraries available that make it easy to integrate L402 into your servers and clients applications in an easy way.
The L402 protocol has been live at Lightning Labs since 2021. At FuseStats, we use L402 to paywall files, databases, and APIs on our platform.
If you have any questions about how to integrate this in your service, feel free to ask in the replies.
Happy coding!
Another way SN could integrate L402 is by adding themselves as a wallet to pyL402
You're absolutely right!
When we built fewsats.com, one of the first challenges we encountered was the lack of L402-compatible clients, which made it difficult for users to make payments seamlessly. Even with our bitcoin-connect-based client, many users still preferred the familiarity of scanning QR codes.
For the L402 ecosystem to flourish, we need more compatible clients across various platforms, like browsers and mobile apps. This will enable a wider range of users to access and consume L402-paywalled endpoints with ease.
We're currently working on a solution to onboard users to the ecosystem, even if they don't have an L402-compatible client or even a LN wallet but that's still 2-3 weeks away :)
How are internet-native paywalls implemented?
For a detailed flow chart, you can check the main page but here's the TL;DR version:
Currently, the credentials are Macaroons (a type of cookie), and the challenge is a Lightning invoice (proof of completion is the preimage).
You can check out the full flow with code in our notebook tutorial:
https://colab.research.google.com/drive/1MLZy1g6-lFqbRAfFOxR14PZ3b36sYr1r
Nice site!
Thanks so much!
The L402 ecosystem is still young, so even a simple site pointing people in the right direction is a win. Please let us know if you have any suggestions for improvement
Am I free to use these on my website for exclusive videos/podcasts? L402 is open for anyone to leverage??
Of course! It's an open protocol that was initially developed by Lightning Labs and is currently being standardized as a BLIP
You can find the BLIP details here: https://github.com/lightning/blips/pull/26
There are already several libraries and websites that have implemented this protocol. I've compiled a list of awesome resources related to L402 on this GitHub repo:
https://github.com/Fewsats/awesome-L402
If you encounter any issues while integrating L402 into your project, feel free to open an issue on that repo, and the community will be happy to help you out!
deleted by author
Is working! #1018597