- Source:
Methods
(async, static) current(networkopt, hostopt, retryOptionsopt) → {Object}
Cut the current cut from a chainweb node
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
network |
string |
<optional> |
"mainnet01" | chainweb network | ||||||||||
host |
string |
<optional> |
"https://api.chainweb.com" | chainweb api host | ||||||||||
retryOptions |
Object |
<optional> |
retry options object as accepted by the retry package
Properties
|
- Source:
Returns:
cut hashes object
- Type
- Object
(async, static) peers(networkopt, hostopt, retryOptionsopt)
Page of P2P peers of the cut network
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
network |
string |
<optional> |
"mainnet01" | chainweb network | ||||||||||
host |
string |
<optional> |
"https://api.chainweb.com" | chainweb api host | ||||||||||
retryOptions |
Object |
<optional> |
retry options object as accepted by the retry package
Properties
|
- Source:
Returns:
{Object[ Page of peer objects. The size of a page is determined by the server.
(async, static) peers(networkopt, hostopt, retryOptionsopt) → {Array.<Object>}
P2P peers of the cut network
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
network |
string |
<optional> |
"mainnet01" | chainweb network | ||||||||||
host |
string |
<optional> |
"https://api.chainweb.com" | chainweb api host | ||||||||||
retryOptions |
Object |
<optional> |
retry options object as accepted by the retry package
Properties
|
- Source:
Returns:
Array of peer objects
- Type
- Array.<Object>