How to Create a Fork
A Fork is an isolated environment that reflects the most recent data and state of the Mainnet or any other of the 20+ networks Tenderly supports. It allows you to "duplicate" the preferred network and use it for the purposes of your project, without submitting changes to the actual network. Forks expose a JSON-RPC URL, so they behave as any node would.
Forks also enable you to chain multiple Tenderly Simulations, so one impacts the subsequent ones. This way, you can test complex transaction scenarios while using live on-chain data. You can even examine how certain transactions would have transpired at a specific point in the past by choosing a historical block number.
There are several ways to work with forks:
- Create forks and perform simulations using the Dashboard (covered in this guide)
Let's start up a new Fork:
Choose the network you want to fork and name it:
Regardless of the chosen block, we can now create a Simulation on our newly created Fork:
All that is left to do is fill out the fork simulation parameters, click Simulate Transaction and that's it - you can now run as many simulations as you want on your fork!
An unrelated but still useful note: