Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 950 Bytes

_from_rpc_.md

File metadata and controls

29 lines (17 loc) · 950 Bytes

@ethereumjs/block"from-rpc"

Module: "from-rpc"

Index

Functions

Functions

blockFromRpc

blockFromRpc(blockParams: any, uncles: any[], options?: BlockOptions): Block‹›

Defined in from-rpc.ts:32

Creates a new block object from Ethereum JSON RPC.

Parameters:

Name Type Default Description
blockParams any - Ethereum JSON RPC of block (eth_getBlockByNumber)
uncles any[] [] Optional list of Ethereum JSON RPC of uncles (eth_getUncleByBlockHashAndIndex)
options? BlockOptions - -

Returns: Block‹›