@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
17 lines • 1.29 kB
TypeScript
import { routes } from "@lodestar/api";
import { ApplicationMethods } from "@lodestar/api/server";
import { ChainConfig } from "@lodestar/config";
import { ApiModules } from "../types.js";
/**
* Retrieve specification configuration used on this node. The configuration should include:
* - Constants for all hard forks known by the beacon node, for example the
* [phase 0](https://github.com/ethereum/consensus-specs/blob/v1.1.10/specs/phase0/beacon-chain.md#constants) and
* [altair](https://github.com/ethereum/consensus-specs/blob/v1.1.10/specs/altair/beacon-chain.md#constants) values
* - Presets for all hard forks supplied to the beacon node, for example the
* [phase 0](https://github.com/ethereum/consensus-specs/blob/v1.1.10/presets/mainnet/phase0.yaml) and
* [altair](https://github.com/ethereum/consensus.0-specs/blob/v1.1.10/presets/mainnet/altair.yaml) values
* - Configuration for the beacon node, for example the [mainnet](https://github.com/ethereum/consensus-specs/blob/v1.1.10/configs/mainnet.yaml) values
*/
export declare function renderJsonSpec(config: ChainConfig): routes.config.Spec;
export declare function getConfigApi({ config }: Pick<ApiModules, "config">): ApplicationMethods<routes.config.Endpoints>;
//# sourceMappingURL=index.d.ts.map