I have a web3 application where I use three types of wallets: MetaMask, WalletConnect, BianceChain, users can connect to these wallets,Problem is I can not detect which wallet user comes from, is there any way to distinguish them from each other?
Detecting the type of wallet a user is connecting with can be complex because Ethereum wallet services typically adhere to standards like EIP-1193: Ethereum Provider JavaScript API. This standardizes how transactions are signed and broadcasted, but does not inherently provide metadata about the wallet itself.
Consider the following approaches:
Both methods have limitations and potential inaccuracies. Your choice depends on the specific wallets you support, the user experience you seek, and the importance of accurate wallet detection for your dapp.