FUNCTION
eth_pubkey_to_address
function eth_pubkey_to_address(pubkey: byte_array): byte_arrayCompute a 20-byte Ethereum address from a public key.
Accepts valid public keys of size 33, 64 or 65 bytes. Note that not all byte arrays of
acceptable length constitute valid public keys.
Parameters
- pubkey — the public key (33, 64 or 65 bytes)
Throws
exception— when - the given byte array does not have length33,64or65- the given byte array is not a valid public key
Since
0.13.5
© 2026 Chromia