Connect Wallet Button

This seems simple enough however I cant find a simple connect wallet button for tronlink. Click button Tronlink opens, users signs in. Please advise.

9 Likes

you can do something like this, example in react:

const connect = () => {
    if (window && window.tronLink) {
        window.tronLink.request({ method: 'tron_requestAccounts' });
    }
}

This will show a connect tronlink popup if the user has tronlink installed :slight_smile:

3 Likes

Thanks, I will try it,

1 Like

Thanks a lot mate for that! :grinning:

2 Likes

Can you show the example in node.js?
@karilplazik :grinning: :smiling_face_with_three_hearts:

is it for metamask wallet?

I can not find a way to connect the web3 project I have on my Android cellphone to my TRON wallet. Is there a dev person in teh hackathon, that can give me some insight or instructions on how to connect an add to the wallet?
Thanks
EFT

2 Likes