2.0.0
WagmiProvider
and Config
creation function are provided by wagmi
. However, when integrating with Privy, the @privy-io/wagmi
package should be used instead.
Change the import statements from:
polygon
as a supported chain. Your config should look something like:
PrivyProvider
requires that the QueryClientProvider
wraps the WagmiProvider
.
Next, simply wrap the existing Providers with the PrivyProvider
:
PrivyProvider
setup with the Lens SDK:
useProfilesManaged
hook from the Lens SDK:
useLogin
hook from the Lens SDK to log in with one of the profiles returned: