What we do here is serve up mildly amusing crypto memes in exchange for testnet satoshis! …more specifically, we’re using Aperture to handle incoming requests and validate L402’s. If you pay our testnet satoshi toll and then send us an L402 as proof, we’ll hand over a meme!
For the low, low price of 20 testnet satoshis, you’ll get access to all these memes…
GET https://memes.innovativecommercegroup.com/meme/show/3Day trading:
GET https://memes.innovativecommercegroup.com/meme/show/4It’s a trap:
Also available are some inspirational quotes! Quotes 1-5 are available at…
GET https://memes.innovativecommercegroup.com/quote/[quote number]
—————— Many Details ——————
If you’re not sure how to make and use an L402, here are some instructions and some resources!
An L402 is a macaroon (a fancy cookie!) coupled with a preimage which is proof of (BOLT11)payment on the Lightning network.
When you make a request to one of the above endpoints you’ll first receive a 402 error code along with a macaroon and a Lightning invoice. Once the invoice has been paid and the preimage obtained, you can construct the L402 according to the below format and include it in the header of your GET request.
Aperture requires the L402 to be included in the header of a request. A curl request may look like this…
curl --location --request GET 'https://memes.innovativecommercegroup.com/meme/show/2'
--header 'Authorization: L402 [macaroon]:[preimage]'
Here a some resources for learning more:
Slack: https://lightning.engineering/slack.html (checkout the #l402 channel)