2020-07-05 07:01:57 +03:00
|
|
|
import { Network, Networkish } from "@ethersproject/networks";
|
2020-07-14 09:33:30 +03:00
|
|
|
import { ConnectionInfo } from "@ethersproject/web";
|
2020-10-08 03:10:50 +03:00
|
|
|
import { CommunityResourcable } from "./formatter";
|
2020-07-05 07:01:57 +03:00
|
|
|
import { WebSocketProvider } from "./websocket-provider";
|
2019-05-15 01:48:48 +03:00
|
|
|
import { UrlJsonRpcProvider } from "./url-json-rpc-provider";
|
2020-10-08 03:10:50 +03:00
|
|
|
export declare class AlchemyWebSocketProvider extends WebSocketProvider implements CommunityResourcable {
|
|
|
|
readonly apiKey: string;
|
|
|
|
constructor(network?: Networkish, apiKey?: any);
|
|
|
|
isCommunityResource(): boolean;
|
|
|
|
}
|
2019-05-15 01:48:48 +03:00
|
|
|
export declare class AlchemyProvider extends UrlJsonRpcProvider {
|
2020-10-08 03:10:50 +03:00
|
|
|
static getWebSocketProvider(network?: Networkish, apiKey?: any): AlchemyWebSocketProvider;
|
2019-11-20 12:57:38 +03:00
|
|
|
static getApiKey(apiKey: any): any;
|
2020-07-14 09:33:30 +03:00
|
|
|
static getUrl(network: Network, apiKey: string): ConnectionInfo;
|
2020-10-08 03:10:50 +03:00
|
|
|
isCommunityResource(): boolean;
|
2019-05-15 01:48:48 +03:00
|
|
|
}
|