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

added alchemy and provider support #1401

Merged

Conversation

PatrickAlphaC
Copy link
Contributor

@PatrickAlphaC PatrickAlphaC commented Jan 18, 2022

What I did

Added support for Alchemy built-in

Related issue: #

#1177

How I did it

I added a providers-config.yaml to the .brownie dir. Now, if you want to switch from Infura to Alchemy, you set your WEB3_ALCHEMY_PROJECT_ID and run:

brownie networks set_provider alchemy

How to verify it

Try it out!

  1. Add a provider flag to your infura network of choice.
brownie networks modify mainnet provider=infura

Then, swap it to alchemy

brownie networks set_provider alchemy

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

For some reason, a few tests locally keep failing for me... wondering if I can get some help cleaning up the last few.

Copy link
Member

@iamdefinitelyahuman iamdefinitelyahuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super cool!

Using Alchemy
*************

To Infura you need to `signup for an account <https://auth.alchemyapi.io/signup>`_. Once you have signed up, login and create a new project. You will be provided with a URL that can be leveraged to access the network.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To infura?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix 😅

@PatrickAlphaC
Copy link
Contributor Author

Updated!

@iamdefinitelyahuman iamdefinitelyahuman merged commit 8138410 into eth-brownie:master Feb 5, 2022
@HetmanJones
Copy link

I'm wonder if it is possible to do via configuration file? Thanks

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

Successfully merging this pull request may close these issues.

3 participants