useAppKit
Control the modal with theuseAppKit
hook
- Wagmi
- Ethers
- Ethers v5
open
function
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. |
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. |
useAppKitState
Get the current value of the modal’s state- Wagmi
- Ethers
- Ethers v5
State | Description | Type |
---|---|---|
open | Open state will be true when the modal is open and false when closed. | boolean |
selectedNetworkId | The current chain id selected by the user. | number |
useAppKitEvents
Get the last tracked modal event. The hook accepts an optional callback function that is executed when the event is triggered.- Wagmi
- Ethers
- Ethers v5
useAppKitEventSubscription
Subscribe to modal specific events- Wagmi
- Ethers
- Ethers v5
useWalletInfo
Get the metadata information from the connected wallet- Wagmi
- Ethers
- Ethers v5
Ethereum Library
- Wagmi
- Ethers
- Ethers v5