Using Alchemy with the Injected Connector configuration #338
-
I am fairly new to using wagmi and have been trying to understand the different parts of the injected wallet configuration, but can't figure out how to use my Alchemy API connection and a few parts about the wallet connection setup. For starters, I logged the
I noticed in the documentation, https://wagmi.sh/docs/provider#provider-optional, that there is an overwrite behavior for provider, is this where I should be applying the Alchemy information? Any location in github repo that points to a
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't know but this code from the examples shows how to setup 3 providers: |
Beta Was this translation helpful? Give feedback.
-
Something that I missed in the documentation is the direct reference of the ethers package and in that packages code there is an wagmi Documentation - provider (optional) My updated code:
|
Beta Was this translation helpful? Give feedback.
Something that I missed in the documentation is the direct reference of the ethers package and in that packages code there is an
AlchemyProvider()
method. This resolved my issue.wagmi Documentation - provider (optional)
My updated code: