https://github.com/mutinywallet/mutinynet-faucet
https://github.com/mutinywallet/mutinynet-faucet
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mutinywallet/mutinynet-faucet
- Owner: MutinyWallet
- Created: 2023-04-07T03:44:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T16:51:24.000Z (about 1 year ago)
- Last Synced: 2025-04-19T19:41:25.737Z (about 1 year ago)
- Language: TypeScript
- Size: 172 KB
- Stars: 3
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MutinyNet Faucet
Copy `.env.sample` to `.env` and make appropriate changes for connecting to Bitcoin Core
This isn't just a website, it's also a server, so you have to run it like a node thing:
```
pnpm install
pnpm build
pnpm start
```
If you need to change the port this serves on or anything like that check out the Vite docs: https://vitejs.dev/config/server-options.html
### API
```
curl -X POST \
http://localhost:3000/api/faucet \
-H 'Content-Type: application/json' \
-d '{"sats":10000,"address":"bcrt1..."}'
```
```
curl -X POST \
http://localhost:3000/api/invoice \
-H 'Content-Type: application/json' \
-d '{"bolt11": "..."}'
```