laconic-faucet/README.md
Prathamesh Musale 5f71d4cc2c Implement a cosmos-sdk chain faucet API (#1)
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: #1
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-07-18 05:50:31 +00:00

33 lines
699 B
Markdown

# laconic-faucet
* Install dependencies and build:
```bash
yarn && yarn build
```
* Set the private key of a funded faucet account as `faucetKey` in the [config file](./environments/local.toml)
* Run the faucet:
```bash
yarn start
# Expected output:
# Config:
# ...
# Faucet server running on port <port>
# Using DB directory '/path/to/faucet/data/db'
```
* Example request:
```bash
curl -X POST http://localhost:3000/faucet \
-H "Content-Type: application/json" \
-d '{"address": "laconic1cndafgkspae7es7g2j52hmxxukwsy84v6h07w5"}'
# Expected output:
# {"success":true,"txHash":"40405D3CCA8122482C36083762561908E2595A4B765B7457C3995525991D18CE"}
```