ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromRPC

Function: createBlockFromRPC()

createBlockFromRPC(blockParams, uncles, options?): Block

Defined in: block/constructors.ts:235

Creates a new block object from Ethereum JSON RPC.

Parameters

blockParams

JSONRPCBlock

Ethereum JSON RPC of block (eth_getBlockByNumber)

uncles

any[] = []

Optional list of Ethereum JSON RPC of uncles (eth_getUncleByBlockHashAndIndex)

options?

BlockOptions

Returns

Block