setAutomine
Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
Import
ts
import { setAutomine } from 'viem/test'
Usage
ts
import { setAutomine } from 'viem/test'
import { testClient } from '.'
await setAutomine(testClient, true)
Parameters
enabled
- Type:
boolean
ts
await setAutomine(testClient, false)