useAppKit
hook provides functions to control the modal’s visibility. You can use it to programmatically open or close the modal.
open
function
Variable | Description |
---|---|
Connect | Principal view of the modal - default view when disconnected. |
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. |
Swap | Swap tokens seamlessly - users can trade tokens directly in your app with transparent pricing. |
OnRamp | Buy crypto with fiat - users can purchase crypto directly in your app using their preferred payment method. |
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 |