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.

32 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:

14 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:

1 Like

is it for metamask wallet?

2 Likes

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

3 Likes

Which wallet if i may ask

Same here I can’t seem to find it

1 Like

This is for Tronlink Only.

I don’t understand coding but I believe that programmer’s among us will find it useful

1 Like

I don’t seem to understand.

M gonna try my l
Luck thanks bro

I’ll try
It’ll really be of help

1 Like

Thanks mate :white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark:

that’s rly helpful, thanks for sharing

ah thanks brother, I was trying ai generated code to connect it. Now it works well. Thank you

great topic, helpful solution, best community <3 <3 greetings from Greece