Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add wallet info #2099

Merged
merged 7 commits into from
Apr 1, 2024
Merged

add wallet info #2099

merged 7 commits into from
Apr 1, 2024

Conversation

glitch-txs
Copy link
Contributor

@glitch-txs glitch-txs commented Mar 30, 2024

Breaking Changes

N/A

Changes

  • feat: Added function and hook to get the connected wallet information (name, icon, etc)
import { useWalletInfo } from '@web3modal/wagmi/react


export default App(){
  const { walletInfo } = useWalletInfo()

  console.log(walletInfo.name, walletInfo.icon)
  
  return <YourApp/>

}
modal.subscribeWalletInfo(handler)

const { name, icon } = modal.getWalletInfo()

Associated Issues

closes #1665

Copy link

vercel bot commented Mar 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3modal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 6:25pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview Apr 1, 2024 6:25pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Apr 1, 2024 6:25pm
web3modal-react-wagmi-ex ✅ Ready (Inspect) Visit Preview Apr 1, 2024 6:25pm
web3modal-vue-wagmi-ex ✅ Ready (Inspect) Visit Preview Apr 1, 2024 6:25pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Hook for Returning Wallet Information
2 participants