Ledger faucet API interface
Bookmark

cosmpy.aerial.faucet

Ledger faucet API Interface.

FaucetAPI Objects

Faucet API

init

def __init__ (net_config: NetworkConfig)

Init faucet API.

Arguments:

  • net_config: Ledger network configration.

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.

Was this page helpful?

Bookmark