Skip to main content
Simple HTTP client for requesting tokens from a @cosmjs/faucet server. Useful for testnet development.

FaucetClient

Usage

The credit method sends a POST to {baseUrl}/credit. It will throw on network errors (e.g. unreachable host) but does not inspect the HTTP response status code for faucet-level errors such as cooldowns or insufficient funds.