2019-05-14 18:48:48 -04:00
|
|
|
import { Network, Networkish } from "@ethersproject/networks";
|
2019-11-20 18:57:38 +09:00
|
|
|
import { ConnectionInfo } from "@ethersproject/web";
|
2019-05-14 18:48:48 -04:00
|
|
|
import { JsonRpcProvider, JsonRpcSigner } from "./json-rpc-provider";
|
2020-06-29 00:54:30 -04:00
|
|
|
export declare class StaticJsonRpcProvider extends JsonRpcProvider {
|
|
|
|
detectNetwork(): Promise<Network>;
|
|
|
|
}
|
|
|
|
export declare abstract class UrlJsonRpcProvider extends StaticJsonRpcProvider {
|
2020-01-20 19:43:50 -05:00
|
|
|
readonly apiKey: any;
|
2019-11-20 18:57:38 +09:00
|
|
|
constructor(network?: Networkish, apiKey?: any);
|
2019-05-14 18:48:48 -04:00
|
|
|
_startPending(): void;
|
|
|
|
getSigner(address?: string): JsonRpcSigner;
|
|
|
|
listAccounts(): Promise<Array<string>>;
|
2019-11-20 18:57:38 +09:00
|
|
|
static getApiKey(apiKey: any): any;
|
|
|
|
static getUrl(network: Network, apiKey: any): string | ConnectionInfo;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|