Add accountState to return value of useWeb3Modal to get connected wallet address #2442
-
Relating to: https://github.com/orgs/WalletConnect/discussions/2357 My ReactNative app wants to display the address of the user's wallet after establishing a connection. Could you please add one line as follows?
This is how my app got wallet address. |
Beta Was this translation helpful? Give feedback.
Answered by
ignaciosantise
May 24, 2023
Replies: 1 comment 1 reply
-
@nob3110 You can get the wallet address doing: const { address } = useWeb3Modal(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ignaciosantise
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@nob3110
@web3modal/react-native
alpha.5 is now available, and it has theaddress
prop inuseWeb3Modal
💪You can get the wallet address doing: