Wallet Methods

Async methods for working with XRPL wallets.

exception xrpl.asyncio.wallet.XRPLFaucetException

Bases: xrpl.constants.XRPLException

Faucet generation exception.

async xrpl.asyncio.wallet.generate_faucet_wallet(client: xrpl.asyncio.clients.client.Client, wallet: Optional[xrpl.wallet.main.Wallet] = None, debug: bool = False) xrpl.wallet.main.Wallet

Generates a random wallet and funds it using the XRPL Testnet Faucet.

Parameters
  • client – the network client used to make network calls.

  • wallet – the wallet to fund. If omitted or None, a new wallet is created.

  • debug – Whether to print debug information as it creates the wallet.

Returns

A Wallet on the testnet that contains some amount of XRP.

Raises