Link ETH Address to SOL Address

Hi, please refer me if I’m asking something redundant.

I’d like to carry out this flow:

  1. Login/Authenticate with SOL/Phantom
  2. If SOL address is on list, auth with ETH
  3. Queue ETH Mint.

For data-tidyness, I’d like to store both solAddress and ethAddress in the same user. Can anyone offer advice on how to link ETH to a pre-existing SOL user?

You can use Moralis.link to connect eth to logged-in sol account.
await Moralis.link(ethaddressHere);

You will need to get the eth address separately and pass it to await Moralis.link()

2 Likes