How to Create a Fork
Forks allow you to chain Simulations and test out complex scenarios with live on-chain data.
Let's start up a new Fork:
Choose the network you want to fork and name it:
You can choose the block from which you want to fork the chosen network, either latest or historical (read more about that here):
Regardless of the chosen block, we can now create a Simulation on our newly created Fork:
You can use either public or custom contracts here as well:
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!

A few important notes to be aware of when using the Forks feature:

When you are creating a Fork from the block number N, the Simulations you run on that Fork will run in block number N and not N + 1.
This means that your Fork, when created, has all the states up to and including block number N-1, and not N.
Each Simulation you do on your Fork going forwards will be placed in a separate block, regardless of using the Historical or the Pending block option.
Fork Parents are a feature that allows for greater control over Simulations you run on your Forks, and much easier repeated testing of specific (historical) scenarios on your forked networks. Read more about Fork Parents here.โ€‹
Last modified 5d ago
Copy link