Skip to content

Decode transaction input params #845

Discussion options

You must be logged in to vote

OK, figured it out :)

For the recepient ("to") I had to reference

decodeAbiParameters([{
            type: 'uint256',
            name: 'amount'
        }], transactionData.logs[0].topics[2]))

and for "amount"

decodeAbiParameters([{
            type: 'uint256',
            name: 'amount'
        }], transactionData.logs[0].data)

Hope it helps someone else!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by milaabl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants