How to only show Phantom wallet inside Modal

import { getInjectedAdapters } from “@web3auth/default-solana-adapter”;

const web3AuthOptions: Web3AuthOptions = {
clientId,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
uiConfig: {
uxMode: “redirect”,
appName: “xxx”,
appUrl: “xxx”,
theme: {
primary: “gray”,
},
logoLight: “xxx”,
logoDark: “xxx”,
defaultLanguage: “en”, // en, de, ja, ko, zh, es, fr, pt, nl, tr
mode: “dark”, // whether to enable dark mode. defaultValue: auto
useLogoLoader: true,
},
privateKeyProvider: privateKeyProvider,
sessionTime: 86400 * 7, // 7 days
};
const adapters = await getInjectedAdapters({ options: web3AuthOptions })
const phantomAdapter = adapters.find((e) => e.name == “phantom”)
if (phantomAdapter) {
web3auth.configureAdapter(phantomAdapter)
}
await web3auth.initModal();

"@web3auth/auth-adapter": "^9.4.0",
"@web3auth/base": "^9.4.0",
"@web3auth/default-solana-adapter": "^9.4.4",
"@web3auth/modal": "^9.4.1",
"@web3auth/solana-provider": "^9.4.0",

Above code will display all kinds of wallets in the web3auth login modal. But I only want to show Phantom.

Hey @zhew1991,
Thanks for your post!
Currently, we do not support the ability to show specific wallets inside the modal. However, we appreciate your suggestion and will take it as a feature request for future development.

Unfortunately, we cannot provide a specific timeline or deadline for this feature at the moment.

What about I only want to show Solana related wallet?

A lot of listed wallet here only supports EVM chains.

Hey @zhew1991,

You can check out our Modal Solana example here. It lists only the wallets present in the user’s extensions that support Solana.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.