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
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
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
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
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
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
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
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
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
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
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getProof
Retrieves a proof.
Retrieves a proof.
post
/get_proof
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_proof" \
-d "{}"
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
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
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
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
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
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
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
multistoreBatchUpdate
Applies a batch of updates, across 1:n stores.
Applies a batch of updates, across 1:n stores.
post
/multistore_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/multistore_batch_update" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response without return values
submitAllPendingRoots
Submits all pending roots.
Submits all pending roots.
post
/submit_all_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/submit_all_pending_roots" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
submitPendingRoot
Submits a pending root.
Submits a pending root.
post
/submit_pending_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/submit_pending_root" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
verifyProof
Verifies a proof.
Verifies a proof.
post
/verify_proof
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_proof" \
-d "{}"
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
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
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
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
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
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
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
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
Name | Description |
---|---|
body * |