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

Latest commit

 

History

History
53 lines (44 loc) · 1.31 KB

README.md

File metadata and controls

53 lines (44 loc) · 1.31 KB

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