You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an EVM user, I'd like to know the account's EVM address and search by it regardless of which type mentioned in HIP-583 it is.
Solution
In the response of /api/v1/accounts and /api/v1/accounts/{id}, if the alias field is a 40 character (20 bytes) EVM address and evm_address field is null, populate evm_address with the alias
In the response of /api/v1/accounts and /api/v1/accounts/{id}, populate the evm_address field with the account num alias (i.e. long zero entity id) form if it's null and not the scenario from above
In all /api/v1/accounts/{id}/* APIs, if the ID in the request is an EVM address with all zero prefix to indicate it's an account num alias then convert to an entity ID and lookup using that
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Problem
As an EVM user, I'd like to know the account's EVM address and search by it regardless of which type mentioned in HIP-583 it is.
Solution
/api/v1/accounts
and/api/v1/accounts/{id}
, if thealias
field is a 40 character (20 bytes) EVM address andevm_address
field is null, populateevm_address
with the alias/api/v1/accounts
and/api/v1/accounts/{id}
, populate theevm_address
field with theaccount num alias
(i.e. long zero entity id) form if it's null and not the scenario from above/api/v1/accounts/{id}/*
APIs, if the ID in the request is an EVM address with all zero prefix to indicate it's anaccount num alias
then convert to an entity ID and lookup using thatAlternatives
No response
The text was updated successfully, but these errors were encountered: