web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

Trust Wallet Support/Documentaition

Open Daargajedan opened this issue 2 years ago • 6 comments

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!

Daargajedan avatar Dec 27 '22 10:12 Daargajedan

You can use it through WalletConnect. Or from any wallet browser, it works with Metamask.

b3hr4d avatar Dec 29 '22 10:12 b3hr4d

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?

Daargajedan avatar Dec 29 '22 11:12 Daargajedan

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!

b3hr4d avatar Dec 29 '22 12:12 b3hr4d

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

Daargajedan avatar Dec 29 '22 12:12 Daargajedan

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.

b3hr4d avatar Dec 30 '22 09:12 b3hr4d

I made a movie from the example in this repo. Does the example not work?

Daargajedan avatar Jan 04 '23 23:01 Daargajedan