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?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
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.