Skip to content

MutinyWallet/mutinynet-faucet-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

curl -X POST \
  http://localhost:3001/api/onchain \
  -H 'Content-Type: application/json' \
  -d '{"sats":10000,"address":"bcrt1..."}'
curl -X POST \
  http://localhost:3001/api/lightning \
  -H 'Content-Type: application/json' \
  -d '{"bolt11": "..."}'
curl -X POST \
  http://localhost:3001/api/bolt11 \
  -H 'Content-Type: application/json' \
  -d '{"amount_sats": 1234}'
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"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •