Skip to content

setBlockTimestampInterval

Similar to increaseTime, but sets a block timestamp interval. The timestamp of future blocks will be computed as lastBlock_timestamp + interval.

Usage

example.ts
import { testClient } from './client'
 
await testClient.setBlockTimestampInterval({ 
  interval: 5
})

Parameters

interval

  • Type: number
await testClient.setBlockTimestampInterval({
  interval: 1
})