2

i want to get the token's transferring value like this: https://etherscan.io/address/0x27054b13b1b798b345b591a4d22e6562d47ea75a#tokentxns

How can obtain the value of erc20 token in transaction? https://etherscan.io/tx/0x4d2705650c17cec7703ea1d44c846fa41029b400c742bec2251c95e9bebfd037 Where and how can i get the value : "1,011.1323"

Thanks

1 Answers1

3

Actually you can read the "data" field in transaction receipt.

  1. Fetch transaction receipt by ethGetTransactionReceipt(txHash)

  2. Remove prefix 0x from the string.

  3. Use FunctionReturnDecoder or similar to decode value from the string to the BigInteger.

Result value should be the token's transfer value