🤔 Got questions? Schedule an office hours session.
Forks
How to Advance/Mine the Block

How to Advance/Mine the Block

Migrate to Virtual TestNets

Virtual TestNets are publicly available!
For new projects, we recommend starting with TestNets.
For automatic migration of Forks to 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)