2020-07-05 00:01:57 -04:00
|
|
|
import { Network, Networkish } from "@ethersproject/networks";
|
2020-07-14 02:33:30 -04:00
|
|
|
import { ConnectionInfo } from "@ethersproject/web";
|
2020-10-07 20:10:50 -04:00
|
|
|
import { CommunityResourcable } from "./formatter";
|
2020-07-05 00:01:57 -04:00
|
|
|
import { WebSocketProvider } from "./websocket-provider";
|
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 AlchemyWebSocketProvider extends WebSocketProvider implements CommunityResourcable {
|
|
|
|
readonly apiKey: string;
|
|
|
|
constructor(network?: Networkish, apiKey?: any);
|
|
|
|
isCommunityResource(): boolean;
|
|
|
|
}
|
2019-05-14 18:48:48 -04:00
|
|
|
export declare class AlchemyProvider extends UrlJsonRpcProvider {
|
2020-10-07 20:10:50 -04:00
|
|
|
static getWebSocketProvider(network?: Networkish, apiKey?: any): AlchemyWebSocketProvider;
|
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: string): ConnectionInfo;
|
2020-10-07 20:10:50 -04:00
|
|
|
isCommunityResource(): boolean;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
2021-01-19 05:22:54 -05:00
|
|
|
//# sourceMappingURL=alchemy-provider.d.ts.map
|