Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Cosmos-faucet is a simple alternative to the tendermint/faucet GoLang script. This is an idea adapted for Bitcanna and can be used for any project using cosmos.

Notifications You must be signed in to change notification settings

BitCannaCommunity/cosmos-faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 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 >=14.0.0

Installation

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

Config

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

}

Run it (server side)

node --experimental-modules --es-module-specifier-resolution=node app.js

Client request

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

About

Cosmos-faucet is a simple alternative to the tendermint/faucet GoLang script. This is an idea adapted for Bitcanna and can be used for any project using cosmos.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published