ethers.js/packages/providers/lib/alchemy-provider.d.ts
2021-01-19 05:22:54 -05:00

17 lines
868 B
TypeScript

import { Network, Networkish } from "@ethersproject/networks";
import { ConnectionInfo } from "@ethersproject/web";
import { CommunityResourcable } from "./formatter";
import { WebSocketProvider } from "./websocket-provider";
import { UrlJsonRpcProvider } from "./url-json-rpc-provider";
export declare class AlchemyWebSocketProvider extends WebSocketProvider implements CommunityResourcable {
readonly apiKey: string;
constructor(network?: Networkish, apiKey?: any);
isCommunityResource(): boolean;
}
export declare class AlchemyProvider extends UrlJsonRpcProvider {
static getWebSocketProvider(network?: Networkish, apiKey?: any): AlchemyWebSocketProvider;
static getApiKey(apiKey: any): any;
static getUrl(network: Network, apiKey: string): ConnectionInfo;
isCommunityResource(): boolean;
}
//# sourceMappingURL=alchemy-provider.d.ts.map