Chia RPC

Crawler

getIpsAfterTimestamp

Retrieves ip addresses of peers that have connected after a given time.

Retrieves ip addresses of peers that have connected after a given time.

post

/get_ips_after_timestamp

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/get_ips_after_timestamp" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getPeerCounts

Retrieves aggregate information about peers.

Retrieves aggregate information about peers.

post

/get_peer_counts

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/get_peer_counts" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Shared

closeConnection

Removes a connection.

Removes a connection.

post

/close_connection

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/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/crawler/private_crawler.crt \
--key ~/.chia/mainnet/config/ssl/crawler/private_crawler.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8561/stop_node" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values