[SOLVED] How To Show Current User Address with Moralis

Moralis.User.currentAsync().then(function(user) {
   var wallet = user.get('ethAddress');
   document.getElementById('address').innerHTML = wallet
});

P.S

Copy and paste this code where you want to show in your html page

<div id="address" class="text-muted my-3"></div>

1 Like