Methods
(inner) config(paramsopt) → {Promise}
Retrieve a list of parameters for interacting with the API.
Example
const { mesta, data } = await pnut.config();
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
Additional URI parameters |
Returns:
- Type
- Promise
(inner) stats(paramsopt) → {Promise}
Retrieve basic statistics for the network.
Example
const { meta, data } = await pnut.stats();
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
Additional URI parameters |
Returns:
- Type
- Promise