@ethereumjs/block
Version:
Provides Block serialization and help functions
12 lines • 556 B
TypeScript
import { Block } from './index.js';
import type { BlockOptions, JsonRpcBlock } from './index.js';
/**
* Creates a new block object from Ethereum JSON RPC.
*
* @param blockParams - Ethereum JSON RPC of block (eth_getBlockByNumber)
* @param uncles - Optional list of Ethereum JSON RPC of uncles (eth_getUncleByBlockHashAndIndex)
* @param options - An object describing the blockchain
* @deprecated
*/
export declare function blockFromRpc(blockParams: JsonRpcBlock, uncles?: any[], options?: BlockOptions): Block;
//# sourceMappingURL=from-rpc.d.ts.map