Skip to content

💧 Cosmos-faucet is a simple alternative to the tendermint/faucet script

Notifications You must be signed in to change notification settings

BitCannaGlobal/cosmos-faucet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmostation logo

Cosmos-faucet

⭐ 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.

Prerequisites

node version >=18.0.0

Installation

git clone https://github.com/atmoner/cosmos-faucet.git
cd cosmos-faucet
npm install

Config

nano config.json

Edit this part with your value:

{
  "name": "Bitcanna Testnet",
  "mnemonic": "",
  "chainId": "bitcanna-dev-1", 
  "lcdUrl": "https://lcd-testnet.bitcanna.io",
  "rpcUrl": "https://rpc-testnet.bitcanna.io",
  "denom": "ubcna",
  "prefix": "bcna",
  "gasPrice": 0.075,
  "faucetAmount": 1000000,
  "memo": "Faucet from cosmos-faucet",
  "enableUi": false,
  "enableSwagger": true,
  "dappPort": "8000"
} 

Run it (server side)

node app.js

Client request

curl -s "http://testnet-faucet.bitcanna.io:8000/faucet/claim/bcna1xvuxv4znmmeu96ulxhldvyt32whp57vhyzg5vh" | jq

About

💧 Cosmos-faucet is a simple alternative to the tendermint/faucet script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.6%
  • HTML 26.4%