2023-03-03 18:25:07 -07:00
|
|
|
/**
|
2024-01-15 23:07:48 -05:00
|
|
|
* [[link-alchemy]] provides a third-party service for connecting to
|
|
|
|
* various blockchains over JSON-RPC.
|
|
|
|
*
|
|
|
|
* **Supported Networks**
|
|
|
|
*
|
|
|
|
* - Ethereum Mainnet (``mainnet``)
|
|
|
|
* - Goerli Testnet (``goerli``)
|
|
|
|
* - Sepolia Testnet (``sepolia``)
|
|
|
|
* - Arbitrum (``arbitrum``)
|
|
|
|
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
|
|
|
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
|
|
|
|
* - Base (``base``)
|
|
|
|
* - Base Goerlia Testnet (``base-goerli``)
|
|
|
|
* - Base Sepolia Testnet (``base-sepolia``)
|
|
|
|
* - Optimism (``optimism``)
|
|
|
|
* - Optimism Goerli Testnet (``optimism-goerli``)
|
|
|
|
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
|
|
|
* - Polygon (``matic``)
|
|
|
|
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
2023-03-03 18:25:07 -07:00
|
|
|
*
|
|
|
|
* @_subsection: api/providers/thirdparty:Alchemy [providers-alchemy]
|
|
|
|
*/
|
|
|
|
import { FetchRequest } from "../utils/index.js";
|
|
|
|
import { Network } from "./network.js";
|
|
|
|
import { JsonRpcProvider } from "./provider-jsonrpc.js";
|
|
|
|
import type { AbstractProvider, PerformActionRequest } from "./abstract-provider.js";
|
|
|
|
import type { CommunityResourcable } from "./community.js";
|
|
|
|
import type { Networkish } from "./network.js";
|
|
|
|
/**
|
|
|
|
* The **AlchemyProvider** connects to the [[link-alchemy]]
|
|
|
|
* JSON-RPC end-points.
|
|
|
|
*
|
|
|
|
* By default, a highly-throttled API key is used, which is
|
|
|
|
* appropriate for quick prototypes and simple scripts. To
|
|
|
|
* gain access to an increased rate-limit, it is highly
|
|
|
|
* recommended to [sign up here](link-alchemy-signup).
|
|
|
|
*
|
|
|
|
* @_docloc: api/providers/thirdparty
|
|
|
|
*/
|
|
|
|
export declare class AlchemyProvider extends JsonRpcProvider implements CommunityResourcable {
|
|
|
|
readonly apiKey: string;
|
|
|
|
constructor(_network?: Networkish, apiKey?: null | string);
|
|
|
|
_getProvider(chainId: number): AbstractProvider;
|
|
|
|
_perform(req: PerformActionRequest): Promise<any>;
|
|
|
|
isCommunityResource(): boolean;
|
|
|
|
static getRequest(network: Network, apiKey?: string): FetchRequest;
|
|
|
|
}
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=provider-alchemy.d.ts.map
|