You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Rust implementation of an API paywalled with the [L402 protocol](https://www.l402.org/). This project demonstrates how to implement a server that charges per API call using Lightning Network or other payment methods to get access to paywalled resources.
4
11
12
+
[Live Demo web app](https://l402.starknetonbitcoin.com/) - [Demo frontend repo](https://github.com/AbdelStark/l402-shield)
13
+
5
14
## Features
6
15
7
16
- User creation and management
@@ -18,6 +27,7 @@ A Rust implementation of an API paywalled with the [L402 protocol](https://www.l
18
27
-**GET /info** - Get current user info (requires authentication)
19
28
-**GET /block** - Get the latest Bitcoin block hash, costs 1 credit (requires authentication)
20
29
-**POST /l402/payment-request** - Initiate a payment to purchase more credits
30
+
-**POST /credits-payment-options** - Get available credit purchase options
0 commit comments