1

enter image description here

in this img you seen 570.1777 ext TRANSFER by function
i want now how can convert this amount to arguments easy

3

"1ee8ce2ce2ba93bc60" in hexadecimal is 570177717225592700000 in decimal.

ETH has 18 "decimal places", so your number is 570177717225592700000 / 10^18.

In the geth console, you can type the following to get the number:

> new BigNumber("1ee8ce2ce2ba93bc60", 16)
570177717225592700000

And you can shift the "decimal places" 18 places using the following command in the geth console:

> new BigNumber("1ee8ce2ce2ba93bc60", 16).shift(-18)
570.1777172255927

To go the other way around, you can convert from the ETH number to the raw decimal number:

> web3.toWei(570.1777172255927, "ether")
"570177717225592700000"

And you can convert this to the hexadecimal number using:

> web3.toHex(web3.toWei(570.1777172255927, "ether"))
"0x1ee8ce2ce2ba93bc60"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.