GithubHelp home page GithubHelp logo

atmoner / cosmos-faucet Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 30 KB

๐Ÿ’ง Cosmos-faucet is a simple alternative to the tendermint/faucet script

JavaScript 73.61% HTML 26.39%
atom blockchain cosmos cosmos-sdk cosmosjs cosmos-address

cosmos-faucet's Introduction

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

cosmos-faucet's People

Contributors

atmoner avatar raulbernal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.