Constructor
new URI(optionsopt, nullable)
Create a handshake URI.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
URIOptions | String |
<optional> <nullable> |
Properties:
Name | Type | Description |
---|---|---|
address |
Address | |
amount |
AmountValue | |
label |
String | null | |
message |
String | null | |
request |
String | null |
Members
(nullable) label :String
Type:
- String
(nullable) message :String
Type:
- String
(nullable) request :String
Type:
- String
Methods
(static) fromOptions(options) → {URI}
Instantiate URI from options.
Parameters:
Name | Type | Description |
---|---|---|
options |
URIOptions | String |
Returns:
- Type
- URI
(static) fromString(str, networkopt, nullable) → {URI}
Instantiate uri from string.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
str |
String | ||
network |
NetworkType | Network |
<optional> <nullable> |
Returns:
- Type
- URI
fromOptions(options) → {URI}
Inject properties from options object.
Parameters:
Name | Type | Description |
---|---|---|
options |
URIOptions | String |
Returns:
- Type
- URI
(private) fromString(str, networkopt, nullable) → {URI}
Parse and inject properties from string.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
str |
String | ||
network |
NetworkType | Network |
<optional> <nullable> |
Returns:
- Type
- URI
inspect() → {String}
Inspect handshake uri.
Returns:
- Type
- String
toString() → {String}
Serialize uri to a string.
Returns:
- Type
- String