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
avnSdk.accountUtils.addressToPublicKeyBytes(USER_ADDRESS);
All API utils also work in offline mode.
See the Initialise page for instructions on how to set the API 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
]