Skip to content

Address⚓︎

Address
Represents a NEM address.

Extends⚓︎

Constructors⚓︎

new Address()⚓︎

new Address(addressInput): Address

Creates a NEM address.

Parameters⚓︎

Parameter Type Description
addressInput string | Uint8Array<ArrayBufferLike> | Address Input string, byte array or address.

Returns⚓︎

Address

Overrides⚓︎

ByteArray.constructor

Properties⚓︎

Property Modifier Type Description Inherited from
bytes public Uint8Array<ArrayBuffer> Underlying bytes. ByteArray.bytes
ENCODED_SIZE static number Length of encoded address string. -
NAME static string Byte array name (required because constructor.name is dropped during minification). ByteArray.NAME
SIZE static number Byte size of raw address. -

Methods⚓︎

toJson()⚓︎

toJson(): string
Address.toJson
Returns representation of this object that can be stored in JSON.

Returns⚓︎

string

JSON-safe representation of this object.

Inherited from⚓︎

ByteArray.toJson


toString()⚓︎

toString(): string
Address.toString
Returns string representation of this object.

Returns⚓︎

string

String representation of this object

Inherited from⚓︎

ByteArray.toString