@cosmjs/faucet server. Useful for testnet development.
FaucetClient
| Method | Parameters | Returns |
|---|---|---|
constructor | baseUrl: string | FaucetClient |
credit | address: string, denom: string | Promise<void> |
Usage
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.