ethers.js/docs/v5/api/providers
2020-07-03 01:54:56 -04:00
..
api-providers Updated docs build. 2020-07-03 01:54:56 -04:00
jsonrpc-provider Updated docs build. 2020-07-03 01:54:56 -04:00
other Updated docs build. 2020-07-03 01:54:56 -04:00
provider Updated docs build. 2020-07-03 01:54:56 -04:00
types Updated docs build. 2020-07-03 01:54:56 -04:00
index.html Updated docs build. 2020-07-03 01:54:56 -04:00
README.md Updated docs build. 2020-07-03 01:54:56 -04:00

Documentation: html

Providers

Default Provider

ethers . getDefaultProvider( [ network , [ options ] ] ) => Provider

Returns a new Provider, backed by multiple services, connected to network. Is no network is provided, homestead (i.e. mainnet) is used.

The options is an object, with the following properties:

Option Properties

Note: API Keys

It is highly recommended for production services that to acquire and specify an API Key for each sercice.

The default API Keys used by ethers are shared across all users, so services may throttle all services that are using the default API Keys during periods of load without realizing it.

Many services also have monitoring and usage metrics, which are only available if an API Key is specified. This allows tracking how many requests are being sent and which methods are being used the most.

Some services also provide additional paid features, which are only available when specifying an API Key.

Provider Documentation