0

Hello i have following kvp:

{
  gas: "0xd9c5"
}

But the ABI do not have gas func and the interface is not able to decode it, any idea how to decode the gas to extract the value when is missing from the ABI/Interface

1
  • Sorry, what is kvp and where are you planning to use this? Maybe share a bit more code? Aug 10 at 7:07
0

This gas value is an hexadecimal number.

You can manually convert hex numbers to decimals online (here is an example).

I don't know what framework you use, but this can also be done easily within your app. For instance, in javascript you could do parseInt("0xd9c5").

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.