UNPKG

@synonymdev/blocktank-client

Version:
15 lines (14 loc) 467 B
import { IHeaders } from '../types'; /** * Abstract class for shared logic between public and admin api clients */ declare class Client { private host; private additionalHeaders; constructor(); static getStateMessage(code: number): string; setNetwork(network: 'mainnet' | 'testnet' | 'regtest'): void; setHeaders(headers: IHeaders): void; call(path: string, method: 'GET' | 'POST', request?: any): Promise<any>; } export default Client;