ethers.js/packages/providers/lib/infura-provider.d.ts

21 lines
997 B
TypeScript
Raw Permalink Normal View History

2020-05-03 17:53:58 -04:00
import { Network, Networkish } from "@ethersproject/networks";
2019-11-20 18:57:38 +09:00
import { ConnectionInfo } from "@ethersproject/web";
2020-05-03 17:53:58 -04:00
import { WebSocketProvider } from "./websocket-provider";
2020-10-07 20:10:50 -04:00
import { CommunityResourcable } from "./formatter";
2019-05-14 18:48:48 -04:00
import { UrlJsonRpcProvider } from "./url-json-rpc-provider";
2020-10-07 20:10:50 -04:00
export declare class InfuraWebSocketProvider extends WebSocketProvider implements CommunityResourcable {
readonly apiKey: string;
readonly projectId: string;
readonly projectSecret: string;
constructor(network?: Networkish, apiKey?: any);
isCommunityResource(): boolean;
}
2019-05-14 18:48:48 -04:00
export declare class InfuraProvider extends UrlJsonRpcProvider {
readonly projectId: string;
2019-11-20 18:57:38 +09:00
readonly projectSecret: string;
2020-10-07 20:10:50 -04:00
static getWebSocketProvider(network?: Networkish, apiKey?: any): InfuraWebSocketProvider;
2019-11-20 18:57:38 +09:00
static getApiKey(apiKey: any): any;
2020-07-14 02:33:30 -04:00
static getUrl(network: Network, apiKey: any): ConnectionInfo;
2020-10-07 20:10:50 -04:00
isCommunityResource(): boolean;
2019-05-14 18:48:48 -04:00
}
//# sourceMappingURL=infura-provider.d.ts.map