Skip to content

Wrapping my app in AlchemyAccountProvider makes my app load forever #834

Discussion options

You must be logged in to vote

@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!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@RomanSirmanov
Comment options

@avarobinson
Comment options

@RomanSirmanov
Comment options

@avarobinson
Comment options

Answer selected by avarobinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants