Skip to content

ping-pub/faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faucet

General Faucet for Cosmos SDK testnet.

preview

Installation

Note: Node

  • clone code:
git clone https://github.com/ping-pub/faucet.git
  • setup configs, you have to change everything you need in ./config.json
{
   "port": 80,
   "db": {
       "path": "~/.faucet.db"
   }, 
   "blockchain": {
       "rpc_endpoint": "https://rpc.sentry-02.theta-testnet.polypore.xyz"
   },
   "sender": {
       "mnemonic": "surround miss nominee dream gap cross assault thank captain prosper drop duty group candy wealth weather scale put",
       "option": {
           "hdPaths": ["m/44'/118'/0'/0/0"],
           "prefix": "cosmos"
       }
   },
   "tx": {
       "amount": {
           "denom": "uatom",
           "amount": "10000"
         },
       "fee": {
           "amount": [
               {
                 "amount": "1000",
                 "denom":  "uatom"
               }
           ],
           "gas": "200000"
       },
       "frequency_in_24h": "1"
   },
   "client": {
       "testnet": "Ping Testnet",
       "logo": "https://ping.pub/logo.svg",
       "deployer": "heelo"
   }
   
}
  • Run faucet
node faucet.js

Test

visit http://localhost:80

80 is default, you edit it in the config.json

Packages

No packages published