Does encodeABI() just do a decimal to hex encoding or is something more going on under the hood?


2 Answers 2


There is more to the encoding tan just hexing.
The details of what is going on under the hood are explained here: https://solidity.readthedocs.io/en/develop/abi-spec.html#


this function gives you the encoded ABI form of a function and its parameters, it will be helpful if you are constructing a raw transaction or to send this form in a sendtransaction or call exp :

eth.sendTansaction({from:primary, data: your_function.encodeABI()})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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