Skip to content

setIntervalMining

Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.

Usage

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

Parameters

interval

  • Type: number

The mining interval (in seconds). Setting the interval to 0 will disable automatic mining.

await testClient.setIntervalMining({
  interval: 5
})