Version: 0.15.0
Class: Contact
"Contact".Contact
#
Hierarchy- Contact
#
Constructors#
constructor+ new Contact(params
: { provider: TLProvider ; user: User }): Contact
Defined in src/Contact.ts:8
#
Parameters:Name | Type |
---|---|
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:Name | Type | Description |
---|---|---|
address | string | Address 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:Name | Type |
---|---|
networkAddress | string |
Returns: Promise<string[]>