create_fork_funded_wallet

Documentation for eth_defi.provider.anvil.create_fork_funded_wallet function.

create_fork_funded_wallet(web3, usdc_address, large_usdc_holder, usdc_amount=Decimal('10000'), eth_amount=Decimal('10'))

On Anvil forked mainnet, create a wallet with some USDC funds.

  • Make a new private key account on a forked mainnet

  • Top this up with ETH and USDC from a large USDC holder

Parameters
Return type

eth_defi.hot_wallet.HotWallet