2

In ethers.js the provider is ethers.getDefaultProvider(); Actually I am running nodejs on server and not using any node Here which provider I am using? Thank you.

1
  • Your question ("the provider is ethers.getDefaultProvider()... I am not using any node... which provider am I using?") is unclear. The way it is phrased, the answer is either "you are not using any provider" or "call ethers.getDefaultProvider() and find out". Please consider rephrasing it and including the relevant piece of code. Mar 15, 2020 at 14:34

1 Answer 1

2

It is in the documentation: https://docs.ethers.io/v5/api/providers/#providers-getDefaultProvider

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

This creates a FallbackProvider backed by multiple backends (INFURA and Etherscan).

Not the answer you're looking for? Browse other questions tagged or ask your own question.