2

I have tx hash and I would like to see how much ERC20 tokens was sent in this transaction.

How can I do this with web3.js?

Thank you.

1

First search for the txn dict by txn hash, where you can access the bytecode attached to that txn dict. Then you will need the ERC20 ABI in order to decode that bytecode. The functions in the ABI you should be looking for are either transferFrom or transfer, those 2 functions involve transfer of tokens.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.