Skip to main content
Follow this guide to learn how to spin up a Virtual Environment and start interacting with it. Watch on Loom →
1
Configure your Virtual Environment
2
From the Dashboard, go to Virtual Environments and click Create Virtual Environment. Fill in the settings below:
3
Parent network and name: Choose which network you want to fork from the 102 supported networks and give it a unique name (e.g., Virtual Mainnet).
4
Chain ID: Specify a custom value such as 73571 or use the parent network’s original chain ID. It’s recommended to set a unique chain ID to prevent transaction replay attacks, and avoid issues when adding the Virtual Environment to wallets.
5
Public Explorer: Leave disabled or enable to allow public transaction viewing. If enabled, set the contract verification visibility option to control whether or not smart contracts’ code is visible publicly.
6
State sync: Activate to keep your Virtual Environment updated in real-time with the parent network. Learn more about how state sync works.
7
Click Create.
8
Add your Virtual Environment to Metamask
9
Access your Virtual Environment and click Add to Wallet to add the Virtual Environment as a chain in Metamask. Follow Metamask’s instructions to change the network. Once confirmed, you can send and receive transactions on your Virtual Environment through Metamask.
10
Follow this tutorial for more guidance.
11
Fund accounts
12
Every Virtual Environment has an unlimited faucet that allows you to top up or set a new balance for any account on the Virtual Environment instantly.
13
From the Dashboard
14
  • Navigate to Faucet
  • Input your address (0xBd8DaA414Fda8a8A129F7035e7496759C5aF8570) and the amount you wish to add (e.g., 1000) in ETH (not wei).
  • Click Fund
  • 15
    Using RPC
    16
    Copy the Virtual Environment RPC link and call the tenderly_setBalance method to set a new balance specified in wei in hexadecimal form.
    17
    curl $TENDERLY_VIRTUAL_TESTNET_RPC \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
        "jsonrpc": "2.0",
        "method": "tenderly_setBalance",
        "params": [["0xE58b9ee93700A616b50509C8292977FA7a0f8ce1"], "0xDE0B6B3A7640000"],
        "id": "1234"
    }'
    

    Next steps