Skip to content

sim:set-balance

Set the ETH balance of an account in a fork simulation.

sim:set-balance <address> <amount>
Name Type Description
address address Contract or account address
amount number New balance in wei
# Fund the connected wallet with 100 ETH
sim:fork --using anvil (
sim:set-balance @me 100e18
)
  • Can only be used inside a sim:fork block
  • The amount is in wei (use e18 for ETH)