ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockHeaderFromBytesArray

Function: createBlockHeaderFromBytesArray()

createBlockHeaderFromBytesArray(values, opts?): BlockHeader

Defined in: header/constructors.ts:26

Instantiate a block header from RLP-encoded field values.

Parameters

values

BlockHeaderBytes

opts?

BlockOptions = {}

Returns

BlockHeader

Throws

If the values array length is out of range (15–23 fields)

Throws

If required EIP fields are missing for the active hardfork

Throws

If header field validation fails in the BlockHeader constructor