Options
Following options can be passed to WalletConnectModal
i.e.
projectId (required)
Your project’s unique identifier that can be obtained at cloud.reown.com. Enables following functionalities within AppKit: wallet and chain logos, optional WalletConnect RPC, support for all wallets from WalletGuide and WalletConnect v2 support. Defaults to undefined
.
chains (required)
Array of CAIP-2 compliant chains modal should work with.
mobileWallets (optional)
You can define an array of custom mobile wallets. Note: you will also need to add appropriate wallet images in walletImages
. Native link represents deeplinking URL like rainbow://
and Universal link represent webpage link that can redirect to the app or fallback page. Defaults to undefined
.
desktopWallets (optional)
You can define an array of custom desktop or web based wallets. Note: you will also need to add appropriate wallet images in walletImages
. Native link represents deeplinking URL like ledgerlive://
and Universal link represents webpage link that can redirect to the app or fallback page. Defaults to undefined
.
walletImages (optional)
Array of wallet id’s and their logo mappings. This will override default logos. Id’s in this case can be: WalletGuide id’s, wallet id’s you provided in mobileWallets
or desktopWallets
and wagmi connector id’s. Defaults to undefined
.
explorerRecommendedWalletIds (optional)
Allows to override default recommended wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to prioritise (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to completely disable recommended wallets, you can set this option to NONE
. Defaults to undefined
.
explorerExcludedWalletIds (optional)
Allows to exclude wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to exclude. You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to exclude all wallets, you can set this option to ALL
, however if explorerRecommendedWalletIds
were defined, they will still be fetched. Defaults to undefined
.
termsOfServiceUrl (optional)
String URL to your terms of service page, if specified will append special “legal info” footer to the modal. Defaults to undefined
.
privacyPolicyUrl (optional)
String URL to your privacy policy page, if specified will append special “legal info” footer to the modal. Defaults to undefined
.
enableExplorer (optional)
Option to enable or disable wallet fetching from WalletGuide. Defaults to true
.
themeMode (optional)
Puts AppKit into dark or light mode. Defaults to user’s system preference.
themeVariables (optional)
Allows to override AppKit’s css styles. See theming section for all available options.
enableAuthMode (optional)
Option to enable auth only mode for modal, will adjust which wallets are fetched from explorer. Defaults to false
.
Following options can be passed to WalletConnectModal
i.e.
projectId (required)
Your project’s unique identifier that can be obtained at cloud.reown.com. Enables following functionalities within AppKit: wallet and chain logos, optional WalletConnect RPC, support for all wallets from WalletGuide and WalletConnect v2 support. Defaults to undefined
.
chains (required)
Array of CAIP-2 compliant chains modal should work with.
mobileWallets (optional)
You can define an array of custom mobile wallets. Note: you will also need to add appropriate wallet images in walletImages
. Native link represents deeplinking URL like rainbow://
and Universal link represent webpage link that can redirect to the app or fallback page. Defaults to undefined
.
desktopWallets (optional)
You can define an array of custom desktop or web based wallets. Note: you will also need to add appropriate wallet images in walletImages
. Native link represents deeplinking URL like ledgerlive://
and Universal link represents webpage link that can redirect to the app or fallback page. Defaults to undefined
.
walletImages (optional)
Array of wallet id’s and their logo mappings. This will override default logos. Id’s in this case can be: WalletGuide id’s, wallet id’s you provided in mobileWallets
or desktopWallets
and wagmi connector id’s. Defaults to undefined
.
explorerRecommendedWalletIds (optional)
Allows to override default recommended wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to prioritise (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to completely disable recommended wallets, you can set this option to NONE
. Defaults to undefined
.
explorerExcludedWalletIds (optional)
Allows to exclude wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to exclude. You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to exclude all wallets, you can set this option to ALL
, however if explorerRecommendedWalletIds
were defined, they will still be fetched. Defaults to undefined
.
termsOfServiceUrl (optional)
String URL to your terms of service page, if specified will append special “legal info” footer to the modal. Defaults to undefined
.
privacyPolicyUrl (optional)
String URL to your privacy policy page, if specified will append special “legal info” footer to the modal. Defaults to undefined
.
enableExplorer (optional)
Option to enable or disable wallet fetching from WalletGuide. Defaults to true
.
themeMode (optional)
Puts AppKit into dark or light mode. Defaults to user’s system preference.
themeVariables (optional)
Allows to override AppKit’s css styles. See theming section for all available options.
enableAuthMode (optional)
Option to enable auth only mode for modal, will adjust which wallets are fetched from explorer. Defaults to false
.
projectId (required)
Your project’s unique identifier that can be obtained at cloud.reown.com. Enables following functionalities within WalletConnectModal: wallet and chain logos, optional WalletConnect RPC, support for all v2 wallets from WalletGuide. Defaults to undefined
.
providerMetadata (required)
Object that contains metadata of your app
sessionParams (optional)
Defaults to:
relayUrl (optional)
Define a custom Relay Server URL. Defaults to "wss://relay.walletconnect.com"
onCopyClipboard (optional)
This function is intended to be called when the user wants to copy something to the clipboard, and allows you to add the necessary actions to copy the value to the Clipboard.
Now used in:
- Copy button in QR Code view
explorerRecommendedWalletIds (optional)
Allows to override default recommended wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to prioritize (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to completely disable recommended wallets, you can set this option to NONE
. Defaults to undefined
.
explorerExcludedWalletIds (optional)
Allows to exclude wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to exclude. You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. If you want to exclude all wallets, you can set this option to ALL
, however if explorerRecommendedWalletIds
were defined, they will still be fetched. Defaults to undefined
.
accentColor (optional)
Allows to override WalletConnectModal’s accent accentColor
Explorer recommended wallets
Allows to set default recommended wallets that are fetched from WalletGuide. You can define a list of wallets ids you’d like to prioritise (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of your desired wallet card.
Explorer excluded wallets
Allows to exclude wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to exclude. You can get these ids from the explorer link mentioned before by clicking on a copy icon of your desired wallet card.
Show installed wallets
Allows you to show the INSTALLED
label under the wallet icon in the list. To use this feature, you need to add selected wallets that you want to handle to AndroidManifest.xml
as a query. Specs: Android Specs
Web3App or projectId & PairingMetadata (required)
You must provide either a Web3App or a projectId and PairingMetadata. Providing the Web3App lets you register callbacks on the Web3App you’d like to use. Otherwise, we recommend just providing the projectId and PairingMetadata to the WalletConnectModalService directly.
or
requiredNamespaces (optional)
Defaults to null.
This is the initial set of namespaces that will be requested from the wallet.
You can change it at any time with the setRequiredNamespaces
method.
optionalNamespaces (optional)
Defaults to null.
This is the initial set of optional namespaces that will be requested from the wallet.
You can change it at any time with the setOptionalNamespaces
method.
recommendedWalletIds (optional)
Allows to override default recommended wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to prioritize (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. Defaults to null
.
excludedWalletState & excludedWalletids (optional)
The excludedWalletState
Determines the state of the excluded wallets. Defaults to ExcludedWalletState.list
.
If the excludedWalletState
is ExcludedWalletState.list
, the excludedWalletIds
will be used to remove items from the list of wallets returned from the WalletGuide. If the excludedWalletState
is ExcludedWalletState.all
, all wallets will be excluded except for the ones defined in recommendedWalletIds
.
ConnectOptions
Session connection options
IncludedWalletIds
Allows to override default recommended wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to prioritize (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. Defaults to null
.
ExcludedWalletIds
Allows to exclude wallets that are fetched from WalletGuide. You can define an array of wallet ids you’d like to exclude. You can get these ids from the explorer link mentioned before by clicking on a copy icon of desired wallet card. Defaults to null
.
Was this page helpful?