ethers.js/docs/v5/api/providers
2020-06-12 19:21:37 -04:00
..
api-providers Updated docs. 2020-06-12 19:21:37 -04:00
jsonrpc-provider Updated docs. 2020-06-12 19:21:37 -04:00
other Updated docs. 2020-06-12 19:21:37 -04:00
provider Updated docs. 2020-06-12 19:21:37 -04:00
types Updated docs. 2020-06-12 19:21:37 -04:00
index.html Updated docs. 2020-06-12 19:21:37 -04:00
README.md Check-in old v5 docs changes. 2020-06-09 23:56:58 -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 deafult 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 specifie. This allows tracking how many requests are being sent and which methods are being used the most.

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

Provider Documentation