How to Advance/Mine the Block
Forks will be deprecated on March 31, 2025.
Please migrate to Tenderly Virtual TestNets or contact our support for assistance with automatic migration.
New projects on Tenderly should use Virtual TestNets.
New projects on Tenderly should use Virtual TestNets.
In general, every simulation on top of a Tenderly Fork increases the block number. Here’s a quick example showing you how to increase it by an arbitrary value.
We’re going to use a custom Tenderly RPC call – evm_increaseBlocks:
example.tsx
...
const params = [
ethers.utils.hexValue(10) // hex encoded number of blocks to increase
];
await provider.send('evm_increaseBlocks', params)