@mr-zwets/bchn-api-wrapper
Version:
a Typescript wrapper for interacting with the Bitcoin Cash Node (BCHN) API
13 lines (12 loc) • 422 B
TypeScript
import type { RpcClientConfig, RpcRequest } from "./interfaces/interfaces.js";
export declare class BchnRpcClient {
private url;
private rpcUser;
private rpcPassword;
private maxRetries;
private retryDelayMs;
private logger;
private timeoutMs;
constructor(config: RpcClientConfig);
request<T extends RpcRequest>(endpoint: T['method'], ...params: T['params']): Promise<T['response']>;
}