Hey.
- In
{ user, account } = useMoralis()
, what’s the difference betweenaccount
anduser
? What is each one for? - How do I get the wallet address of an authenticated user?
Hey.
{ user, account } = useMoralis()
, what’s the difference between account
and user
? What is each one for?The user
is the whole user object which includes user data from the moralis database while address
is only the wallet address of the connected user
you can either use address
or user.get("ethAddress")
, both will work