Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mutinywallet/mutinynet-faucet-rs
https://github.com/mutinywallet/mutinynet-faucet-rs
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mutinywallet/mutinynet-faucet-rs
- Owner: MutinyWallet
- Created: 2023-06-13T23:15:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-06T20:14:10.000Z (4 months ago)
- Last Synced: 2024-08-06T23:41:10.685Z (4 months ago)
- Language: Rust
- Size: 270 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MutinyNet Faucet API
1. Copy `.env.sample` to `.env.local` and fill it out with bitcoind and lnd connection info
2. Run `cargo build && cargo start`## Endpoint examples
```sh
curl -X POST \
http://localhost:3001/api/onchain \
-H 'Content-Type: application/json' \
-d '{"sats":10000,"address":"bcrt1..."}'
``````sh
curl -X POST \
http://localhost:3001/api/lightning \
-H 'Content-Type: application/json' \
-d '{"bolt11": "..."}'
``````sh
curl -X POST \
http://localhost:3001/api/bolt11 \
-H 'Content-Type: application/json' \
-d '{"amount_sats": 1234}'
``````sh
curl -X POST \
http://localhost:3001/api/channel \
-H 'Content-Type: application/json' \
-d '{"capacity": 2468,"push_amount": 1234,"pubkey":"023...","host":"127.0.0.1:9735"}'
```