UNPKG

@lodestar/api

Version:

A Typescript REST client for the Ethereum Consensus API

13 lines 564 B
import { HttpClient } from "../utils/client/index.js"; import * as keymanager from "./client.js"; // NOTE: Don't export server here so it's not bundled to all consumers export { ImportStatus, DeletionStatus, ImportRemoteKeyStatus, DeleteRemoteKeyStatus } from "./routes.js"; /** * REST HTTP client for keymanager routes */ export function getClient(opts, modules) { const { config } = modules; const httpClient = modules.httpClient ?? new HttpClient(opts, modules); return keymanager.getClient(config, httpClient); } //# sourceMappingURL=index.js.map