There are many awesome community services that provide Ethereum nodes both for developers just starting out and for large-scale communities.
Displays a warning in tht console when the community resource is being used too heavily by the app, recommending the developer acquire their own credentials instead of using the community credentials.
The notification will only occur once per service.
The AlchemyProvider connects to the 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.
Ankr provides a third-party service for connecting to various blockchains over JSON-RPC.
Supported Networks
- Ethereum Mainnet (mainnet)
- Goerli Testnet (goerli)
- Polygon (matic)
- Arbitrum (arbitrum)
The AnkrProvider connects to the Ankr 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.
The API key for the Ankr connection.
Create a new AnkrProvider.
By default connecting to mainnet with a highly throttled API key.
Returns a prepared request for connecting to network with apiKey.
About Cloudflare...
There are many awesome community services that provide Ethereum nodes both for developers just starting out and for large-scale communities.
Returns true of the instance is connected using the community credentials.
Etherscan provides a third-party service for connecting to various blockchains over a combination of JSON-RPC and custom API endpoints.
Supported Networks
- Ethereum Mainnet (mainnet)
- Goerli Testnet (goerli)
- Sepolia Testnet (sepolia)
- Arbitrum (arbitrum)
- Arbitrum Goerli Testnet (arbitrum-goerli)
- Optimism (optimism)
- Optimism Goerli Testnet (optimism-goerli)
- Polygon (matic)
- Polygon Mumbai Testnet (maticmum)
When subscribing to the "debug" event on an Etherscan-based provider, the events receive a DebugEventEtherscanProvider payload.
A Network can include an EtherscanPlugin to provide a custom base URL.
The Etherscan API base URL.
Creates a new EtherscanProvider which will use baseUrl.
The EtherscanBaseProvider is the super-class of EtherscanProvider, which should generally be used instead.
Since the EtherscanProvider includes additional code for Contract access, in rare cases that contracts are not used, this class can reduce code size.
The API key or null if using the community provided bandwidth.
Creates a new EtherscanBaseProvider.
Throws the normalized Etherscan error.
Returns transaction normalized for the Etherscan API.
Resolves to the result of calling module with params.
If post, the request is made as a POST request.
Returns the base URL.
If an EtherscanPlugin is configured on the EtherscanBaseProvider_network, returns the plugin's baseUrl.
Resolves to a [Contract]] for address, using the Etherscan API to retreive the Contract ABI.
Resolves to the current price of ether.
This returns 0 on any network other than mainnet.
Returns the parameters for using POST requests.
Returns the URL for using POST requests.
Returns the URL for the module and params.
INFURA 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)
- Optimism (optimism)
- Optimism Goerli Testnet (optimism-goerli)
- Polygon (matic)
- Polygon Mumbai Testnet (maticmum)
The InfuraProvider connects to the INFURA 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.
The Project ID for the INFURA connection.
The Project Secret.
If null, no authenticated requests are made. This should not be used outside of private contexts.
Creates a new InfuraProvider.
Returns a prepared request for connecting to network with projectId and projectSecret.
Creates a new InfuraWebSocketProvider.
The InfuraWebSocketProvider connects to the INFURA WebSocket 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.
The Project ID for the INFURA connection.
The Project Secret.
If null, no authenticated requests are made. This should not be used outside of private contexts.
Creates a new InfuraWebSocketProvider.
Pocket Network provides a third-party service for connecting to various blockchains over JSON-RPC.
Supported Networks
- Ethereum Mainnet (mainnet)
- Goerli Testnet (goerli)
- Polygon (matic)
- Arbitrum (arbitrum)
The PocketProvider connects to the Pocket Network 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.
The Application ID for the Pocket connection.
The Application Secret for making authenticated requests to the Pocket connection.
Create a new PocketProvider.
By default connecting to mainnet with a highly throttled API key.
Returns a prepared request for connecting to network with applicationId.
QuickNode provides a third-party service for connecting to various blockchains over JSON-RPC.
Supported Networks
- Ethereum Mainnet (mainnet)
- Goerli Testnet (goerli)
- Arbitrum (arbitrum)
- Arbitrum Goerli Testnet (arbitrum-goerli)
- Optimism (optimism)
- Optimism Goerli Testnet (optimism-goerli)
- Polygon (matic)
- Polygon Mumbai Testnet (maticmum)
The QuickNodeProvider connects to the 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.
The API token.
Creates a new QuickNodeProvider.
Returns a new request prepared for network and the token.