Skip to content

how to decode input data from transaction #6

@runryan

Description

@runryan

I have fetched transactions list from etherscan.io API. I need to decode input data to get the value and the token receiver address for ERC20Token transaction.

for example, the following input data

0xa9059cbb000000000000000000000000066a46470fd976e89303f501b704f73016da101e0000000000000000000000000000000000000000000000000de0b6b3a7640000

should be decoded as the picture showing
![Uploading [email protected]…](decoded input data)
How can I achieve this goal? A convenient function demo is expected.
Input Data url

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions