This faucet app allows anyone who passes a captcha to request tokens for a Cosmos account address.
-
Clone this repository locally
-
Create Google reCAPTCHA v2 keys.
-
Configure the faucet backend`:
git clone https://github.com/tendermint/faucet cd faucet make install export PORT=8000 export MNEMONIC='guard city cruise fall foster feature kiwi eager unlock humble mutual stem rug legend spoil warfare select describe damage mix satisfy salmon robust gallery' export CLI_NAME=cosmzoned export DENOMS=unolus export NODE=tcp://localhost:26657 export MAX_CREDIT=100000000 # 100_000_000 == 100nolus faucet
NB: A dev proxy is configured to point to
http://localhost:8000
. If you plan to change the port or want to point to a different faucet backend, modify the configuration invue.config.js
. -
Make sure the faucet account have funds. The faucet basically performs a
tx send
for every token request, so make sure the faucet account have enough tokens (more tokens could be added later by sending more funds to the faucet account)..cosmzoned keys add faucet --recover --keyring-backend test cosmzoned tx bank send <token-holder-address> nolus1t8h3v4zfezvqn767f42ylyzjyf75r0rc9deww8 1000000000unolus --chain-id nolus-private --from <token-holder> --keyring-backend test
-
Change the
.env
template if necessaryVUE_APP_CHAIN
- Should hold thechain-id
VUE_APP_RECAPTCHA_SITE_KEY
- Google reCAPTCHA Site KeyVUE_APP_CLAIM_URL
- URL for the claim server request. Leave as is.VUE_APP_FAUCET_AMOUNT
- Amount of tokens to send on each request. Should specify amount+denom e.g. 123uscrt.
-
Start faucet ui:
npm install npm run serve