@ethereumjs/block
Version:
Provides Block serialization and help functions
10 lines • 460 B
TypeScript
import { BlockHeader } from './header.js';
import type { BlockOptions, JsonRpcBlock } from './types.js';
/**
* Creates a new block header object from Ethereum JSON RPC.
*
* @param blockParams - Ethereum JSON RPC of block (eth_getBlockByNumber)
* @param options - An object describing the blockchain
*/
export declare function blockHeaderFromRpc(blockParams: JsonRpcBlock, options?: BlockOptions): BlockHeader;
//# sourceMappingURL=header-from-rpc.d.ts.map