@ethereumjs/block › "from-rpc"
▸ 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‹›