Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to decode input data from transaction #6

Closed
runryan opened this issue Aug 26, 2018 · 1 comment
Closed

how to decode input data from transaction #6

runryan opened this issue Aug 26, 2018 · 1 comment
Labels
question Further information is requested

Comments

@runryan
Copy link

runryan commented Aug 26, 2018

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 decoded_input_data@2x.png…](decoded input data)
How can I achieve this goal? A convenient function demo is expected.
Input Data url

@skywinder skywinder added the question Further information is requested label Aug 28, 2018
@shamatar
Copy link
Contributor

Please refer to the web3swift_contractV2_Tests in the source code, it has two examples of how to decode the input data. Those examples are for ERC20 input data actually

TonioMacaronio added a commit that referenced this issue Dec 21, 2018
Added erc1400 precompiled contract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants