Rails – L402 middleware for pay-for-access APIs (inspired by Boltwall)
1 Rits1272 0 8/20/2025, 1:12:40 PM
I’ve been experimenting with pay-per-request APIs using the L402 protocol and built a lightweight Ruby middleware inspired by Boltwall
. It integrates with LND and uses macaroons to protect endpoints behind Lightning payments.
Might be useful for anyone building Lightning-authenticated services or exploring pay-for-access models in Ruby/Rails.
Repo: https://github.com/Rits1272/l402_middleware
Open to feedback or ideas on where to take it next.
No comments yet