Go to file
2024-07-24 18:33:50 +05:30
environments Use a configurable period limit 2024-07-24 18:33:50 +05:30
src Use a configurable period limit 2024-07-24 18:33:50 +05:30
.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
Dockerfile Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
package.json Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
README.md Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
tsconfig.json Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00
yarn.lock Implement a cosmos-sdk chain faucet API (#1) 2024-07-18 05:50:31 +00:00

laconic-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": "laconic1cndafgkspae7es7g2j52hmxxukwsy84v6h07w5"}'
    
    # Expected output:
    # {"success":true,"txHash":"40405D3CCA8122482C36083762561908E2595A4B765B7457C3995525991D18CE"}