https://github.com/BitCannaCommunity/cosmos-faucet
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.
https://github.com/BitCannaCommunity/cosmos-faucet
cosmos faucet
Last synced: 25 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/BitCannaCommunity/cosmos-faucet
- Owner: BitCannaCommunity
- Archived: true
- Created: 2021-05-24T11:33:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-24T11:55:33.000Z (almost 4 years ago)
- Last Synced: 2024-11-04T19:41:22.631Z (6 months ago)
- Topics: cosmos, faucet
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 12
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ccamel - BitCannaCommunity/cosmos-faucet - 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. (JavaScript)
README
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
```sh
git clone https://github.com/BitCannaCommunity/cosmos-faucet.git
cd cosmos-faucet
npm install
```
## Config
```sh
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
```