ethers.js/packages/providers/lib.esm/alchemy-provider.d.ts
2021-06-26 01:55:19 -04:00

18 lines
924 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;
perform(method: string, params: any): Promise<any>;
isCommunityResource(): boolean;
}
//# sourceMappingURL=alchemy-provider.d.ts.map