Skip to content

MineHandler

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

Mines a block including all transactions in the mempool.

Parameters

params?: MineParams

The parameters for the mine action.

Returns

Promise<MineResult>

  • The result of the mine action.

Example

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

See

Defined in

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