Go to file
Prathamesh Musale bf6950fc5e Add support for token denom $Z (#2)
Part of https://www.notion.so/zenithd-milestone-4-1d6a6b22d4728043b7e4dbf70c50aa56

Reviewed-on: #2
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2025-06-24 07:24:41 +00:00
environments Update package name and cosmjs dependencies (#1) 2025-05-02 07:03:32 +00:00
src Add support for token denom $Z (#2) 2025-06-24 07:24:41 +00:00
.dockerignore Add support for token denom $Z (#2) 2025-06-24 07:24:41 +00:00
.eslintignore Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
.eslintrc.json Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
.gitignore Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
.npmrc Add support for token denom $Z (#2) 2025-06-24 07:24:41 +00:00
Dockerfile Add netcat installation in Dockerfile (#2) 2024-07-26 12:23:30 +00:00
package.json Add support for token denom $Z (#2) 2025-06-24 07:24:41 +00:00
README.md Update package name and cosmjs dependencies (#1) 2025-05-02 07:03:32 +00:00
tsconfig.json Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
yarn.lock Add support for token denom $Z (#2) 2025-06-24 07:24:41 +00:00

zenith-faucet

  • Install dependencies and build:

    yarn && yarn build
    
  • Set the private key of a funded faucet account as faucetKey in the config file

  • Run the faucet:

    yarn start
    
    # Expected output:
    # Config:
    # ...
    # Faucet server running on port <port>
    # Using DB directory '/path/to/faucet/data/db'
    
  • Example request:

    curl -X POST http://localhost:3000/faucet \
      -H "Content-Type: application/json" \
      -d '{"address": "zenith1jxtnf48ya9sh5tzmx5vhhagy02jl0lav6sdla0"}'
    
    # Expected output:
    # {"success":true,"txHash":"40405D3CCA8122482C36083762561908E2595A4B765B7457C3995525991D18CE"}