Best way to decode Transaction's input #1817
Unanswered
stefanofornari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to retrieve and show all token transfer transactions for a given address. I get the transactions and I need to parse the raw input, which I understand is the result of the function:
The raw Transaction's input data is:
I found the class org.web3j.abi.FunctionReturnDecoder and it seems to be helpful to parse the parameters, but it breaks if I use the full input (where the first 4 bytes are the function).
Is there in web3j a good way to parse the entire raw data? Or shall I use FunctionReturnDecoder stripping the leading bytes?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions