Version: 0.14.0

Class: Contact

"Contact".Contact

Hierarchy#

  • Contact

Constructors#

constructor#

+ new Contact(params: { provider: TLProvider ; user: User }): Contact

Defined in src/Contact.ts:8

Parameters:#

NameType
params{ provider: TLProvider ; user: User }

Returns: Contact

Methods#

createLink#

createLink(address: string, options?: { [key:string]: string; customBase?: string ; name?: string ; subject?: string }): string

Defined in src/Contact.ts:29

Creates sharable contact link.

Parameters:#

NameTypeDescription
addressstringAddress of contact to share.
options?{ [key:string]: string; customBase?: string ; name?: string ; subject?: string }Optional options[key] - additional params that will be appended options.name - optional user name options.subject - optional message for the recipient of the request options.customBase - Optional custom base for link. Defaults to trustlines://.

Returns: string


getAll#

getAll(networkAddress: string): Promise<string[]>

Defined in src/Contact.ts:15

Parameters:#

NameType
networkAddressstring

Returns: Promise<string[]>