-
Notifications
You must be signed in to change notification settings - Fork 68
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
Incompatible toAddress in JSON RPC response #2128
Comments
could you provide an example or examples? a JSON RPC Request and Response of what the Hedera JSON RPC Relay is returning and what is the expected response? |
Seems partially fixed, but some API responses such as |
Thanks @simsonraj Also is there a reason your tooling cannot handle the address value as the use of this address value should work for calls. Additionally please give this a page a read https://docs.hedera.com/hedera/core-concepts/smart-contracts/hederas-evm-equivalence-goals-and-exceptions |
@Nana-EC : To answer why we expect uniformity in the address fields for two reasons,
Further question on top of this is, are you saying if I query with params which are of Addresses type with Hedera Account format |
Thanks @simsonraj that's helpful. |
Yes, correct, if you query via the Hedera Account Num Alias form (e.g. 0x000000000000000000000000000000000035eeb8) or the evm address form (e.g. 0x51e3b84966c042c278deb61564c106b6b82af792) the response data should be correct. Example both returned the following (at the time of query) Hedera has more expressive API besides the JSON RPC. Note, not all accounts will have a valid evm_address which is why the long zero address format exists For more information you can read HIP 583 |
@simsonraj have you experienced the same behavior in any other APIs in addition to |
Problem
JSON RPC responses return inconsistent address formats. Chainlink recommends fixing the toAddress address format.
Solution
Need your help to find solution
Alternatives
No response
The text was updated successfully, but these errors were encountered: