useAppKit
, useAppKitAccount
, useDisconnect
)useAppKitNetwork
)useAppKitState
, useAppKitTheme
)useAppKitBalance
, useWalletInfo
)useAppKitEvents
)open
: Function to open the modalclose
: Function to close the modalopen
function
Namespace | Description |
---|---|
solana | For connecting to Solana wallets |
bip122 | For connecting to Bitcoin wallets |
eip155 | For connecting to Ethereum wallets |
Variable | Description |
---|---|
Connect | Principal view of the modal - default view when disconnected. A namespace can be selected to connect to a specific network (solana, bip122 or eip155) |
Account | User profile - default view when connected |
AllWallets | Shows the list of all available wallets |
Networks | List of available networks - you can select and target a specific network before connecting |
WhatIsANetwork | ”What is a network” onboarding view |
WhatIsAWallet | ”What is a wallet” onboarding view |
OnRampProviders | On-Ramp main view |
Swap | Swap main view |
allAccounts
: A list of connected accountsaddress
: The current account addresscaipAddress
: The current account address in CAIP formatisConnected
: Boolean that indicates if the user is connectedstatus
: The current connection statusembeddedWalletInfo
: The current embedded wallet informationType | Options |
---|---|
QR Code | walletConnect |
Wallets | metamask , trust , coinbase , rainbow , jupiter , solflare , coin98 , magic-eden , backpack , frontier , xverse , okx , bitget , leather , binance , uniswap , safepal , bybit , phantom , ledger , timeless-x , safe , zerion , oneinch , crypto-com , imtoken , kraken , ronin , robinhood , exodus , argent , and tokenpocket |
Social logins | google , github , apple , facebook , x , discord , and farcaster |
email |
useAppKitWallet
enables:
caipNetwork
: The current network objectcaipNetworkId
: The current network id in CAIP formatchainId
: The current chain idswitchNetwork
: Function to switch the network. Accepts a caipNetwork
object as argument.fetchBalance
: Async function that returns the current balance of the connected wallet
initialized
: Boolean that indicates if AppKit has been initialized. This sets to true when all controllers, adapters and internal state is readyloading
: Boolean that indicates if AppKit is loadingopen
: Boolean that indicates if the modal is openselectedNetworkId
: The current chain id selected by the user in CAIP-2 formatactiveChain
: The active chain namespace (e.g., ‘eip155’, ‘solana’, ‘bip122’)namespace
(optional): The specific chain namespace to disconnect from. If not provided, disconnects from all connected namespaces.walletProvider
and the WalletProviderType
for interacting with the connected wallet across different blockchain adapters.
walletProvider
: The wallet provider instance for the specified chain namespacewalletProviderType
: The type of wallet provider currently connectedwalletProvider
and the WalletProviderType
.