getAccountIdentifierFromAddress
getAccountIdentifierFromAddress(
address):string
Creates an account identifier from a given account address.
Parameters
Section titled “Parameters”• address: string
The account address used to derive the identifier.
Returns
Section titled “Returns”string
The account identifier, which is the address prefixed with a standard identifier prefix.
Remarks
Section titled “Remarks”This function takes an account address and appends a predefined prefix (if not already present) to generate a standardized account identifier. It ensures that all account identifiers have a consistent format.
Example
Section titled “Example”const accountAddress = '0x1234...';const identifier = getAccountIdentifierFromAddress(accountAddress);console.log('Account Identifier:', identifier);