ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromRLP

Function: createBlockFromRLP()

createBlockFromRLP(serialized, opts?): Block

Defined in: block/constructors.ts:183

Instantiate a block from RLP-serialized bytes.

Parameters

serialized

Uint8Array

opts?

BlockOptions

Returns

Block

Throws

If the serialized length exceeds EIP-7934 maxRlpBlockSize when active

Throws

If RLP decode result is not an array

Throws

If decoded values fail createBlockFromBytesArray checks