How to get return when I use web3Modal.open()? #3314
Answered
by
glitch-txs
0xNullMe
asked this question in
Developer Support
-
when i try to use the https://github.com/WalletConnect/web3modal-examples/tree/main/web3modal-wagmi-html-cdn, i has been read wagmi and web3modal doc.Still don't understand how to get return. What should I do if I refuse to connect or if the connection is successful? |
Beta Was this translation helpful? Give feedback.
Answered by
glitch-txs
Jul 30, 2023
Replies: 1 comment 1 reply
-
Once the user connects you can use wagmi actions to interact with the wallet |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can subscribe to the modal and get the account when closed
https://docs.walletconnect.com/2.0/web/web3modal/html/wagmi/actions#subscribemodal
You can also use the watchAccount subscriber from wagmi