RootSoft / walletconnect-dart-sdk

Open protocol for connecting dApps to mobile wallets with QR code scanning or deep linking.
MIT License
102 stars 61 forks source link

how open trust wallet not metmask? #79

Closed ArDapps closed 1 year ago

ArDapps commented 1 year ago

every time open metamask, what is the parmas need to change to use trust wallet ?

WingCH commented 1 year ago

try this

connector.createSession(
        onDisplayUri: (uri) {
                final trustWalletUri = Uri.https('link.trustwallet.com', 'wc', {'uri': uri});
        }
);
RootSoft commented 1 year ago

Take a look here: walletconnect_qr_modal

ShallowGreen commented 1 year ago

try this

connector.createSession(
        onDisplayUri: (uri) {
                final trustWalletUri = Uri.https('link.trustwallet.com', 'wc', {'uri': uri});
        }
);

@WingCH I just want connect with metamask, how should I do? I don't want to show the select of all the wallet app. just connect default with metamask

WingCH commented 1 year ago

@ShallowGreen You can use the Metamask universal link metamask.app.link, which works in the same way as Trust Wallet.

walletUri = Uri.https('metamask.app.link', 'wc', {'uri': uri});
ArDapps commented 1 year ago
  CryptoWallet(universalLink: 'https://link.trustwallet.com/', deeplink: 'trust://');
ArDapps commented 1 year ago

@ShallowGreen You can use the Metamask universal link metamask.app.link, which works in the same way as Trust Wallet.

walletUri = Uri.https('metamask.app.link', 'wc', {'uri': uri});

universalLink: 'https://link.trustwallet.com/', deeplink: 'trust://');