Connecting Wallets
ConnectButton Component
The simplest way to add wallet connection:ConnectButton:
- Shows “Connect Wallet” when disconnected
- Opens a wallet selection modal
- Displays connected address when connected
- Provides disconnect option
Get Connected Account
UseuseCurrentAccount to get the connected wallet:
Complete Example
src/components/WalletConnection.tsx
Next Steps
Read Data
Query blockchain data using React hooks