⭐ Cosmos-faucet is a simple alternative to the tendermint/faucet script. This is an idea adapted for ➡️ Bitcanna and can be used for any project using cosmos.
node version >=14.0.0
git clone https://github.com/BitCannaCommunity/cosmos-faucet.git
cd cosmos-faucet
npm install
nano config.json
Edit this part with your value:
{
"mnemonic":"one flight badge two kiwi adapt snap arrest make blast three wet...",
"chainId":"bitcanna-testnet-1",
"lcdUrl":"https://cosmos-testnet.bitcanna.io",
"denom":"ubcna",
"prefix":"bcna",
"feeAmount":5000,
"AmountSend":1000000,
"memo":"Sent using Cosmostation-CosmoJS ;-)",
"lport":8000,
"gasLimit":200000
}
node --experimental-modules --es-module-specifier-resolution=node app.js
curl -s "http://testnet-faucet.bitcanna.io:8000/?address=bcna1xvuxv4znmmeu96ulxhldvyt32whp57vhyzg5vh" | jq