1

I'm trying to access the current logged in tronlink account to make an authentication using tronlink for my dapp. Using metamask and web3 i can get the current active account on MetaMask using:

const userPublicAddress = web3.eth.coinbase

What's the similar way of doing it with tronweb and tronlink? I havent found about this in the docs.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Marcelo Fonseca
  • 1,705
  • 2
  • 19
  • 38

1 Answers1

5
const publicAddress = tronWeb.defaultAddress.base58
Marcelo Fonseca
  • 1,705
  • 2
  • 19
  • 38