Download OpenAPI specification:Download
The Chia node and services come with a JSON RPC API server that allows you to access information and control the services. These are accessible via HTTPS, WebSockets, or via client SDKs. The ports can be configured in ~/.chia/mainnet/config/config.yaml
. The RPC ports should not be exposed to the internet. TLS certificates are used to secure the communication using mutualTLS.
The harvester uses port 8560 by default.
The harvester RPC API is exposed, by default, on port 8560 and contains methods for managing plot files and directories.
Add a plot directory to the harvester configuration.
The directory name to add
dirname required | string |
{- "dirname": "string"
}
{- "success": true,
- "error": "string"
}
Removes a plot directory from the harvester configuration.
The directory name to remove
dirname required | string |
{- "dirname": "string"
}
{- "success": true,
- "error": "string"
}
Get the list of plot directories from the harvester configuration.
Empty request body
{ }
{- "directories": [
- "string"
], - "success": true,
- "error": "string"
}
Get information about the plots the harvester knows about.
Empty request body
{ }
{- "failed_to_open_filenames": [
- "string"
], - "not_found_filenames": [
- "string"
], - "plots": [
- {
- "file_size": 0,
- "filename": "string",
- "plot_id": "string",
- "plot_public_key": "string",
- "pool_contract_puzzle_hash": "string",
- "pool_public_key": "string",
- "size": 25,
- "time_modified": 0
}
], - "success": true,
- "error": "string"
}
Permanently delete a plot file.
the file name of the plot
filename required | string |
{- "filename": "plot-k33-2021-06-12-03-55-1d5a2afe637578d6c9dfa04484854831012b678921a8dce5a8aee9c0fd3c1470.plot"
}
{- "success": true,
- "error": "string"
}
Gets harvester configuration.
Empty request body
{ }
{- "use_gpu_harvesting": true,
- "gpu_index": 0,
- "enforce_gpu_index": true,
- "disable_cpu_affinity": true,
- "parallel_decompressor_count": 0,
- "decompressor_thread_count": 0,
- "recursive_plot_scan": true,
- "refresh_parameter_interval_seconds": 0,
- "success": true,
- "error": "string"
}
Updates the harvester configuration.
Config details
use_gpu_harvesting | boolean |
gpu_index | integer <int> |
enforce_gpu_index | boolean |
disable_cpu_affinity | boolean |
parallel_decompressor_count | integer <int> |
decompressor_thread_count | integer <int> |
recursive_plot_scan | boolean |
refresh_parameter_interval_seconds | integer <uint32> |
{- "use_gpu_harvesting": true,
- "gpu_index": 0,
- "enforce_gpu_index": true,
- "disable_cpu_affinity": true,
- "parallel_decompressor_count": 0,
- "decompressor_thread_count": 0,
- "recursive_plot_scan": true,
- "refresh_parameter_interval_seconds": 0
}
{- "success": true,
- "error": "string"
}