UNPKG

drand-client

Version:

A client to the drand randomness beacon network.

20 lines (19 loc) 608 B
import { Chain, ChainInfo, ChainOptions } from './index'; import { HttpOptions } from './util'; declare class HttpChain implements Chain { baseUrl: string; private options; private httpOptions; constructor(baseUrl: string, options?: ChainOptions, httpOptions?: HttpOptions); info(): Promise<ChainInfo>; } declare class HttpCachingChain implements Chain { baseUrl: string; private options; private chain; private cachedInfo?; constructor(baseUrl: string, options?: ChainOptions); info(): Promise<ChainInfo>; } export { HttpChain }; export default HttpCachingChain;