Before you begin
You need:- A Tenderly account with multichain capabilities enabled. If you do not see the option to add multiple networks during Virtual Environment creation, contact us.
- A wallet private key you are willing to use in a test environment. Set it as
PRIVATE_KEYin your shell. - Foundry or Hardhat installed locally.
Run the tutorial
In the Tenderly Dashboard, open Virtual Environments and start a new one. Ethereum mainnet is preselected by default. Add Arbitrum, Optimism, and Base from the network picker. Production chains appear first in the list, testnets at the bottom.
Save the Virtual Environment. Take note of the slug Tenderly assigns it. The slug is part of every RPC URL you will use from here on.
Open the Virtual Environment’s settings and toggle Bridging to On. Once enabled, the Bridge Module watches for cross-chain events on every network in the Virtual Environment and relays them to the destination chain automatically. See Bridges for the protocols and networks it covers.
Copy the RPC URLs from the Virtual Environment detail page and add them to your project configuration.
Foundry
foundry.toml
--verifier-url to the same RPC. You will get a verified contract in the dashboard the moment the deploy completes. Hardhat
hardhat.config.ts
Open the Unlimited Faucet for your Virtual Environment and top up the address you will deploy from. Do this on each network, since balances are kept per network. Native currency is enough for the deploy itself. If your contracts move tokens, top those up too.
Once the contracts are deployed on each network, send a cross-chain transaction the way you normally would (for example a LayerZero
send call). With the Bridge Module on, the destination-side delivery is posted immediately. Open the Virtual Environment dashboard and you should see both the source and destination transactions on the unified timeline.Use the Bridges Source/Destination filter to confirm the round-trip explicitly.
What to try next
Now that the tutorial works, here is how to apply the same setup to real workflows:Automate deployments in CI
Deploy to every network on every push, in parallel, using GitHub Actions. The CI/CD guides show the matrix workflow and the secrets you need.
Stage your frontend
Point your dApp at the Virtual Environment RPCs and give your team and reviewers an environment that exercises the full multichain flow.
Create Virtual Environments via API
The
multivnets endpoint creates a Multichain Virtual Environment in one call. Useful for per-PR provisioning.Test bridge failures
Manual bridge controls let you stage gas starvation, duplicate deliveries, modified payloads, and other failure modes deterministically.