Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atmoner/cosmos-faucet
💧 Cosmos-faucet is a simple alternative to the tendermint/faucet script
https://github.com/atmoner/cosmos-faucet
atom blockchain cosmos cosmos-address cosmos-sdk cosmosjs
Last synced: 2 months ago
JSON representation
💧 Cosmos-faucet is a simple alternative to the tendermint/faucet script
- Host: GitHub
- URL: https://github.com/atmoner/cosmos-faucet
- Owner: atmoner
- Created: 2021-05-14T17:46:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T09:20:12.000Z (about 1 year ago)
- Last Synced: 2024-08-01T13:34:10.628Z (5 months ago)
- Topics: atom, blockchain, cosmos, cosmos-address, cosmos-sdk, cosmosjs
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ccamel - atmoner/cosmos-faucet - 💧 Cosmos-faucet is a simple alternative to the tendermint/faucet script (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 >=18.0.0
## Installation
```sh
git clone https://github.com/atmoner/cosmos-faucet.git
cd cosmos-faucet
npm install
```
## Config
```sh
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
```