You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bot] File and author data updated, validated and updated internal links, formatted md content, checked presence of file and dirs based on sidebar, checked presence of h1 in every file, update Komodo DeFi Framework methods table, adds/updates preview images when base is main
Copy file name to clipboardexpand all lines: data-for-gpts/komodefi-api/legacy-api-content.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -3851,7 +3851,7 @@ The `my_swap_status` method returns the data of an atomic swap executed on an Ko
3851
3851
| error\_events | array of strings | a list of events that fell into an `error` swap state; if at least 1 of the events happens, the swap is considered a failure |
3852
3852
| type | string | whether the node acted as a market `Maker` or `Taker` |
3853
3853
| uuid | string | swap uuid |
3854
-
| gui | string (optional) | information about gui; copied from Komodo DeFi Framework API configuration (MM2.json) |
3854
+
| gui | string (optional) | information about gui; copied from Komodo DeFi Framework API configuration in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) |
3855
3855
| mm\_version | string (optional) | Komodo DeFi Framework API version |
You can define a different location for the DB folder via the [`dbdir` configuration parameter](/komodo-defi-framework/setup/configure-mm2-json/) in your MM2.json file.
6118
+
There is also a sqlite database named `MM2.db` which [can be queried for information related to swaps, transactions and other information](/komodo-defi-framework/tutorials/query-the-mm2-database/).
6119
+
6120
+
There are a variety of methods to query sqlite databases. Examples below show how to do a sqlite query in Linux terminal, but first you might need to install sqlite with `sudo apt install sqlite3`.
6121
+
6122
+
The tables and columns available to query in KOMODEFI.db are as follows:
6123
+
6100
6124
## NFT List tables
6101
6125
6102
6126
The COIN\_nft\_list tables contain the NFTs that you own
@@ -9769,11 +9793,11 @@ The request was failed due to a Komodo DeFi Framework API internal error.
9769
9793
}
9770
9794
```
9771
9795
export const title = "Komodo DeFi Framework Method: Add Node to Version Stat";
9772
-
export const description = "The add_node_to_version_stat method adds a Node's name, IP address and PeerID to a local database to track which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running.";
9796
+
export const description = "The add_node_to_version_stat method adds a Node's name, IP address and PeerID to a local database to track which version of KDF it is running.";
9773
9797
9774
9798
# add\_node\_to\_version\_stat
9775
9799
9776
-
The `add_node_to_version_stat` method adds a Node's name, IP address and PeerID to a local database to track which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV". The address parameter is the node's IP address or domain names. The Peer ID can be found in the MM2 log file after a connection has been initiated, and looks like the below:
9800
+
The `add_node_to_version_stat` method adds a Node's name, IP address and PeerID to a local database to track which version of KDF it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV". The address parameter is the node's IP address or domain names. The Peer ID can be found in the KDF log file after a connection has been initiated, and looks like the below:
9777
9801
9778
9802
`07 09:33:58, atomicdex_behaviour:610] INFO Local peer id: PeerId("12D3KooWReXsTVCKGAna1tzrD1jaUttTSs17ULFuvvzoGD9bqmmA")
9779
9803
`
@@ -10455,11 +10479,11 @@ The `peer_connection_healthcheck` method checks if a peer is connected to the KD
10455
10479
}
10456
10480
```
10457
10481
export const title = "Komodo DeFi Framework Method: Remove Node from Version Stat";
10458
-
export const description = "The remove_node_from_version_stat method removes a Node from the local database that tracks which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running.";
10482
+
export const description = "The remove_node_from_version_stat method removes a Node from the local database that tracks which version of KDF it is running.";
10459
10483
10460
10484
# remove\_node\_from\_version\_stat
10461
10485
10462
-
The `remove_node_from_version_stat` method removes a Node (by name) from the local database which tracks which version of [KDF](https://github.com/KomodoPlatform/komodo-defi-framework) it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV".
10486
+
The `remove_node_from_version_stat` method removes a Node (by name) from the local database which tracks which version of KDF it is running. The name parameter is an arbitrary identifying string, such as "seed\_alpha" or "dragonhound\_DEV".
0 commit comments