Skip to content

MineParams

MineParams<TThrowOnFail>: BaseParams<TThrowOnFail> & object

Tevm params to mine one or more blocks.

Type declaration

blockCount?

readonly optional blockCount: number

Number of blocks to mine. Defaults to 1.

interval?

readonly optional interval: number

Interval between block timestamps. Defaults to 1.

Type Parameters

TThrowOnFail extends boolean = boolean

Example

const mineParams: import('@tevm/actions').MineParams = {
blockCount: 5,
}

Param

Number of blocks to mine. Defaults to 1.

Param

Interval between block timestamps in seconds. Defaults to 1.

Defined in

packages/actions/src/Mine/MineParams.ts:15