Chia RPC

DataLayer

addMissingFiles

Complete the data server files.

Complete the data server files.

post

/add_missing_files

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/add_missing_files" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

batchUpdate

Applies a batch of updates.

Applies a batch of updates.

post

/batch_update

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/batch_update" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

createDataStore

Creates a data store.

Creates a data store.

post

/create_data_store

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/create_data_store" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

deleteKey

Removes a list of rows.

Removes a list of rows.

post

/delete_key

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/delete_key" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getAncestors

Gets the list of ancestors for a given id/hash pair.

Gets the list of ancestors for a given id/hash pair.

post

/get_ancestors

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_ancestors" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getKeys

Get the keys for a given id/root_hash pair.

Get the keys for a given id/root_hash pair.

post

/get_keys

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_keys" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getKeysValues

Get the keys and values for a given id/root_hash pair.

Get the keys and values for a given id/root_hash pair.

post

/get_keys_values

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_keys_values" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getKvDiff

Get kv diff between two root hashes.

Get kv diff between two root hashes.

post

/get_kv_diff

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_kv_diff" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getLocalRoot

Gets hash of latest tree root saved in our local datastore.

Gets hash of latest tree root saved in our local datastore.

post

/get_local_root

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_local_root" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getOwnedStores

Gets the list of owned store ids.

Gets the list of owned store ids.

post

/get_owned_stores

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_owned_stores" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getRoot

Gets hash of latest tree root.

Gets hash of latest tree root.

post

/get_root

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_root" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getRootHistory

Get history of state hashes for a store.

Get history of state hashes for a store.

post

/get_root_history

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_root_history" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getRoots

Gets state hashes for a list of roots

Gets state hashes for a list of roots.

post

/get_roots

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_roots" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getSyncStatus

Gets the sync status of a store.

Gets the sync status of a store.

post

/get_sync_status

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_sync_status" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

getValue

Get the value for a given id/key pair.

Get the value for a given id/key pair.

post

/get_value

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_value" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

insert

Adds a list of clvm objects as bytes to add to table.

Adds a list of clvm objects as bytes to add to table.

post

/insert

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/insert" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

walletLogIn

Logs into the wallet.

Logs into the wallet.

post

/wallet_log_in

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/wallet_log_in" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

Mirrors

addMirror

Adds a mirror.

Adds a mirror.

post

/add_mirror

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/add_mirror" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

deleteMirror

Deletes a mirror.

Deletes a mirror.

post

/delete_mirror

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/delete_mirror" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

getMirrors

Gets the mirrors for a given store id.

Gets the mirrors for a given store id.

post

/get_mirrors

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/get_mirrors" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Offers

cancelOffer

Cancels an offer.

Cancels an offer.

post

/cancel_offer

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/cancel_offer" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

makeOffer

Makes an offer.

Makes an offer.

post

/make_offer

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/make_offer" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

takeOffer

Takes an offer.

Takes an offer.

post

/take_offer

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/take_offer" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

verifyOffer

Verifies an offer.

Verifies an offer.

post

/verify_offer

Usage

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

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

getConnections

Retrieve the list of connections.

Retrieve the list of connections.

post

/get_connections

Usage

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

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

Subscriptions

checkPlugins

Checks the status of plugins.

Checks the status of plugins.

post

/check_plugins

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/check_plugins" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

clearPendingRoots

Clears pending roots.

Clears pending roots.

post

/clear_pending_roots

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/clear_pending_roots" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

removeSubscriptions

Removes subscriptions for the given id.

Removes subscriptions for the given id.

post

/remove_subscriptions

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/remove_subscriptions" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

subscribe

Subscribe to singleton.

Subscribe to singleton.

post

/subscribe

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/subscribe" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values

subscriptions

List current subscriptions.

List current subscriptions.

post

/subscriptions

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/subscriptions" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

unsubscribe

Unsubscribe from singleton.

Unsubscribe from singleton.

post

/unsubscribe

Usage

curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.crt \
--key ~/.chia/mainnet/config/ssl/data_layer/private_data_layer.key  \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:8562/unsubscribe" \
-d "{}"

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK response without return values