Skip to main content
Version: 2.4

Return Public Key Bytes

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

// Return the Public Key Bytes
API.utils.convertToPublicKeyBytes(<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
]