coins_needed_for_kick_start
coins_needed_for_kick_start()
If the Komodo DeFi Framework API is stopped while making a swap/having the active order it will attempt to kick-start them on next launch and continue from the point where itβs stopped. coins_needed_for_kick_start returns the tickers of coins that should be activated ASAP after the Komodo DeFi Framework API is started to continue the interrupted swaps. Consider calling this method on Komodo DeFi Framework API startup and activate the returned coins using enable or electrum methods.
Arguments
| Structure | Type | Description |
|---|---|---|
| (none) |
Response
| Structure | Type | Description |
|---|---|---|
| result | array of strings | tickers of coins that should be activated to kick-start swaps and orders |
π Examples
Command
POST coins_needed_for_kick_start
{
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
} curl --url "http://127.0.0.1:7783" --data '{
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
}' import requests
import json
url = "http://127.0.0.1:7783"
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
}
response = requests.post(url, json=payload)
print(json.dumps(response.json(), indent=2)) const payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
};
const response = await fetch("http://127.0.0.1:7783", {
method: "POST",
body: JSON.stringify(payload),
});
console.log(await response.json()); <?php
$payload = <<<'JSON'
{
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
}
JSON;
$ch = curl_init("http://127.0.0.1:7783");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response; package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{"userpass":"RPC_UserP@SSW0RD","method":"coins_needed_for_kick_start"}`)
resp, err := http.Post("http://127.0.0.1:7783", "application/json", bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
} require 'net/http'
require 'json'
require 'uri'
uri = URI("http://127.0.0.1:7783")
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "coins_needed_for_kick_start"
}
response = Net::HTTP.post(uri, payload.to_json, 'Content-Type' => 'application/json')
puts JSON.pretty_generate(JSON.parse(response.body)) Show Response
Response (BTC and KMD should be activated ASAP in this case)
{ "result": ["BTC", "KMD"] }Response (no swaps and orders waiting to be started)
{ "result": [] }