Hey there,
Iâm a little confused on the most optimized way to do the following:
I would like to sync the balances of my linked users so I can subscribe to that class and get live updates on their balances. I only really care about saving the balances of my ERC20 token and my NFTâs.
- Should I add my contracts (ERC20 + NFTs) to the âSync and Watch Addressâ plugin?
- Should I use the âSync Historicalâ feature for this? And what limit of historical events should I set?
At https://v1docs.moralis.io/moralis-dapp/automatic-transaction-sync/historical-transactions#collection-schema it says âMoralis Server will populate the following set of collections for each blockchain synced by the Moralis Server.â (xxxTransactions, xxxTokenTransfers, xxxTokenBalances, xxxNFTTransfers, xxxNFTOwners)
But I can only see âxxxTokenTransfersâ and âxxxTransactionsâ after adding my ERC20 contract to the âSync and Watch Addressâ plugin with a âSync Historicalâ of 500.
Iâm also adding my userâs wallets with code:
await Moralis.Cloud.run("watchBscAddress", {
address: lowerCaseAddress,
}, { useMasterKey: true });
Is there anything Iâm doing wrong?
Thanks In Advance!