CosmoBook nodes
  • README
  • Cosmos validator node guides
    • defund
      • defund_on_akash
      • old_defund-private-1
        • install_node
    • haqq
      • install_node
    • humans
      • commands
      • install_mainnet
      • install_testnet
      • Statesync instructions
      • Upgrade mainnet validator node
    • hypersign
      • install_node
    • ollo
      • install_node
    • paloma
      • install_node
    • quicksilver
      • install_node
    • rebus
      • install_node
      • install_with_cosmovisor
    • sei
      • Gentx for Sei Incentivized testnet (chain-id atlantic-1)
      • install_node
      • old_sei-testnet-2
        • install_node
    • stafi
      • install_node
    • stride
      • install_node
      • old_stride1
        • install_node
      • old_stride2
        • install_node
    • ununifi
      • install_node
  • polkadot
    • subspace
      • install_node
  • starknet
    • StarkNet node
  • usefull utils
    • List of usefull commands
    • cosmos_monitoring
      • install_guide
    • relayer_hermes
      • Hermes relayer
    • relayer_ibc_go_v.2.0.0
    • Faucet
  • blockclique
    • massa
      • install_node
  • ethereum
    • masa_finance
      • install_node
    • obol
      • Charon Distributed Validator Node
Powered by GitBook
On this page
  • Instalation
  • Install go
  • Download and build binaries
  • Usage
  • Configuration
  • Request tokens
  1. usefull utils

Faucet

Previousrelayer_ibc_go_v.2.0.0Nextblockclique

Last updated 1 year ago

A faucet that uses executable binaries only.

The main purpose of this faucet is to avoid using RPC or API endpoints, and use the CLI binary instead, more specifically, the commands:

{app}d tx bank send

and:

{app}d query txs

Since the faucet only uses the CLI binary, it is compatible with practically any blockchain built with cosmos-sdk even if different types of keys are used.

Instalation

Install go

ver="1.18.2"
cd $HOME && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export GOROOT=/usr/local/go" >> ~/.bash_profile && \
echo "export GOPATH=$HOME/go" >> ~/.bash_profile && \
echo "export GO111MODULE=on" >> ~/.bash_profile && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \
source ~/.bash_profile && \
go version

Download and build binaries

git clone https://github.com/glukosseth/faucet.git
cd faucet
make install

Usage

Configuration

You can configure the faucet either using command line flags or environment variables. Use faucet --help for more commands


faucet --cli-name seid --denoms usei  --keyring-backend test --keyring-password <wallet_password> --mnemonic "<mnemonic>" --credit-amount 100000 --max-credit 200000 --node tcp://localhost:26657

Request tokens

You can request tokens by sending a POST request to the faucet, with a key address in a JSON:

curl -X POST -d '{"address": "<your_sei_address>"}' http://<faucet_ip>:8000
cosmos-sdk