rpc-client/dist/rpcNetwork.d.ts

30 lines
934 B
TypeScript
Raw Normal View History

2022-06-27 19:51:51 +00:00
import RpcQuery from "./rpcQuery.js";
export default class RpcNetwork {
2022-07-23 15:43:05 +00:00
constructor(dht?: any);
2022-06-27 19:51:51 +00:00
private _dht;
2022-07-23 15:43:05 +00:00
get dht(): any;
2022-06-27 19:51:51 +00:00
private _majorityThreshold;
2022-07-23 15:43:05 +00:00
get majorityThreshold(): number;
set majorityThreshold(value: number);
2022-06-27 19:51:51 +00:00
private _maxTtl;
get maxTtl(): number;
set maxTtl(value: number);
2022-07-23 15:43:05 +00:00
private _queryTimeout;
2022-06-27 19:51:51 +00:00
get queryTimeout(): number;
set queryTimeout(value: number);
2022-07-23 15:43:05 +00:00
private _relayTimeout;
get relayTimeout(): number;
set relayTimeout(value: number);
private _relays;
get relays(): string[];
2022-07-27 01:25:47 +00:00
private _ready?;
2022-07-23 15:43:05 +00:00
get ready(): Promise<void>;
private _force;
2022-06-27 19:51:51 +00:00
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