Skip to main content

Connecting Wallets

ConnectButton Component

The simplest way to add wallet connection:
The ConnectButton:
  • Shows “Connect Wallet” when disconnected
  • Opens a wallet selection modal
  • Displays connected address when connected
  • Provides disconnect option

Get Connected Account

Use useCurrentAccount to get the connected wallet:

Complete Example

src/components/WalletConnection.tsx

Next Steps

Read Data

Query blockchain data using React hooks