forked from cerc-io/laconic-faucet
|
All checks were successful
Publish zenith-faucet docker image on release / Run docker build and publish (release) Successful in 1m4s
Part of https://www.notion.so/Implement-stacks-1b5a6b22d472806a82f5dafed6955138 Reviewed-on: #3 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com> |
||
|---|---|---|
| .github/workflows | ||
| environments | ||
| src | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| CLAUDE.md | ||
| Dockerfile | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
zenith-faucet
-
Install dependencies and build:
yarn && yarn build -
Set the private key of a funded faucet account as
faucetKeyin the config file -
Run the faucet:
yarn start # Expected output: # Config: # ... # Faucet server running on port <port> # Using DB directory '/path/to/faucet/data/db' -
Example request:
curl -X POST http://localhost:3000/faucet \ -H "Content-Type: application/json" \ -d '{"address": "zenith1jxtnf48ya9sh5tzmx5vhhagy02jl0lav6sdla0"}' # Expected output: # {"success":true,"txHash":"40405D3CCA8122482C36083762561908E2595A4B765B7457C3995525991D18CE"}