rpc-client/dist/rpcNetwork.d.ts

25 lines
770 B
TypeScript
Raw Normal View History

2022-06-27 19:51:51 +00:00
import RpcQuery from "./rpcQuery.js";
export default class RpcNetwork {
private _dht;
private _majorityThreshold;
private _maxTtl;
private _queryTimeout;
private _relays;
private _ready;
private _force;
constructor(dht?: any);
get ready(): Promise<void>;
get relays(): string[];
get dht(): any;
get maxTtl(): number;
set maxTtl(value: number);
get queryTimeout(): number;
set queryTimeout(value: number);
get majorityThreshold(): number;
set majorityThreshold(value: number);
get force(): boolean;
set force(value: boolean);
addRelay(pubkey: string): void;
query(query: string, chain: string, data?: object | any[], force?: boolean): RpcQuery;
}
//# sourceMappingURL=rpcNetwork.d.ts.map