mine
Mine a specified number of blocks.
Usage
example.ts
import { testClient } from './client'
await testClient.mine({
blocks: 1,
})
Parameters
blocks
- Type:
number
Number of blocks to mine.
await testClient.mine({
blocks: 1,
})
interval (optional)
- Type:
number
- Default:
1
Interval between each block in seconds.
await testClient.mine({
blocks: 10,
interval: 4
})