2023-03-03 18:25:07 -07:00
|
|
|
/**
|
|
|
|
* [[link-quicknode]] provides a third-party service for connecting to
|
|
|
|
* various blockchains over JSON-RPC.
|
|
|
|
*
|
|
|
|
* **Supported Networks**
|
|
|
|
*
|
|
|
|
* - Ethereum Mainnet (``mainnet``)
|
|
|
|
* - Goerli Testnet (``goerli``)
|
2024-01-17 14:33:43 -05:00
|
|
|
* - Sepolia Testnet (``sepolia``)
|
2024-02-02 03:25:03 -05:00
|
|
|
* - Holesky Testnet (``holesky``)
|
2023-03-03 18:25:07 -07:00
|
|
|
* - Arbitrum (``arbitrum``)
|
|
|
|
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
2024-01-17 14:33:43 -05:00
|
|
|
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
|
|
|
|
* - Base Mainnet (``base``);
|
|
|
|
* - Base Goerli Testnet (``base-goerli``);
|
|
|
|
* - Base Sepolia Testnet (``base-sepolia``);
|
|
|
|
* - BNB Smart Chain Mainnet (``bnb``)
|
|
|
|
* - BNB Smart Chain Testnet (``bnbt``)
|
2023-03-03 18:25:07 -07:00
|
|
|
* - Optimism (``optimism``)
|
|
|
|
* - Optimism Goerli Testnet (``optimism-goerli``)
|
2024-01-17 14:33:43 -05:00
|
|
|
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
2023-03-03 18:25:07 -07:00
|
|
|
* - Polygon (``matic``)
|
|
|
|
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
|
|
|
*
|
|
|
|
* @_subsection: api/providers/thirdparty:QuickNode [providers-quicknode]
|
|
|
|
*/
|
|
|
|
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";
|
|
|
|
/**
|
|
|
|
* 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).
|
|
|
|
*/
|
|
|
|
export declare class QuickNodeProvider extends JsonRpcProvider implements CommunityResourcable {
|
|
|
|
/**
|
|
|
|
* The API token.
|
|
|
|
*/
|
|
|
|
readonly token: string;
|
|
|
|
/**
|
|
|
|
* Creates a new **QuickNodeProvider**.
|
|
|
|
*/
|
|
|
|
constructor(_network?: Networkish, token?: null | string);
|
|
|
|
_getProvider(chainId: number): AbstractProvider;
|
|
|
|
isCommunityResource(): boolean;
|
|
|
|
/**
|
|
|
|
* Returns a new request prepared for %%network%% and the
|
|
|
|
* %%token%%.
|
|
|
|
*/
|
|
|
|
static getRequest(network: Network, token?: null | string): FetchRequest;
|
|
|
|
}
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=provider-quicknode.d.ts.map
|