Skip to content

Vue3 project. Is there a way I can tell whether or not the wallet is connected #4528

Discussion options

You must be logged in to vote

@s3mi0tics, Web3Modal provides the hook that can check the wallet is connected or not.

`
import { useWeb3ModalAccount } from '@web3modal/ethers/vue'

const { address, chainId, isConnected } = useWeb3ModalAccount()
`

Based on the isConnected status, you can update the button or not.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by glitch-txs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants