Can I use the result of a Moralis transfer to verify that erc20 tokens were sent?

I have a dapp that transfers tokens fine to another party from contract . Can I verify from the result of the transfer ?

let result = await (Moralis as any).transfer(options);


Hi @ericnickus

This type of logic should be handled by a smart contract, not in the frontend.

if you get the transaction hash, you could check if that transaction was confirmed after some time, but sometimes it could take considerable time until a transaction gets confirmed.

you could also try to use events as .on('confirmation' but you don’t have the guarantee that you’ll get that event triggered every time.

Thanks guys very much