Skip to content

Byzantium-ETS/l402-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L402: Monetize your API

Description

This workshop will explain the L402 protocol and its applications. We'll also play with a demo to understand how to monetize APIs using the L402 protocol and Lightning Network.

Workshop Plan

  1. Return on Lightning

    • Overview of the Lightning Network and its benefits.
  2. Introduce the L402 Protocol

  3. The Role Lightning Plays in This

    • Discuss how the Lightning Network supports the L402 protocol.
    • How is it different from other solutions?
  4. Why We Use Macaroon?

    • Understanding Macaroons and their importance in secure API access.
  5. Configure the L402 server

  6. Demo with the Test Web Client

    • Hands-on demonstration using the test web client to interact with the API.
  7. Hacking the project

    • Create your own custom services.
    • Restrict an already paid token and share it.
    • Connect the test client and server to a true node.

Dependencies

  • Go (Go programming language)

Preparation Instructions for Attendees

  1. Bring your laptop: You will need a laptop to run the demo and do the following activities.

  2. Install Go: https://golang.org/dl/.

Running the Demo

  1. Start the Server:

Navigate to the cloned LSAT repository and start the server.

git clone https://github.com/Byzantium-ETS/lsat.git
cd lsat
go run server/main.go
  1. Open the Web Client:

Open index.html in your web browser to view the web client interface.

  1. Disable your ad-blocker:

Your ad-blocker might block some request from the client and cause pages to not load.

  1. Interact with the API:

If the requests fail, check in the script.js if the url is the same as in the server.

Use the provided buttons in the web client to interact with the API and observe the responses.

Additional resources

  1. Bitcoin Faucet
  2. Mastering the Lightning Network (LN)
  3. phoenixd is the server equivalent of the popular phoenix wallet for mobile
  4. Stacker News makes internet communities that pay you Bitcoin

About

Learn about the l402 specification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published