Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect to other testnets? #41

Closed
leotianlizhan opened this issue Oct 25, 2017 · 1 comment
Closed

How to connect to other testnets? #41

leotianlizhan opened this issue Oct 25, 2017 · 1 comment

Comments

@leotianlizhan
Copy link

Is there a way to make a Rinkeby testnet provider?

@ricmoo
Copy link
Member

ricmoo commented Oct 25, 2017

Currently only Ropsten and Mainnet are part of the getDefaultProvider function, but for now you can use:

// Rinkeby Provider
var provider = new ethers.providers.JsonRpcProvider('https://rinkeby.infura.io', true, 4);

I will try to get proper Rinkeby/Kovan support added today/tomorrow. I have already added it to ethers.objc, and it was pretty painless, since the hostname and chain ID are the only things that needs to change. The bulk of time is adding test cases and updating the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants