~/talk

Gating APIs with Lightning: A Hands-On L402 Workshop Using Aperture

slides:none on file

Workshop builds an L402-gated API from scratch using Aperture in a Docker regtest: backend runs on port 9000, Aperture listens on port 8700 and stores grants in SQLite. Requests to /post list freely but GET /post/{id} returns 402 with a Lightning invoice and a macaroon; paying the invoice from a separate node yields a preimage which, combined with the macaroon as LSAT macaroon:preimage, unlocks the protected endpoint. Demo covers aperture config, invoice generation, macaroon caveats, dynamic pricing and rate limits.

AI-written summary · about

  1. 0:00Gating APIs with Lightning
  2. 7:37Lightning Network setup with Polar
  3. 19:31Apache reverse proxy for L402
  4. 28:37L402 payment gating demo
  5. 33:15Q&A: Macaroon validation
  6. 47:09Silent payments overview
  7. 1:04:13Sending silent payments demo
  8. 1:11:37Q&A: Silent payments wallets
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.