rpc-client/dist/rpcNetwork.d.ts

27 lines
837 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;
2022-06-27 20:26:13 +00:00
removeRelay(pubkey: string): boolean;
clearRelays(): void;
2022-06-27 19:51:51 +00:00
query(query: string, chain: string, data?: object | any[], force?: boolean): RpcQuery;
}
//# sourceMappingURL=rpcNetwork.d.ts.map