From 61f947ef959367a51c2b802775c91efa5332cbf1 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sun, 3 Nov 2024 17:14:07 +0800 Subject: [PATCH 1/5] add new mm2 config params --- .../setup/configure-mm2-json/index.mdx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx index 7fdbfb56..16c41905 100644 --- a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx +++ b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx @@ -16,7 +16,6 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas | ---------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | gui | string | Information to identify which app, tool or product is using the API, e.g. `KomodoWallet iOS 1.0.1`. Helps developers identify if an issue is related to specific builds or operating systems etc. | | netid | integer | Nework ID number, telling the Komodo DeFi Framework which network to join. 8762 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. | -| passphrase | string | Your passphrase; this is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8) | | rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. | | allow\_weak\_password | boolean | Optional, defaults to `false`. If `true`, will allow low entropy rpc\_password. If `false` rpc\_password must not have 3 of the same characters in a row, must be between 8-32 characters in length, must contain at least one of each of the following: numeric, uppercase, lowercase, special character (e.g. !#$\*). It also can not contain the word "password", or the chars `<`, `>`, or `&`. | | dbdir | string | Optional, defaults to a subfolder named `DB` in the path of your `mm2` binary. This path will store the Komodo DeFi-API database data. | @@ -33,6 +32,9 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas | https | boolean | Optional. Only used with wss. Defaults to `false`, set to `true` to allow TLS/SSL enabled RPC (e.g. remote queries to a domain with a valid SSL certificate). | | wss\_certs | object | Optional. Contains fields for `server_priv_key` and `certificate` to allow RPC or P2P communications over TLS/SSL. | | event\_stream\_configuration | object | Optional, a standard [EventStreamConfig](/komodo-defi-framework/api/v20/#derivation-method) object. Configuration for subscribing to events. | +| passphrase | string | Optional. Your passphrase (mnemonic phrase) in plain text. This is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8). For more secure, encrypted storage in a local database, use the `wallet_name` and `wallet_password` parameters below. | +| wallet\_name | string | Optional. An arbitrary name for the wallet. If no `passphrase` is provided, and the wallet has been used already, the `wallet_password` will be used to decrypt the local stored mnemonic phrase. If it has not been used before, a mnemonic will be generated and encrypted for local storage. The mnemonic phrase can be seen in plain text using the (/komodo-defi-framework/api/v20/get_mnemonic)[] method. | +| wallet\_password | string | Optional, required if using `wallet_name`. The password use to encrypt your wallet's mnemonic phrase for local storage, and decrypt the wallet when logging in. | #### Example (allowing weak password): @@ -76,6 +78,18 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas } ``` +#### Example with `wallet_name` and `wallet_password` + +```json +{ + "gui": "DEVDOCS_CLI", + "netid": 8762, + "rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd" + "wallet_name": "Gringotts Retirement Fund", + "wallet_password": "Q^wJZg~Ck3.tPW~asnM-WrL" +} +``` + #### Example for HD Wallets: If you are using HD wallets, you will need to set `enable_hd` to `true` in to your `MM2.json` file. From 9353cc6ac19d744514679d893b3a8a5334f4a717 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sun, 3 Nov 2024 17:38:20 +0800 Subject: [PATCH 2/5] adds get_mnemonic method --- .../api/v20/get_mnemonic/index.mdx | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx b/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx new file mode 100644 index 00000000..04f6815b --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx @@ -0,0 +1,106 @@ +export const title = "Komodo DeFi Framework Method: Get Mnemonic"; +export const description = "The get_mnemonic method returns the user's mnemonic seed phrase, in encrypted or plain text format."; + +# get\_mnemonic + +"The get_mnemonic method returns the user's mnemonic seed phrase, in encrypted or plain text format." + +## Arguments + +| Structure | Type | Description | +| --------- | ------ | ------------------------------------------------------------------------------------------------------------------ | +| format | string | Either `encrypted` or `plaintext`. Defaults to `encrypted`. | +| password | string | The password to decrypt your stored mnemonic phrase. Only required if `plaintext` format is requested. | + +#### Response + +| Structure | Type | Description | +| ----------------------- | ------ | -------------------------------------------------------------------------------------------- | +| format | string | Same as the input `format` parameter. | +| mnemonic | string | For `plaintext` requests, the decrypted mnemonic seed phrase | +| encrypted_mnemonic_data | object | For `encrpyted` requests, the encrypted format and ciphertext for the mnemonic seed phrase | + + + +#### 📌 Examples + +#### For encrypted output + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "mmrpc": "2.0", + "method": "get_mnemonic", + "params": { + "format": "encrypted" + }, + "id": 0 + } + ``` + + + + #### Response (success) + + ```json + { + "mmrpc": "2.0", + "result": { + "format": "encrypted", + "encrypted_mnemonic_data": { + "encryption_algorithm": "AES256CBC", + "key_derivation_details": { + "Argon2": { + "params": { + "algorithm": "Argon2id", + "version": "0x13", + "m_cost": 65536, + "t_cost": 2, + "p_cost": 1 + }, + "salt_aes": "CqkfcntVxFJNXqOKPHaG8w", + "salt_hmac": "i63qgwjc+3oWMuHWC2XSJA" + } + }, + "iv": "mNjmbZLJqgLzulKFBDBuPA==", + "ciphertext": "tP2vF0hRhllW00pGvYiKysBI0vl3acLj+aoocBViTTByXCpjpkLuaMWqe0Vs02cb1wvgPsVqZkE4MPg4sCQxbd18iS7Er6+BbVY3HQ2LSig=", + "tag": "TwWXhIFQl1TSdR4cJpbkK2oNXd9zIEhJmO6pML1uc2E=" + } + }, + "id": null + } + ``` + + +#### For plain text output + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "mmrpc": "2.0", + "method": "get_mnemonic", + "params": { + "format": "plaintext", + "password": "Q^wJZg~Ck3.tPW~asnM-WrL" // The password used to encrypt the passphrase when the wallet was created + }, + "id": 0 + } + ``` + + + + #### Response (success) + + ```json + { + "mmrpc": "2.0", + "result": { + "format": "plaintext", + "mnemonic": "unique spy ugly child cup sad capital invest essay lunch doctor know" + }, + "id": null + } + ``` + From 112c707a38025a202776ab717326daec5b57fa59 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sun, 3 Nov 2024 17:41:55 +0800 Subject: [PATCH 3/5] adds get_mnmonic to postman collection --- .../komodo_defi.postman_collection.json | 584 +++++++++++++++++- 1 file changed, 552 insertions(+), 32 deletions(-) diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 8f9d687e..b8920895 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -46,7 +46,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ]\r\n // \"min_connected\": 1, // defaults to 1 when omitted\r\n // \"max_connected\": 3 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ],\r\n \"min_connected\": 1, // defaults to 1 when omitted\r\n \"max_connected\": 3 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -69,7 +69,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ]\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -238,13 +238,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 1 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 1 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -255,7 +261,7 @@ }, "status": "Internal Server Error", "code": 500, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -268,10 +274,17 @@ { "key": "date", "value": "Wed, 30 Oct 2024 10:45:41 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"error\":\"rpc:184] dispatcher_legacy:141] lp_commands_legacy:141] lp_coins:4462] utxo_standard:73] utxo_coin_builder:616] Internal error: manager:132] min_connected (2) must be <= max_connected (1)\"}" + "body": "{\n \"error\": \"rpc:184] dispatcher_legacy:141] lp_commands_legacy:141] lp_coins:4462] utxo_standard:73] utxo_coin_builder:616] Internal error: manager:132] min_connected (2) must be <= max_connected (1)\"\n}" }, { "name": "Error: min < 1", @@ -1340,7 +1353,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "my_tx_history", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_tx_history\",\r\n \"coin\": \"TSIA\"\r\n // \"from_id\": null, // Accepted values: Strings\r\n // \"max\": false,\r\n // \"limit\": 10,\r\n // \"page_number\": 1, // used only if: \"from_id\": null\r\n\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "172" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:46:46 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"transactions\":[],\"limit\":10,\"skipped\":0,\"from_id\":null,\"total\":0,\"current_block\":22780,\"sync_status\":{\"state\":\"NotEnabled\"},\"page_number\":null,\"total_pages\":0}}" + } + ] }, { "name": "send_raw_transaction", @@ -1824,7 +1880,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "max_taker_vol", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"max_taker_vol\",\r\n \"coin\": \"TSIA\"\r\n // \"trade_with\": \"DOC\" // Default: \"coin\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "73" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:44:16 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"numer\":\"85469222999997669\",\"denom\":\"77800000\"},\"coin\":\"TSIA\"}" + } + ] }, { "name": "min_trading_vol", @@ -4590,7 +4689,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"rpc_mode\": \"Default\", // Accepted values: Default, Metamask\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"rpc_mode\": \"Default\", // Accepted values: Default, Metamask\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n },\n {\n \"url\": \"https://node.komodo.earth:8080/polygon\",\n \"komodo_proxy\": true\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4612,7 +4711,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"gui_auth\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"gui_auth\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"gui_auth\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"komodo_proxy\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", "options": { "raw": { "language": "json" @@ -4701,7 +4800,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n },\n {\n \"url\": \"https://node.komodo.earth:8080/polygon\",\n \"komodo_proxy\": true\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4749,7 +4848,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4797,7 +4896,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"gui_auth\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"komodo_proxy\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -5047,7 +5146,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"rpc_urls\": [\r\n \"https://iris.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ],\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ]\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ],\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ]\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5064,13 +5163,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\":[\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\":[\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5081,7 +5186,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5094,10 +5199,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 08:52:01 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591691,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26591691,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" }, { "name": "v2.2.0+", @@ -5106,13 +5218,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5123,7 +5241,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5136,10 +5254,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 09:23:10 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591996,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26591996,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {\n \"ATOM-IBC_IRIS\": {\n \"spendable\": \"0.028306\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"id\": null\n}" }, { "name": "<= v2.1.0", @@ -5148,13 +5273,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"rpc_urls\": [\r\n \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"rpc_urls\": [\r\n \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5165,7 +5296,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5178,10 +5309,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 09:26:35 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26592029,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26592029,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {\n \"ATOM-IBC_IRIS\": {\n \"spendable\": \"0.028306\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"id\": null\n}" }, { "name": "enable_tendermint_with_assets", @@ -5190,13 +5328,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5239,13 +5383,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://cosmos-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://cosmos-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://cosmos-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://cosmos-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://cosmoshub.rpc.stakin-nodes.com/\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://cosmos-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://cosmos-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://cosmos-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://cosmos-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://cosmoshub.rpc.stakin-nodes.com/\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5256,7 +5406,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5269,10 +5419,17 @@ { "key": "date", "value": "Thu, 12 Sep 2024 08:21:46 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"ATOM\",\"address\":\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\",\"current_block\":22148347,\"balance\":{\"spendable\":\"1.003381\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"ATOM\",\n \"address\": \"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\",\n \"current_block\": 22148347,\n \"balance\": {\n \"spendable\": \"1.003381\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" }, { "name": "Activate OSMO", @@ -5281,13 +5438,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"OSMO\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://rpc.osmosis.zone/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis.rpc.stakin-nodes.com\"\r\n },\r\n {\r\n \"url\": \"https://rpc-osmosis-ia.cosmosia.notional.ventures/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://osmosis-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://osmosis-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://osmosis-rpc.alpha.komodo.earth/websocket\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"OSMO\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://rpc.osmosis.zone/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis.rpc.stakin-nodes.com\"\r\n },\r\n {\r\n \"url\": \"https://rpc-osmosis-ia.cosmosia.notional.ventures/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://osmosis-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://osmosis-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://osmosis-rpc.alpha.komodo.earth/websocket\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5298,7 +5461,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5311,10 +5474,17 @@ { "key": "date", "value": "Thu, 12 Sep 2024 08:43:47 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"OSMO\",\"address\":\"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\"current_block\":20733754,\"balance\":{\"spendable\":\"7.994016\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"OSMO\",\n \"address\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\n \"current_block\": 20733754,\n \"balance\": {\n \"spendable\": \"7.994016\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" } ] } @@ -5344,7 +5514,49 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate TSIA", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://sia-walletd.komodo.earth/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "48" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"task_id\":0},\"id\":null}" + } + ] }, { "name": "Activate TSIA status", @@ -5367,7 +5579,49 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate TSIA status", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n\t\"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_sia::status\",\n \"params\": {\n \"task_id\": 0\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "332" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:50:14 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"status\":\"Ok\",\"details\":{\"ticker\":\"TSIA\",\"current_block\":22780,\"wallet_balance\":{\"wallet_type\":\"Iguana\",\"address\":\"addr:c67d77a585c13727dbba57cfc115995beb9b8737e9a8cb7bb0aa208744e646cdc0acc9c9fce2\",\"balance\":{\"spendable\":\"0.000000000000000000000000\",\"unspendable\":\"0.000000000000000000000000\"}}}},\"id\":null}" + } + ] } ] } @@ -7767,7 +8021,273 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_wallet_names", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_wallet_names\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "128" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:28:27 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"wallet_names\":[\"Gringotts Retirement Fund\"],\"activated_wallet\":\"Gringotts Retirement Fund\"},\"id\":null}" + } + ] + }, + { + "name": "get_mnemonic", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "get_mnemonic (encrypted)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"encrypted\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "528" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:28:43 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"format\": \"encrypted\",\n \"encrypted_mnemonic_data\": {\n \"encryption_algorithm\": \"AES256CBC\",\n \"key_derivation_details\": {\n \"Argon2\": {\n \"params\": {\n \"algorithm\": \"Argon2id\",\n \"version\": \"0x13\",\n \"m_cost\": 65536,\n \"t_cost\": 2,\n \"p_cost\": 1\n },\n \"salt_aes\": \"CqkfcntVxFJNXqOKPHaG8w\",\n \"salt_hmac\": \"i63qgwjc+3oWMuHWC2XSJA\"\n }\n },\n \"iv\": \"mNjmbZLJqgLzulKFBDBuPA==\",\n \"ciphertext\": \"tP2vF0hRhllW00pGvYiKysBI0vl3acLj+aoocBViTTByXCpjpkLuaMWqe0Vs02cb1wvgPsVqZkE4MPg4sCQxbd18iS7Er6+BbVY3HQ2LSig=\",\n \"tag\": \"TwWXhIFQl1TSdR4cJpbkK2oNXd9zIEhJmO6pML1uc2E=\"\n }\n },\n \"id\": null\n}" + }, + { + "name": "Error: no password", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "211" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:31:03 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Error parsing request: missing field `password`\",\"error_path\":\"dispatcher\",\"error_trace\":\"dispatcher:112]\",\"error_type\":\"InvalidRequest\",\"error_data\":\"missing field `password`\",\"id\":null}" + }, + { + "name": "Error: Wrong password", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\", // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "392" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:31:46 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Wallets storage error: Error decrypting passphrase: Error decrypting mnemonic: HMAC error: MAC tag mismatch\",\n \"error_path\": \"lp_wallet.mnemonic.decrypt\",\n \"error_trace\": \"lp_wallet:494] lp_wallet:141] mnemonic:125] decrypt:56]\",\n \"error_type\": \"WalletsStorageError\",\n \"error_data\": \"Error decrypting passphrase: Error decrypting mnemonic: HMAC error: MAC tag mismatch\",\n \"id\": null\n}" + }, + { + "name": "get_mnemonic (plaintext)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\", // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n \"password\": \"test\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "139" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:32:26 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"format\":\"plaintext\",\"mnemonic\":\"unique spy ugly child cup sad capital invest essay lunch doctor know\"},\"id\":null}" + } + ] } ] }, From 05f590d778bef00d33d6f3c5b8602acb90e0634d Mon Sep 17 00:00:00 2001 From: smk762 Date: Sun, 3 Nov 2024 17:42:31 +0800 Subject: [PATCH 4/5] adds get_mnemonic to sidebar; linting --- filepathSlugs.json | 11 ++++++++ src/data/sidebar.json | 4 +++ src/pages/komodo-defi-framework/api/index.mdx | 2 ++ .../api/v20/get_mnemonic/index.mdx | 28 +++++++++---------- .../setup/configure-mm2-json/index.mdx | 2 +- 5 files changed, 31 insertions(+), 16 deletions(-) diff --git a/filepathSlugs.json b/filepathSlugs.json index 407f154a..04fcc0fe 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2822,6 +2822,16 @@ "command", "response-success" ], + "src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx": [ + "get-mnemonic", + "arguments", + "response", + "examples", + "for-encrypted-output", + "response-success", + "for-plain-text-output", + "response-success-2" + ], "src/pages/komodo-defi-framework/api/v20/get_public_key/index.mdx": [ "get-public-key", "arguments", @@ -3649,6 +3659,7 @@ "example-allowing-weak-password", "example-not-allowing-weak-password", "example-wss-with-certificates", + "example-with-wallet-name-and-wallet-password", "example-for-hd-wallets", "coins-file-configuration", "optional-environment-variables", diff --git a/src/data/sidebar.json b/src/data/sidebar.json index 168e7fd4..2d9ef6f8 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -483,6 +483,10 @@ "title": "get_public_key_hash", "href": "/komodo-defi-framework/api/v20/get_public_key_hash/" }, + { + "title": "get_mnemonic", + "href": "/komodo-defi-framework/api/v20/get_mnemonic/" + }, { "title": "get_wallet_names", "href": "/komodo-defi-framework/api/v20/get_wallet_names/" diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index a9255fb0..187b48a2 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -44,6 +44,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | | [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | | | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| | [get\_mnemonic](/komodo-defi-framework/api/v20/get_mnemonic/#get-mnemonic) | | | [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | | | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | | | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | @@ -55,6 +56,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | | | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | | [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | | [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | | [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | | | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | diff --git a/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx b/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx index 04f6815b..36e19dda 100644 --- a/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx @@ -3,24 +3,22 @@ export const description = "The get_mnemonic method returns the user's mnemonic # get\_mnemonic -"The get_mnemonic method returns the user's mnemonic seed phrase, in encrypted or plain text format." +"The get\_mnemonic method returns the user's mnemonic seed phrase, in encrypted or plain text format." ## Arguments -| Structure | Type | Description | -| --------- | ------ | ------------------------------------------------------------------------------------------------------------------ | -| format | string | Either `encrypted` or `plaintext`. Defaults to `encrypted`. | -| password | string | The password to decrypt your stored mnemonic phrase. Only required if `plaintext` format is requested. | +| Structure | Type | Description | +| --------- | ------ | ------------------------------------------------------------------------------------------------------ | +| format | string | Either `encrypted` or `plaintext`. Defaults to `encrypted`. | +| password | string | The password to decrypt your stored mnemonic phrase. Only required if `plaintext` format is requested. | #### Response -| Structure | Type | Description | -| ----------------------- | ------ | -------------------------------------------------------------------------------------------- | -| format | string | Same as the input `format` parameter. | -| mnemonic | string | For `plaintext` requests, the decrypted mnemonic seed phrase | -| encrypted_mnemonic_data | object | For `encrpyted` requests, the encrypted format and ciphertext for the mnemonic seed phrase | - - +| Structure | Type | Description | +| ------------------------- | ------ | ------------------------------------------------------------------------------------------ | +| format | string | Same as the input `format` parameter. | +| mnemonic | string | For `plaintext` requests, the decrypted mnemonic seed phrase | +| encrypted\_mnemonic\_data | object | For `encrpyted` requests, the encrypted format and ciphertext for the mnemonic seed phrase | #### 📌 Examples @@ -33,7 +31,7 @@ export const description = "The get_mnemonic method returns the user's mnemonic "mmrpc": "2.0", "method": "get_mnemonic", "params": { - "format": "encrypted" + "format": "encrypted" }, "id": 0 } @@ -82,8 +80,8 @@ export const description = "The get_mnemonic method returns the user's mnemonic "mmrpc": "2.0", "method": "get_mnemonic", "params": { - "format": "plaintext", - "password": "Q^wJZg~Ck3.tPW~asnM-WrL" // The password used to encrypt the passphrase when the wallet was created + "format": "plaintext", + "password": "Q^wJZg~Ck3.tPW~asnM-WrL" }, "id": 0 } diff --git a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx index 16c41905..a5c08813 100644 --- a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx +++ b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx @@ -33,7 +33,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas | wss\_certs | object | Optional. Contains fields for `server_priv_key` and `certificate` to allow RPC or P2P communications over TLS/SSL. | | event\_stream\_configuration | object | Optional, a standard [EventStreamConfig](/komodo-defi-framework/api/v20/#derivation-method) object. Configuration for subscribing to events. | | passphrase | string | Optional. Your passphrase (mnemonic phrase) in plain text. This is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8). For more secure, encrypted storage in a local database, use the `wallet_name` and `wallet_password` parameters below. | -| wallet\_name | string | Optional. An arbitrary name for the wallet. If no `passphrase` is provided, and the wallet has been used already, the `wallet_password` will be used to decrypt the local stored mnemonic phrase. If it has not been used before, a mnemonic will be generated and encrypted for local storage. The mnemonic phrase can be seen in plain text using the (/komodo-defi-framework/api/v20/get_mnemonic)[] method. | +| wallet\_name | string | Optional. An arbitrary name for the wallet. If no `passphrase` is provided, and the wallet has been used already, the `wallet_password` will be used to decrypt the local stored mnemonic phrase. If it has not been used before, a mnemonic will be generated and encrypted for local storage. The mnemonic phrase can be seen in plain text using the (/komodo-defi-framework/api/v20/get\_mnemonic)\[] method. | | wallet\_password | string | Optional, required if using `wallet_name`. The password use to encrypt your wallet's mnemonic phrase for local storage, and decrypt the wallet when logging in. | #### Example (allowing weak password): From 0aa3971403ba8d60e2ad2914379cef9842096de7 Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 19 Nov 2024 15:53:47 +0800 Subject: [PATCH 5/5] methods table formatting --- filepathSlugs.json | 8 + src/pages/komodo-defi-framework/api/index.mdx | 261 +++++++++--------- 2 files changed, 141 insertions(+), 128 deletions(-) diff --git a/filepathSlugs.json b/filepathSlugs.json index f24a9681..caefdc65 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2864,6 +2864,14 @@ "command", "response-success" ], + "src/pages/komodo-defi-framework/api/v20/get_enabled_coins/index.mdx": [ + "get-enabled-coins", + "parameters", + "response", + "examples", + "command", + "response-2" + ], "src/pages/komodo-defi-framework/api/v20/get_mnemonic/index.mdx": [ "get-mnemonic", "arguments", diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 4c9524ed..30b96c58 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,131 +10,136 @@ To test the methods in v2.0 (Dev), you will need to [build the Komodo DeFi Frame Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: -| Legacy | v2.0 (release) | v2.0 (dev) | -| ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | -| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | -| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | -| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | -| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | -| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | -| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | -| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | -| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | -| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | -| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | -| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | -| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | -| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | -| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | -| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | -| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | -| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | -| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | -| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | -| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | -| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | -| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | -| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | -| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | -| | [get\_current\_mtp](/komodo-defi-framework/api/v20/get_current_mtp/#get-current-mtp) | | -| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | -| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | [get\_enabled\_coins](/komodo-defi-framework/api/v20/get_enabled_coins/#get-enabled-coins) | | -| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | -| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | -| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | -| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | -| | [get\_mnemonic](/komodo-defi-framework/api/v20/get_mnemonic/#get-mnemonic) | | -| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | -| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | -| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | -| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | -| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | -| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | -| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | -| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | -| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | -| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | -| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | -| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | -| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | -| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | -| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | -| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | -| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | -| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | -| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | -| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | -| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | -| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | -| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | -| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | -| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | -| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | -| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | -| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | -| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | -| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | -| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | -| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | -| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | -| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | -| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | -| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | -| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | -| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | -| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/peer_connection_healthcheck/#peer-connection-healthcheck) | | -| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | -| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | -| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | -| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | -| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | -| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | -| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | -| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | -| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | -| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | -| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | -| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | -| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | -| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | -| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | -| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | -| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | -| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | -| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | -| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | -| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | -| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | -| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | -| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | -| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | -| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | -| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | -| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | -| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | -| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | -| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | -| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | -| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | -| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | -| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | -| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | -| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | -| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | -| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | -| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | -| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | -| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | -| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | -| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | -| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | -| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | -| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | -| [version](/komodo-defi-framework/api/legacy/version/#version) | | | -| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | -| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | -| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | +| Legacy | v2.0 (release) | v2.0 (dev) | +| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | +| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | +| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | +| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | +| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | +| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | +| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | +| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | +| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | +| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | +| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | +| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | +| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | +| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | +| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | +| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | +| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | +| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | +| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | +| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | +| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | +| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | +| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | +| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | +| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | +| | [get\_current\_mtp](/komodo-defi-framework/api/v20/get_current_mtp/#get-current-mtp) | | +| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | +| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | [get\_enabled\_coins](/komodo-defi-framework/api/v20/get_enabled_coins/#get-enabled-coins) | | +| | [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | | +| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | +| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | +| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | +| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| | [get\_mnemonic](/komodo-defi-framework/api/v20/get_mnemonic/#get-mnemonic) | | +| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | +| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | +| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | +| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | +| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | +| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | +| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | +| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | +| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | +| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | +| | [get\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/#get-swap-transaction-fee-policy) | | +| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | +| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | +| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | +| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | +| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | +| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | +| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | +| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | +| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | +| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | +| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | +| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | +| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | +| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | +| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | +| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | +| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | +| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | +| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | +| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | +| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | +| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | +| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | +| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | +| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | +| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | +| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | +| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | +| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/peer_connection_healthcheck/#peer-connection-healthcheck) | | +| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | +| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | +| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | +| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | +| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | +| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | +| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | +| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | +| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | +| | [set\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/#set-swap-transaction-fee-policy) | | +| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | +| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | +| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | +| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | +| | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/#start-eth-fee-estimator) | | +| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | +| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | +| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | +| | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/#stop-eth-fee-estimator) | | +| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | +| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | +| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | +| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | +| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | +| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | +| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | +| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | +| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | +| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | +| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | +| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | +| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | +| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | +| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | +| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | +| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | +| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | +| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | +| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | +| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | +| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | +| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | +| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | +| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | +| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | +| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | +| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | +| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | +| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | +| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | +| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | +| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | +| [version](/komodo-defi-framework/api/legacy/version/#version) | | | +| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | +| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | +| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) |