Moralis.link()function. Once an address is linked to the user, Moralis will pull all transactions, ERC20 tokens, and NFTs for those addresses as well. This way all user transactions can be gathered together in one place.
link()to an address already associated with a user will throw an error. You can see which addresses the user has already linked by querying the
user.attributes.accountsarray (which will be
undefinedif the user has not yet linked or authenticated an address).