I've implemented ngx_l402, an Nginx module that enables pay-per-request authentication using the L402 protocol. It allows API providers to monetize their endpoints via Bitcoin and the Lightning Network.
Why ngx_l402?
πΉ Monetize APIs with Bitcoin payments
πΉ Seamless Lightning authentication using L402
πΉ Supports generating invoices via Lightning Network Daemon (LND), Lightning URL (LNURL), and Nostr Wallet Connect (NWC)
πΉ Lightweight & efficient for Nginx users
Check it out:
π GitHub: https://github.com/DhananjayPurohit/ngx_l402
Would love to hear feedback and thoughts! πβ‘
/api/predictions/buy
, each unique API calls would require different sats amount to be paid. The sats amount/invoice can be passed in the http header.