walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

unable to fetch the phantom extension in reown appkit connect button

Open prabhatkashyap902 opened this issue 1 year ago • 4 comments

i am using reown appkit and from their docs, i have tried to get phantom wallet adapter button but when i click on it, it doesn't get detected even i have extension, and it has 2 phantom wallet button, it should have 1 the main above one. can anyone help me where i am getting wrong.

import { SolanaAdapter } from '@reown/appkit-adapter-solana/react'
import { solana, mainnet } from '@reown/appkit/networks'
import { PhantomWalletAdapter  } from '@solana/wallet-adapter-wallets'
import { EthersAdapter } from '@reown/appkit-adapter-ethers'

// 0. Create the Ethers adapter
const ethersAdapter = new EthersAdapter()
const phantomAdapter= new PhantomWalletAdapter()

// 0. Set up Solana Adapter
const solanaWeb3JsAdapter = new SolanaAdapter({
  wallets: [phantomAdapter]
})

// 1. Get projectId from https://cloud.reown.com
const projectId = '4f69a130bfe8'


createAppKit({
  adapters: [ethersAdapter, solanaWeb3JsAdapter],
  networks:[solana, mainnet],
  metadata,
  projectId,
  enableWalletConnect:false,
  debug:true,
  featuredWalletIds:['a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393','c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96','1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369'],
  features: {
    socials:[],
    email:false,
    analytics: true // Optional - defaults to your Cloud configuration
  }
})
Screenshot 2024-11-10 at 7 13 56 PM Screenshot 2024-11-10 at 7 14 08 PM

as you can see these images, it is showing 2 phantom wallet, the above one is getting fetch from the extension and the 2nd one is getting fetched from featuredWalletIds, and if I click the 2nd one it says unable to detect, even though I have extension. please help

prabhatkashyap902 avatar Nov 10 '24 14:11 prabhatkashyap902

HI @prabhatkashyap902

I hope you are doing well .. to get a correct functionality please delete this wallet from the feautureWalletId -> 'a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393'

This wallet will be appearing, in case of compatibility, in the "all wallets" section

rtomas avatar Nov 12 '24 19:11 rtomas

hello @rtomas if i remove that featureWalletId then how will I use it in my ios phone? it simply doesn't show up in phone, so to show the wallet I need to give the featurewalletId, can you help me with this, why both the phantoms are different if they both are same product, and if we remove that featurewalletId then how will we able to get it connect on phone?

prabhatkashyap902 avatar Nov 15 '24 08:11 prabhatkashyap902

facing the same issue would appreciate help in this. I removed the featureWalletId ,but the phantom wallet wasn't shown soI had to add the featuredWalletId. but I think the kit is not recognising the phantom app

Webners1 avatar Apr 03 '25 14:04 Webners1

I also cannot detect phantom wallet too.

prolocalize-cto avatar Jul 08 '25 14:07 prolocalize-cto