UNPKG

863 BTypeScriptView Raw
1import { Network, Networkish } from "@ethersproject/networks";
2import { ConnectionInfo } from "@ethersproject/web";
3import { CommunityResourcable } from "./formatter";
4import { JsonRpcProvider, JsonRpcSigner } from "./json-rpc-provider";
5export declare class StaticJsonRpcProvider extends JsonRpcProvider {
6 detectNetwork(): Promise<Network>;
7}
8export declare abstract class UrlJsonRpcProvider extends StaticJsonRpcProvider implements CommunityResourcable {
9 readonly apiKey: any;
10 constructor(network?: Networkish, apiKey?: any);
11 _startPending(): void;
12 isCommunityResource(): boolean;
13 getSigner(address?: string): JsonRpcSigner;
14 listAccounts(): Promise<Array<string>>;
15 static getApiKey(apiKey: any): any;
16 static getUrl(network: Network, apiKey: any): string | ConnectionInfo;
17}
18//# sourceMappingURL=url-json-rpc-provider.d.ts.map
\No newline at end of file