Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to connect Trust wallet #57

Closed
VivekMakwana24 opened this issue Jul 7, 2022 · 4 comments
Closed

Not able to connect Trust wallet #57

VivekMakwana24 opened this issue Jul 7, 2022 · 4 comments

Comments

@VivekMakwana24
Copy link

Hello,

I want to connect to Trust wallet, But unfortunately it doesn't connect with it.

I have run the Mobile example app of this demo and tried to scan the QR code from the Trust Wallet, but it gives a prompt msg of "Connecting! please wait" , Nothing happens after that.

@mrtnetwork
Copy link

For me, this happens when I try to connect to TrustWallet without a VPN because my country is embargoed, Or I try to make a new connection again without waiting for the connection to be established

@mahdibagjani
Copy link

I have the same problem with TrustWallet and SafePal

@mahdibagjani
Copy link

mahdibagjani commented Jul 13, 2022

@MohsenHaydari
found problem. TrustWallet and SafePal ,... (except MetaMask) just connect to mainNet. you have to change chainID from 3 (ropsten) to 1 (mainnet). Then change Web3Client url to a mainNet url for example 'https://rpc.flashbots.net/'. That's it.

//chainID list
https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/

//mainNet urls
https://chainlist.org/chain/1

//ethereum_transaction_tester.dart

final ethereum = Web3Client('https://rpc.flashbots.net/', Client());
return connector.connect(chainId: 1, onDisplayUri: onDisplayUri);

@ronpetit
Copy link

@MohsenHaydari found problem. TrustWallet and SafePal ,... (except MetaMask) just connect to mainNet. you have to change chainID from 3 (ropsten) to 1 (mainnet). Then change Web3Client url to a mainNet url for example 'https://rpc.flashbots.net/'. That's it.

//chainID list https://besu.hyperledger.org/en/stable/Concepts/NetworkID-And-ChainID/

//mainNet urls https://chainlist.org/chain/1

//ethereum_transaction_tester.dart

final ethereum = Web3Client('https://rpc.flashbots.net/', Client());
return connector.connect(chainId: 1, onDisplayUri: onDisplayUri);

Just to make it more clear, trust wallet won't accept any testnet, was trying over Polygon mumbai, and It didn't worked until I changed to polygon mainnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@ronpetit @RootSoft @mahdibagjani @VivekMakwana24 @mrtnetwork and others