ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromExecutionPayload

Function: createBlockFromExecutionPayload()

createBlockFromExecutionPayload(payload, opts?): Promise<Block>

Defined in: block/constructors.ts:298

Instantiate a block from an Engine API execution payload.

Parameters

payload

ExecutionPayload

opts?

BlockOptions

Returns

Promise<Block>

Throws

If any payload transaction fails RLP decode

Throws

If the recomputed block hash does not match payload.blockHash