Skip to content

cosmpy.aerial.faucet

Ledger faucet API interface.

FaucetApi Objects

class FaucetApi()

Faucet API.

__init__

def __init__(net_config: NetworkConfig)

Init faucet API.

Arguments:

  • net_config: Ledger network configuration.

Raises:

  • ValueError: Network config has no faucet url set

get_wealth

def get_wealth(address: Union[Address, str]) -> None

Get wealth from the faucet for the provided address.

Arguments:

  • address: the address.

Raises:

  • RuntimeError: Unable to create faucet claim
  • RuntimeError: Failed to check faucet claim status
  • RuntimeError: Failed to get wealth for address
  • ValueError: Faucet claim check timed out