Skip to content

Commit df46aa6

Browse files
committed
📝 update readme
1 parent bc2f756 commit df46aa6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# L402 Server Example (Rust)
1+
<div align="center">
2+
3+
<a href="https://github.com/AbdelStark/l402-server-example-rs/actions/workflows/ci.yml"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/AbdelStark/l402-server-example-rs/ci.yml?style=for-the-badge" height=30></a>
4+
<a href="https://bitcoin.org/"> <img alt="Bitcoin" src="https://img.shields.io/badge/Bitcoin-000?style=for-the-badge&logo=bitcoin&logoColor=white" height=30></a>
5+
6+
</div>
7+
8+
# L402 Server Example in Rust
29

310
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.
411

12+
[Live Demo web app](https://l402.starknetonbitcoin.com/) - [Demo frontend repo](https://github.com/AbdelStark/l402-shield)
13+
514
## Features
615

716
- User creation and management
@@ -18,6 +27,7 @@ A Rust implementation of an API paywalled with the [L402 protocol](https://www.l
1827
- **GET /info** - Get current user info (requires authentication)
1928
- **GET /block** - Get the latest Bitcoin block hash, costs 1 credit (requires authentication)
2029
- **POST /l402/payment-request** - Initiate a payment to purchase more credits
30+
- **POST /credits-payment-options** - Get available credit purchase options
2131
- **POST /webhook/lightning** - Lightning payment webhooks
2232
- **POST /webhook/coinbase** - Coinbase payment webhooks
2333

0 commit comments

Comments
 (0)