UNPKG

@azpool/chia-client

Version:

TypeScript client for Chia node peer RPC interface

13 lines (12 loc) 567 B
import { ChiaOptions, RpcClient } from "./RpcClient"; import { CertPath } from "./types/CertPath"; import { ConnectionResponse } from "./types/FullNode/RpcResponse"; import { RpcResponse } from "./types/RpcResponse"; declare class SharedCalls extends RpcClient { constructor(options?: Partial<ChiaOptions> & CertPath); getConnections(): Promise<ConnectionResponse>; openConnection(host: string, port: number): Promise<RpcResponse>; closeConnection(nodeId: string): Promise<RpcResponse>; stopNode(): Promise<RpcResponse>; } export { SharedCalls };