I'm starting on the world of web3 and dapps. Currently I have installed on my browser differents wallets plugins, as Metamask, Trust wallet and XDEFI. In my frontend I would like to connect and get account info from wallets selecting one of them. Currently I'm avalaible to connect only with metamask, because window.ethereum only get info from metamask, no the others wallets. How can I selected which wallet I would like to connect? I'm using ethers v6.11 in my vue project.
web3 connect with differents web3 browser providers
60 views Asked by user2171002 At
1
There are 1 answers
Related Questions in WEB3JS
- Solidity based blockchain not getting account and networkId
- Gas Estimation Fee on Tron Mainnet
- This is the solidity code to list nft in marketplace after minting but while calling makeItem function Error is showing that Faliled to estimate gas
- How to import rpc information without importing .env file or hardcoding on frontend?
- Using web3.js' getPastEvents() in TypeScript gives "No overload matches this call" error
- Can I swap with 1inch swap apis with forked hardhart?
- How to logout Metamask from react js app?
- Fetching Approved USDT Amount from User to Admin Wallet Using Etherscan USDT Contract Code
- uniswapRouter.getAmountsOut returns less value of token B than present in reverses
- a sales tax on stonfi or dedust (The Open Network)
- Can I build a dynamic Web3 site using IPFS?
- How to monitor new pool creation on BSC with Websocket
- Uncaught ReferenceError: bundle is not defined when calling bundled JavaScript function
- LocalWalletNotAvailableError : This error is showing even though site is connected to metamask
- Why I got derivedETH=0 on Uniswap V3 for token query in theGraph?
Related Questions in ETHERS.JS
- Function call Reverts from Smart Contract without a reason unniswap V3
- Trying to send transactions via a signer using my private key
- Error when deploying contract using ethers v6
- Error when fetching pending voters from smart contract using ethers.js
- Uniswap V3 Bot on Sepolia Testenet
- Argument of type '(accounts: string[]) => void' is not assignable to parameter of type '(...args: unknown[]) => void'
- Error: Package subpath './lib/utils' is not defined by "exports" in /node_modules/ethers/package.json
- no scripts folder in hardhat framework instead there's ignition folder with a subfolder named modules
- How to calculate sqrtPricex96 for uniswap pool creation?
- How to generate multi hop swap path with ethers.js?
- Get balance of usdc in web3modal button
- Read connected wallet RPC URL in Javascript
- Is it possible to make interfaces with BaseContract as a type?
- Simple Smart Contract Error: Transaction reverted: function selector was not recognized and there's no fallback function
- hardhat deploy.js Error: could not decode result data Weird
Related Questions in DECENTRALIZED-APPLICATIONS
- Issue with wagmi sendTransaction hook in react native expo
- Call Uniswap V3 QuoterV2 `quoteExactOutput()` function with dart (flutter)
- Fetching Approved USDT Amount from User to Admin Wallet Using Etherscan USDT Contract Code
- connecting trust wallet mobile to my dapp
- Understanding the process of setting up a Geth client on a private network and running a DApp
- Display Uniswap USDC/WETH Liquidity Position value in USD
- What are the correct units and parameters for generating swap calldata using the 1inch API?
- How to connect tronlink deep links for my dapp? The example from the documentation does not work
- web3 connect with differents web3 browser providers
- Can Web3 be used to switch between accounts on Metamask programmatically?
- I'm trying connect my users to metamask Uncaught (in promise) ReferenceError: ethereum is not defined at connectMetamask at HTMLButtonElement.onclick
- Dapp web3 failed transaction
- web3js@latest : Uncaught TypeError: Do not know how to serialize a BigInt
- What use instead Web3Contract.setProvider("RPC_URL") in web3-eth-contract 4.x version?
- WebSocket connection Failed when using Helia IPFS in react app
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Different wallet extensions have different ways and different browser api for connecting to them. If you want to implement each individually, it can get unnecessarily complicated. I'll advice you try out libraries that allows you to connect to multiple different wallets. example of this is web3modal
Take a look at the documentation for vue here https://docs.walletconnect.com/web3modal/vue/about
Update:
You can as well read up on eip-6963. The problem with window.ethereum is that, out of all the wallet extensions you have installed, only one is made available in window.ethereum at a time. eip-6963 gives you the freedom of connecting to any of your installed wallet extensions.
It is a very simple eip. The links below should help you understand it https://eips.ethereum.org/EIPS/eip-6963