UNPKG

997 BTypeScriptView Raw
1import { Network, Networkish } from "@ethersproject/networks";
2import { ConnectionInfo } from "@ethersproject/web";
3import { WebSocketProvider } from "./websocket-provider";
4import { CommunityResourcable } from "./formatter";
5import { UrlJsonRpcProvider } from "./url-json-rpc-provider";
6export declare class InfuraWebSocketProvider extends WebSocketProvider implements CommunityResourcable {
7 readonly apiKey: string;
8 readonly projectId: string;
9 readonly projectSecret: string;
10 constructor(network?: Networkish, apiKey?: any);
11 isCommunityResource(): boolean;
12}
13export declare class InfuraProvider extends UrlJsonRpcProvider {
14 readonly projectId: string;
15 readonly projectSecret: string;
16 static getWebSocketProvider(network?: Networkish, apiKey?: any): InfuraWebSocketProvider;
17 static getApiKey(apiKey: any): any;
18 static getUrl(network: Network, apiKey: any): ConnectionInfo;
19 isCommunityResource(): boolean;
20}
21//# sourceMappingURL=infura-provider.d.ts.map
\No newline at end of file