Skip to main content

Class: Address

The base class for addresses.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Address(type)

Parameters

NameTypeDescription
typeAddressTypeThe type of the address.

Properties

type

Readonly type: AddressType

Methods

getType

getType(): AddressType

Get the type of address.

Returns

AddressType


toString

Abstract toString(): string

Returns

string


parse

Static parse(data): Address

Parse an address from a JSON string.

Parameters

NameType
dataany

Returns

Address