I have an Oraclize call that returns the following (a string):


Now this is 1000 (bytes32 hex)

You can check here: https://www.rapidtables.com/convert/number/hex-to-decimal.html

Now the question is how do I read/convert this to 1000 in solidity?

1 Answer 1


This answer may be what your looking for, it converts a hex string into bytes and gets the decimal value. Let me know if I understood your question wrong.


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.