web3-react
web3-react copied to clipboard
Trust Wallet Support/Documentaition
Hi There!
I want to add Trust Wallet, i see the eip1193 is here but seems not working yet, Can anyone explain to us how we can use trust wallet?
I also tried using the metamask connector but not succesfully!
You can use it through WalletConnect. Or from any wallet browser, it works with Metamask.
So i can use the eip1193.ts https://github.com/Uniswap/web3-react/blob/main/packages/example-next/connectors/eip1193.ts
or the metaMask.ts https://github.com/Uniswap/web3-react/blob/main/packages/example-next/connectors/metaMask.ts
connector file to connect directly with Trust Wallet?
Does this work with goerli?
You should use WalletConnect and select trust wallet from the menu, You can test it here.
As far as I know, TrustWallet doesn't have TestNet!
WalletConnect Isnt in the menu, also Trust Wallet has there Browser extention i want to use.
But i get: 🔴 Error: Invalid RPC URL: undefined. (when im going to goerli)
When i try metamask wallet it works.
https://user-images.githubusercontent.com/3182483/209951429-055f56c4-29d5-4f61-a836-207a69790761.mov
Make your clone from the repo and add the complete chain information, into the CHAINS
variable like this:
5: {
urls: [infuraKey ? `https://goerli.infura.io/v3/${infuraKey}` : ""].filter(
(url) => url !== ""
),
name: "Görli",
nativeCurrency: ETH,
blockExplorerUrls: ["https://goerli.etherscan.io"],
},
And it should be added correctly.
I made a movie from the example in this repo. Does the example not work?