provider-quicknode.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * [[link-quicknode]] provides a third-party service for connecting to
  3. * various blockchains over JSON-RPC.
  4. *
  5. * **Supported Networks**
  6. *
  7. * - Ethereum Mainnet (``mainnet``)
  8. * - Goerli Testnet (``goerli``)
  9. * - Sepolia Testnet (``sepolia``)
  10. * - Holesky Testnet (``holesky``)
  11. * - Arbitrum (``arbitrum``)
  12. * - Arbitrum Goerli Testnet (``arbitrum-goerli``)
  13. * - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
  14. * - Base Mainnet (``base``);
  15. * - Base Goerli Testnet (``base-goerli``);
  16. * - Base Sepolia Testnet (``base-sepolia``);
  17. * - BNB Smart Chain Mainnet (``bnb``)
  18. * - BNB Smart Chain Testnet (``bnbt``)
  19. * - Optimism (``optimism``)
  20. * - Optimism Goerli Testnet (``optimism-goerli``)
  21. * - Optimism Sepolia Testnet (``optimism-sepolia``)
  22. * - Polygon (``matic``)
  23. * - Polygon Mumbai Testnet (``matic-mumbai``)
  24. *
  25. * @_subsection: api/providers/thirdparty:QuickNode [providers-quicknode]
  26. */
  27. import { FetchRequest } from "../utils/index.js";
  28. import { Network } from "./network.js";
  29. import { JsonRpcProvider } from "./provider-jsonrpc.js";
  30. import type { AbstractProvider } from "./abstract-provider.js";
  31. import type { CommunityResourcable } from "./community.js";
  32. import type { Networkish } from "./network.js";
  33. /**
  34. * The **QuickNodeProvider** connects to the [[link-quicknode]]
  35. * JSON-RPC end-points.
  36. *
  37. * By default, a highly-throttled API token is used, which is
  38. * appropriate for quick prototypes and simple scripts. To
  39. * gain access to an increased rate-limit, it is highly
  40. * recommended to [sign up here](link-quicknode).
  41. */
  42. export declare class QuickNodeProvider extends JsonRpcProvider implements CommunityResourcable {
  43. /**
  44. * The API token.
  45. */
  46. readonly token: string;
  47. /**
  48. * Creates a new **QuickNodeProvider**.
  49. */
  50. constructor(_network?: Networkish, token?: null | string);
  51. _getProvider(chainId: number): AbstractProvider;
  52. isCommunityResource(): boolean;
  53. /**
  54. * Returns a new request prepared for %%network%% and the
  55. * %%token%%.
  56. */
  57. static getRequest(network: Network, token?: null | string): FetchRequest;
  58. }
  59. //# sourceMappingURL=provider-quicknode.d.ts.map