@lodestar/api
Version:
A Typescript REST client for the Ethereum Consensus API
11 lines • 383 B
JavaScript
import { HttpClient } from "../utils/client/httpClient.js";
import * as builder from "./client.js";
/**
* REST HTTP client for builder routes
*/
export function getClient(opts, modules) {
const { config } = modules;
const httpClient = modules.httpClient ?? new HttpClient(opts, modules);
return builder.getClient(config, httpClient);
}
//# sourceMappingURL=index.js.map