Skip to content

MineHandler

MineHandler: (params?) => Promise<MineResult>

Mines a block including all transactions in the mempool

Example

const res = tevmClient.mine({blocks: 2, interval: 2})
console.log(res.errors) // undefined

Parameters

params?: MineParams

Returns

Promise<MineResult>

Source

packages/actions/src/Mine/MineHandlerType.ts:10