ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / createBlockFromRPC

Function: createBlockFromRPC()

createBlockFromRPC(blockParams, uncles?, options?): Block

Defined in: block/constructors.ts:207

Instantiate a block from JSON-RPC block and uncle responses.

Parameters

blockParams

JSONRPCBlock

eth_getBlockByNumber / eth_getBlockByHash response

uncles?

any[] = []

Optional uncle headers from eth_getUncleByBlockHashAndIndex

options?

BlockOptions

Returns

Block