ethers.js/lib.esm/providers/provider-quicknode.d.ts

50 lines
1.8 KiB
TypeScript
Raw Normal View History

2022-12-06 06:19:14 +03:00
/**
2023-01-28 09:53:29 +03:00
* [[link-quicknode]] provides a third-party service for connecting to
* various blockchains over JSON-RPC.
2022-12-06 06:19:14 +03:00
*
2023-01-28 09:53:29 +03:00
* **Supported Networks**
*
* - Ethereum Mainnet (``mainnet``)
* - Goerli Testnet (``goerli``)
* - Arbitrum (``arbitrum``)
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Polygon (``matic``)
2023-02-23 14:31:09 +03:00
* - Polygon Mumbai Testnet (``matic-mumbai``)
2023-01-28 09:53:29 +03:00
*
* @_subsection: api/providers/thirdparty:QuickNode [providers-quicknode]
2022-12-06 06:19:14 +03:00
*/
import { FetchRequest } from "../utils/index.js";
import { Network } from "./network.js";
import { JsonRpcProvider } from "./provider-jsonrpc.js";
import type { AbstractProvider } from "./abstract-provider.js";
import type { CommunityResourcable } from "./community.js";
import type { Networkish } from "./network.js";
/**
2023-01-28 09:53:29 +03:00
* The **QuickNodeProvider** connects to the [[link-quicknode]]
* JSON-RPC end-points.
*
* By default, a highly-throttled API token 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-quicknode).
2022-12-06 06:19:14 +03:00
*/
export declare class QuickNodeProvider extends JsonRpcProvider implements CommunityResourcable {
2023-01-28 09:53:29 +03:00
/**
* The API token.
*/
2022-12-06 06:19:14 +03:00
readonly token: string;
2023-01-28 09:53:29 +03:00
/**
* Creates a new **QuickNodeProvider**.
*/
2022-12-06 06:19:14 +03:00
constructor(_network?: Networkish, token?: null | string);
_getProvider(chainId: number): AbstractProvider;
isCommunityResource(): boolean;
2023-01-28 09:53:29 +03:00
/**
* Returns a new request prepared for %%network%% and the
* %%token%%.
*/
2022-12-06 06:19:14 +03:00
static getRequest(network: Network, token?: null | string): FetchRequest;
}
//# sourceMappingURL=provider-quicknode.d.ts.map