[solved] How to create ethAddress and accounts in parse server with Moralis?

I have website with nextjs implement login Moralis via provider Web3auth.io(Google, Facebook,…).
After login success, I have ethAddress in databases. Everything is OK.
My problems:
I have build Mobile app with Unity and implement login with Web3auth.io. After authen via Web3auth success, web3auth.io sent to me idToken.

I verify idToken with Web3auth.io success and call api to parse server create user and session is OK.
But I don’t know how to get wallet address for field ethAddress , in idToken payload just have public_key. I could not found address from payload idToken(JWT) from Web3auth.


It could be a way to extract the wallet address from the public key

Try to search on google how to get the eth address from the public key

1 Like

I thought we can generate wallet address from private key, I don’t sure can generate wallet address from public key

You can generate the public key form the private key and the address form the public key

1 Like

I got it, thanks bro very much. Got address from public key. :slight_smile:

1 Like

Hi, Gordon. I am happy to hear we were able to help you out; may I know how are you finding moralis services so far?

Hi Mauro,

I hear about Moralis service from my friends

Amazing to hear, I meat to ask how are you finding our services from the development side; has moralis been able to help you to achieve what you wanted to build?

1 Like

Yes bro, Moralis so awesome :slight_smile:

I want to build site game with webgl login via web3

Thank you for the compliment! :grinning_face_with_smiling_eyes:

Could you please leave a review on our Trustpilot about the Moralis services and the support you have received from us? It will mean a lot for us to spread the positive word; as you can see, we don’t have many reviews as of yet.

You can find out Trustpilot here - https://www.trustpilot.com/review/moralis.io

Let me know if there’s anything I can do for you. Thanks a lot!

1 Like

sure bro :).
I will rate Moralis service 5 star

1 Like