ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromBytesArray

Function: createBlockFromBytesArray()

createBlockFromBytesArray(values, opts?): Block

Defined in: block/constructors.ts:109

Instantiate a block from RLP-encoded field values.

Parameters

values

BlockBytes

opts?

BlockOptions

Returns

Block

Throws

If more than five top-level RLP elements are present

Throws

If EIP-4895 is active but withdrawals are missing

Throws

If delegated header or transaction factory validation fails