Chia RPC

Harvester

addPlotDirectory

Add a plot directory to the harvester configuration.

Add a plot directory to the harvester configuration.

post

/add_plot_directory

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/add_plot_directory" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

deletePlot

Permanently delete a plot file.

Permanently delete a plot file.

post

/delete_plot

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/delete_plot" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

getHarvesterConfig

Gets harvester configuration.

Gets harvester configuration.

post

/get_harvester_config

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_harvester_config" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getPlotDirectories

Get the list of plot directories from the harvester configuration.

Get the list of plot directories from the harvester configuration.

post

/get_plot_directories

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_plot_directories" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getPlots

Get information about the plots the harvester knows about.

Get information about the plots the harvester knows about.

post

/get_plots

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_plots" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

refreshPlots

Refresh the list of plots.

Refresh the list of plots.

post

/refresh_plots

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/refresh_plots" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

removePlotDirectory

Removes a plot directory from the harvester configuration.

Removes a plot directory from the harvester configuration.

post

/remove_plot_directory

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/remove_plot_directory" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

updateHarvesterConfig

Updates the harvester configuration.

Updates the harvester configuration.

post

/update_harvester_config

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/update_harvester_config" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

Shared

closeConnection

Removes a connection.

Removes a connection.

post

/close_connection

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/close_connection" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

fullNodeGetNetworkInfo

Retrieves some information about the current network.

Retrieves some information about the current network.

post

/get_network_info

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_network_info" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getConnections

Retrieve the list of connections.

Retrieve the list of connections.

post

/get_connections

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_connections" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getRoutes

Retrieve the list of routes exposed by the service.

Retrieve the list of routes/endpoints exposed by the service.

post

/get_routes

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_routes" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getVersion

Get the installed version of chia at the endpoint.

Get the installed version of chia at the endpoint.

post

/get_version

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/get_version" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

healthz

Heartbeat.

Heartbeat.

post

/healthz

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/healthz" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

openConnection

Add a connection to another node.

Add a connection to another node.

post

/open_connection

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/open_connection" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

stopNode

Stop the node.

Stop the node.

post

/stop_node

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8560/stop_node" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values