Error TrustWallet

Wallet with Metamask Connect easily but trust wallet does not connect:

Moralis.start({ serverUrl, appId });

var address;

async function login() {

let user = Moralis.User.current();

if (!user || user) {

user = await Moralis.authenticate({

    signigMenssage: "Log winth moralis",

    provider: "walletconnect",

    chainId: 56

}).then(function (user) {

    console.log("logged in user:", user);

    address = user.get("ethAddress");

    localStorage.setItem('getddress', address);

    document.getElementsByClassName("login")[0].style.display = "none";

    document.getElementsByClassName("transfer")[0].style.display = "block";



  .catch(function (error) {



  web3 = await Moralis.enableWeb3(provider);



Which device are you using for Trust Wallet? And which Moralis SDK version are you using?

Do you get the connection and/or signature request in Trust Wallet?

This is the version you use:

<script src="[email protected]/dist/moralis.js"></script>

<script src=""></script>

when I scan the qrcode it works with the metamask it works ok but the trustwallet shows this message then exits

and I didn’t get the subscription message

Can you try connecting with this demo - this works with my Trust Wallet app on Android. If you use the first option, you have to connect first, then return to the browser and tap it again to then sign the message.

did it work bro how did you do it?

Could you share this demo?
I’d love to see where I’m going wrong

The demo is the link I posted above -

1 Like

thank you!!!