UNPKG

@sova-labs/sdk

Version:
13 lines (12 loc) 688 B
import { SearcherService } from "./services"; import { GenerateAuthTokensResponse } from "./proto/auth/GenerateAuthTokensResponse"; export declare class SovaClient { protected url: string; protected secureConnection: boolean; protected authToken?: GenerateAuthTokensResponse | undefined; constructor(url: string, secureConnection: boolean, authToken?: GenerateAuthTokensResponse | undefined); authenticate(privateKey: Buffer): Promise<void>; getSearcher(): SearcherService; } export declare function getTestnetClient(authToken?: GenerateAuthTokensResponse): SovaClient; export declare function getMainnetClient(authToken?: GenerateAuthTokensResponse): SovaClient;