Skip to content

How to get Provider and contract values while using web3Modal #2960

Discussion options

You must be logged in to vote

once the wallet is connected, you should be able to use wagmi hooks to access these values.

note that in the latest versions of web3modal, wagmi v1.x.x is used which leans on viem and the "publicClient" terminology rather than wagmi 0.x.x which uses ethers.js and "provider" terminology. you may have reference the 0.x.x versions of the wagmi docs and select an appropriate version of web3modal to be able to use the ethers "provider" terminology.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by boidushya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment