UNPKG

verusd-web

Version:

A Verus Blockchain library that enables a bi-directional communication with the Verus and other Verus PBaas chains.

17 lines (16 loc) 515 B
export interface RpcResult { result: any; error: any; id: string; } export declare class RpcService { private static readonly code; private static url; private static apiToken; private static maxRetry; static init(url: string, apiToken?: string, maxRetry?: number): void; static sendChainRequest(method: string, params: Object): Promise<RpcResult>; private static setProtocol; private static sendRequest; static processStreamResponse(stream: any): Promise<string>; }