@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
13 lines • 776 B
TypeScript
import { routes } from "@lodestar/api";
import { ChainForkConfig } from "@lodestar/config";
import { IForkChoice } from "@lodestar/fork-choice";
import { RootHex, SignedBeaconBlock, Slot } from "@lodestar/types";
import { IBeaconChain } from "../../../../chain/interface.js";
export declare function toBeaconHeaderResponse(config: ChainForkConfig, block: SignedBeaconBlock, canonical?: boolean): routes.beacon.BlockHeaderResponse;
export declare function resolveBlockId(forkChoice: IForkChoice, blockId: routes.beacon.BlockId): RootHex | Slot;
export declare function getBlockResponse(chain: IBeaconChain, blockId: routes.beacon.BlockId): Promise<{
block: SignedBeaconBlock;
executionOptimistic: boolean;
finalized: boolean;
}>;
//# sourceMappingURL=utils.d.ts.map