Connection Hooks
You can build a completely custom UI for connecting the wallet using the useConnect
hook to connect any of supported wallets.
You can create any wallet by id with auto completion using the createWallet
function. Or use one of the first party wallets like inAppWallet
or ecosystemWallet
.
inAppWallet
Create an in app wallet
ecosystemWallet
Create an ecosystem wallet
createWallet
Create any external wallet by id with auto completion
Use these hooks to trigger and manage wallet wallet connection within your own UI. Refer to wallet connection hooks reference for more information.
useConnect
Hook to connect any created wallet
useAutoConnect
Hook to auto connect a previously connected wallet
useConnectModal
Hook to open a prebuilt connection modal UI from anywhere
useSwitchActiveWalletChain
Hook to switch the active wallet chain
useDisconnect
Hook to disconnect the wallet
Once the wallet is connected, you can use the wallet connection hooks to get information about the connected wallet like getting the address, account, etc.