Members
localDaemonConnection
This can be found in the config but here for convenience.
- Source:
Methods
getConfigRootDir(net)
The root path to where the config file and certs are stored.
Parameters:
Name | Type | Description |
---|---|---|
net |
string | The name of the network and ~/.chia/ file path to find the config file. |
Returns:
The fully qualified path to the default config file.
getPayloadDescriptor(service, endpoint)
Returns the descriptor of the response object schema in OpenAPI format.
Parameters:
Name | Type | Description |
---|---|---|
service |
string | The name of the chia rpc service. |
endpoint |
string | The endpoint on that service. |
- Source:
Returns:
The schema property of the requestBody, if present.
loadUIConfig(net)
Loads the daemon connection details from the default config's ui section.
Parameters:
Name | Type | Description |
---|---|---|
net |
string | The name of the network and ~/.chia/ file path to find the config file. |
Returns:
Connection details.
makePayload(service, endpoint)
Creates an object that matches the given endpoint's request schema.
Parameters:
Name | Type | Description |
---|---|---|
service |
string | The name of the chia rpc service. |
endpoint |
string | The endpoint on that service. |
- Source:
Returns:
An object instance matching the payload schema with default poperty values set.