Wrapping my app in AlchemyAccountProvider makes my app load forever #834
Answered
by
avarobinson
RomanSirmanov
asked this question in
Issues
-
Beta Was this translation helpful? Give feedback.
Answered by
avarobinson
Jul 30, 2024
Replies: 2 comments 4 replies
-
Hi Roman! Are you seeing any output in your console or terminal logs? Have you configured your API key? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you running SSR or no? This is a bug we discovered while working on v4 that affects CSR apps. If you're ok with using the alpha packages, you can replace Another option is to set |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RomanSirmanov Gotcha! As mentioned above, the SmartAccountClient from the aa-core package is an EIP-1193 compliant provider that you should be able to use in place of window.ethereum passed to changeProvider.
The chain being used by the SmartAccountClient is defined by you in the client initialization. You can manage multiple chains and chain switching with the React
[useChain](https://accountkit.alchemy.com/react/useChain)
hook. I do think just the smartAccountClient should be sufficient to use any web3 library functions.Let me know if that doesn't work for your use case!