Skip to main content
Version: 2.0

Return Public Key Bytes

This takes in either the SS58 address or the public key of an Aventus account and returns the public key bytes of the account.

// Return the Public Key Bytes
API.utils.addressToPublicKeyBytes(<acct>);
All API utils also work in offline mode.

Example Result

Uint8Array(32) [
94, 55, 145, 248, 243, 62, 175,
139, 43, 40, 170, 196, 114, 189,
119, 130, 225, 117, 65, 58, 252,
173, 91, 147, 157, 55, 115, 254,
139, 156, 70, 119
]