@lodestar/api
Version:
A Typescript REST client for the Ethereum Consensus API
9 lines • 510 B
TypeScript
import type { FastifyInstance } from "fastify";
import { ChainForkConfig } from "@lodestar/config";
import { ApplicationMethods } from "../../utils/server/index.js";
import { Endpoints } from "../routes/index.js";
export type BeaconApiMethods = {
[K in keyof Endpoints]: ApplicationMethods<Endpoints[K]>;
};
export declare function registerRoutes(server: FastifyInstance, config: ChainForkConfig, methods: BeaconApiMethods, enabledNamespaces: (keyof Endpoints)[]): void;
//# sourceMappingURL=index.d.ts.map