ConnectButton
A fully featured wallet connection component that allows to:
Connect to 350+ external wallets
Connect with email, phone, passkey or socials
Convert any wallet to a ERC4337 smart wallet for gasless transactions
Sign in with ethereum (Auth)
Once connected, the component allows to:
Reolve ENS names and avatars
Manage multipple connected wallets
Send and receive native tokens and ERC20 tokens
View ERC20 tokens and NFTs
Onramp, bridge and swap tokens
Switch chains
Connect to another app with WalletConnect
Default setup
View all available config options
Customization options
Customizing wallet options
Customizing the default chain to connect to
Enabling Account Abstraction
By passing the accountAbstraction
prop, ALL connected wallets will be converted to smart accounts.
And by setting sponsorGas
to true
, all transactions done with those smart accounts will be sponsored.
Enabling sign in with ethereum (Auth)
Customizing the theme
For more granular control, you can also pass a custom theme object:
View all available themes properties
Changing the display language
Customizing the connect button UI
Customizing the modal UI
Customizing details button UI (after connecting)
View all available auth helper functions
Customizing the Auth sign in button (after connecting, but before authenticating)
Customizing supported Tokens and NFTs
These tokens and NFTs will be shown in the modal when the user clicks "View Assets", as well as the send token screen.
Customizing the orders of the tabs in the [View Funds] screen
When you click on "View Assets", by default the "Tokens" tab is shown first. If you want to show the "NFTs" tab first, change the order of the asset tabs to: ["nft", "token"] Note: If an empty array is passed, the [View Funds] button will be hidden