From cae82c5e1f1d1879f1a6813a7600cd6eaa2116cd Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 10 Sep 2024 18:07:02 +0800 Subject: [PATCH] `get_peers_info` -> `get_directly_connected_peers` --- filepathSlugs.json | 14 +- .../komodo_defi.postman_collection.json | 2551 +++++++++++++---- src/data/sidebar.json | 4 +- src/pages/komodo-defi-framework/api/index.mdx | 250 +- .../index.mdx | 18 +- .../tutorials/listing-a-new-coin/index.mdx | 14 +- 6 files changed, 2081 insertions(+), 770 deletions(-) rename src/pages/komodo-defi-framework/api/legacy/{get_peers_info => get_directly_connected_peers}/index.mdx (75%) diff --git a/filepathSlugs.json b/filepathSlugs.json index 2a764aeb..8f929d68 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2320,6 +2320,12 @@ "response-error-active-swap-is-using-the-coin", "response-error-the-order-is-matched-at-the-moment-but-another-order-is-cancelled" ], + "src/pages/komodo-defi-framework/api/legacy/get_directly_connected_peers/index.mdx": [ + "get-directly-connected-peers", + "arguments", + "response", + "example" + ], "src/pages/komodo-defi-framework/api/legacy/get_enabled_coins/index.mdx": [ "get-enabled-coins", "arguments", @@ -2360,14 +2366,6 @@ "command", "response-success" ], - "src/pages/komodo-defi-framework/api/legacy/get_peers_info/index.mdx": [ - "get-peers-info", - "arguments", - "response", - "examples", - "command", - "response-success" - ], "src/pages/komodo-defi-framework/api/legacy/get_relay_mesh/index.mdx": [ "get-relay-mesh", "arguments", diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 35a0c59f..3726edce 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -1,10 +1,11 @@ { "info": { - "_postman_id": "01b1b7d4-48d2-414d-b721-e1e7ea1c2c3a", - "name": "komodo_defi", + "_postman_id": "1b69d366-bcea-4ccf-bc91-39eb07c9b074", + "name": "Komodo DeFi Framework", "description": "Komodo DeFi Framework RPC methods", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12719479" + "_exporter_id": "12719479", + "_collection_link": "https://smk762.postman.co/workspace/KMD-QA~b04e9300-501c-4931-9886-94f79ebc51a5/collection/12719479-1b69d366-bcea-4ccf-bc91-39eb07c9b074?action=share&source=collection_link&creator=12719479" }, "item": [ { @@ -29,7 +30,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -44,7 +46,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:10017\"\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:10017\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10017\"\r\n }\r\n ]\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\": \"MARTY\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10021\"\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:10021\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10021\"\r\n }\r\n ]\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}}", @@ -53,7 +55,99 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate DOC", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "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 // \"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}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "217" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:27:00 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\"balance\":\"10634.52052535\",\"unspendable_balance\":\"0\",\"coin\":\"DOC\",\"required_confirmations\":1,\"requires_notarization\":false,\"mature_confirmations\":100}" + }, + { + "name": "Activate MARTY", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"MARTY\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10021\"\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:10021\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10021\"\r\n }\r\n ]\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}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "216" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:28:15 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"result\": \"success\",\n \"address\": \"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\n \"balance\": \"1264.884406\",\n \"unspendable_balance\": \"0\",\n \"coin\": \"MARTY\",\n \"required_confirmations\": 1,\n \"requires_notarization\": false,\n \"mature_confirmations\": 100\n}" + } + ] }, { "name": "electrum (UTXO WSS)", @@ -1057,7 +1151,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "GoodTillCancelled", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"buy\",\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"price\": 1.1,\r\n \"volume\": 2.4\r\n // \"min_volume\": null, // Accepted values: Decimals\r\n // \"timeout\": 30,\r\n // \"match_by\": {\r\n // \"type\": \"Any\" // Accepted values: \"Any\", \"Orders\", \"Pubkeys\"\r\n // // \"data\": [\r\n // // \"1ab7edc96abaefb358b52c583048eaaeb8ea42609d096d6cddfafa02fa510c6a\",\r\n // // \"1ab7edc96abaefb358b52c583048eaaeb8ea42609d096d6cddfafa02fa510c6a\"\r\n // // ] // Required only if: \"type\": \"Orders\", \"type\": \"Pubkeys\"\r\n // },\r\n // \"order_type\": {\r\n // \"type\": \"GoodTillCancelled\" // Accepted values: \"GoodTillCancelled\", \"FillOrKill\"\r\n // },\r\n // \"base_confs\": 1, // Default: Coin Config\r\n // \"base_nota\": false, // Default: Coin Config\r\n // \"rel_confs\": 1, // Default: Coin Config\r\n // \"rel_nota\": false, // Default: Coin Config\r\n // \"save_in_history\": true\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": "718" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:35:27 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"base\":\"DOC\",\"rel\":\"MARTY\",\"base_amount\":\"2.4\",\"base_amount_rat\":[[1,[12]],[1,[5]]],\"rel_amount\":\"2.64\",\"rel_amount_rat\":[[1,[66]],[1,[25]]],\"action\":\"Buy\",\"uuid\":\"0a3859ba-0e28-49de-b015-641c050a6409\",\"method\":\"request\",\"sender_pubkey\":\"d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\"dest_pub_key\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"match_by\":{\"type\":\"Any\"},\"conf_settings\":{\"base_confs\":1,\"base_nota\":false,\"rel_confs\":1,\"rel_nota\":false},\"order_type\":{\"type\":\"GoodTillCancelled\"},\"min_volume\":\"0.0001\",\"min_volume_fraction\":{\"numer\":\"1\",\"denom\":\"10000\"},\"min_volume_rat\":[[1,[1]],[1,[10000]]],\"base_orderbook_ticker\":null,\"rel_orderbook_ticker\":null}}" + } + ] }, { "name": "cancel_all_orders", @@ -2201,7 +2338,7 @@ "response": [] }, { - "name": "get_peers_info", + "name": "get_directly_connected_peers", "event": [ { "listen": "prerequest", @@ -2213,7 +2350,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -2228,7 +2366,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_peers_info\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_directly_connected_peers\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2237,7 +2375,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_directly_connected_peers", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_directly_connected_peers\"\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": "331" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:01:00 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"12D3KooWBoQYTPf4q2bnsw8fUA2LKoknccVLrAcF1caCa48ev8QU\":[\"/ip4/38.91.100.29/tcp/42845/p2p/12D3KooWBoQYTPf4q2bnsw8fUA2LKoknccVLrAcF1caCa48ev8QU\"],\"12D3KooWHKkHiNhZtKceQehHhPqwU5W1jXpoVBgS1qst899GjvTm\":[\"/ip4/168.119.236.251/tcp/42845\"],\"12D3KooWEaZpH61H4yuQkaNG5AsyGdpBhKRppaLdAY52a774ab5u\":[\"/ip4/46.4.78.11/tcp/42845\"]}}" + } + ] }, { "name": "get_relay_mesh", @@ -3221,483 +3402,29 @@ ] }, { - "name": "get_enabled_coins", - "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" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_enabled_coins\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Non Fungible Tokens", - "item": [ - { - "name": "get_nft_list", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ]\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "response": [ - { - "name": "Example with optional limit & page_number params", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"limit\": 1,\n \"page_number\": 2\n }\n }", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "_postman_previewlanguage": "JSON", - "header": null, - "cookie": [], - "body": null - }, - { - "name": "Example with spam protection", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"protect_from_spam\": true,\n \"filters\": {\n \"exclude_spam\": true,\n \"exclude_phishing\": true\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "_postman_previewlanguage": "JSON", - "header": null, - "cookie": [], - "body": null - } - ] - }, - { - "name": "get_nft_transfers", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_transfers\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"max\": true,\n \"filters\": {\n \"send\": true,\n \"from_date\": 1690890685\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers)" - }, - "response": [] - }, - { - "name": "get_nft_metadata", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"chain\": \"POLYGON\"\n }\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata)" - }, - "response": [] - }, - { - "name": "refresh_nft_metadata", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"refresh_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x48c75fbf0452fa8ff2928ddf46b0fe7629cca2ff\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata)" - }, - "response": [] - }, - { - "name": "update_nft", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#update-nft](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#update-nft)" - }, - "response": [] - }, - { - "name": "withdraw_nft", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\"\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts)" - }, - "response": [] - }, - { - "name": "withdraw_nft (erc1155)", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc1155\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"amount\": \"1\"\n }\n }\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example)" - }, - "response": [ - { - "name": "erc1155", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"withdraw_type\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"BSC\",\n \"to\": \"0x6FAD0eC6bb76914b2a2a800686acc22970645820\",\n \"token_address\": \"0xfd913a305d70a60aac4faac70c739563738e1f81\",\n \"token_id\": \"214300044414\"\n }\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "_postman_previewlanguage": null, - "header": null, - "cookie": [], - "body": null - } - ] - } - ] - }, - { - "name": "Wallet", - "item": [ - { - "name": "HD Wallet", + "name": "EVM", "item": [ { - "name": "account_balance", - "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" - } - } - ], - "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\": \"account_balance\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_index\": 0,\r\n \"chain\": \"External\" // Accepted values: \"External\", \"Internal\"\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // \"PageNumber\": 1\r\n // // \"FromId\": 4 // used instead of: \"PageNumber\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "get_new_address", + "name": "enable_eth_with_tokens", "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);" + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" ], - "type": "text/javascript" + "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_new_address\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_id\": 0,\r\n \"chain\": \"External\" // Accepted values: \"External\", \"Internal\"\r\n // \"gap_limit\": 20 // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "task::account_balance::init", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], + "header": [], "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::account_balance::init\",\n \"params\": {\n \"coin\": \"DOC\",\n \"account_index\": 0\n }\n // \"id\": null // Accepted values: Integers\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\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 }", "options": { "raw": { "language": "json" @@ -3711,10 +3438,242 @@ ] } }, - "response": [] - }, + "response": [ + { + "name": "ETH", + "originalRequest": { + "method": "POST", + "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 \"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}", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "778" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:54:48 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 20711138,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"balances\": {\n \"spendable\": \"0.086762578016820988\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"balances\": {\n \"MINDS-ERC20\": {\n \"spendable\": \"0\",\n \"unspendable\": \"0\"\n }\n }\n }\n },\n \"nfts_infos\": {\n \"0xe70659b717112ac4e14284d0db2f5d5703df8e43,72\": {\n \"token_address\": \"0xe70659b717112ac4e14284d0db2f5d5703df8e43\",\n \"token_id\": \"72\",\n \"chain\": \"ETH\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2da827a0c6417ee74253937f8565fe3dad5fb975,31\": {\n \"token_address\": \"0x2da827a0c6417ee74253937f8565fe3dad5fb975\",\n \"token_id\": \"31\",\n \"chain\": \"ETH\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n }\n }\n },\n \"id\": null\n}" + }, + { + "name": "BNB", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"BNB\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"swap_contract_address\": \"0xeDc5b89Fe1f0382F9E4316069971D90a0951DB31\",\n \"fallback_swap_contract\": \"0xeDc5b89Fe1f0382F9E4316069971D90a0951DB31\",\n \"nodes\": [\n {\n \"url\": \"https://bsc1.cipig.net:18655\"\n },\n {\n \"url\": \"https://bsc3.cipig.net:18655\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/bnb\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"KMD-BEP20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\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": "547" + }, + { + "key": "date", + "value": "Tue, 27 Aug 2024 04:51:50 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":41720342,\"eth_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\"}},\"erc20_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\",\"tickers\":[\"KMD-BEP20\"]}},\"nfts_infos\":{}},\"id\":null}" + }, + { + "name": "MATIC (without NFTs)", + "originalRequest": { + "method": "POST", + "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 }", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "560" + }, + { + "key": "date", + "value": "Mon, 02 Sep 2024 07:03:56 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 61329088,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"tickers\": [\n \"AAVE-PLG20\",\n \"PGX-PLG20\"\n ]\n }\n },\n \"nfts_infos\": {}\n },\n \"id\": null\n}" + }, + { + "name": "MATIC (with NFTs)", + "originalRequest": { + "method": "POST", + "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 }", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "14333" + }, + { + "key": "date", + "value": "Mon, 02 Sep 2024 07:06:30 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 61329162,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"tickers\": [\n \"PGX-PLG20\",\n \"AAVE-PLG20\"\n ]\n }\n },\n \"nfts_infos\": {\n \"0xc37d76acc7b9482738ddec4370e6357776ab4619,1\": {\n \"token_address\": \"0xc37d76acc7b9482738ddec4370e6357776ab4619\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x014ec9f122a9e245fdcd8d04669f6bd9767488e5,1\": {\n \"token_address\": \"0x014ec9f122a9e245fdcd8d04669f6bd9767488e5\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x004ddffc02c9c20b3abbbe251811302dc578fec3,1\": {\n \"token_address\": \"0x004ddffc02c9c20b3abbbe251811302dc578fec3\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb927f724d51c228efac3cf01e54f1bfb72e5d8d8,1\": {\n \"token_address\": \"0xb927f724d51c228efac3cf01e54f1bfb72e5d8d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb26215cdf9637e58fde65abd4dfca373e9ac347c,1\": {\n \"token_address\": \"0xb26215cdf9637e58fde65abd4dfca373e9ac347c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,6\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"6\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x5c652b3213ff76eb6530bcbad38a21e177a61598,1\": {\n \"token_address\": \"0x5c652b3213ff76eb6530bcbad38a21e177a61598\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xccf0fd8da6fa51ea019775f18d1fbc1bba088536,1\": {\n \"token_address\": \"0xccf0fd8da6fa51ea019775f18d1fbc1bba088536\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xa0e168fc7965f19ad3f995d61d9a286f95290445,1\": {\n \"token_address\": \"0xa0e168fc7965f19ad3f995d61d9a286f95290445\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,2\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"2\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x86956aee19a9ccc6526da18c9453597a639a9e67,1\": {\n \"token_address\": \"0x86956aee19a9ccc6526da18c9453597a639a9e67\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd5067901dc4eb8d0739cfd6a84b2293141b2bd45,1\": {\n \"token_address\": \"0xd5067901dc4eb8d0739cfd6a84b2293141b2bd45\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x6d7b49528ee72983625252b9327b5486cd425b76,1\": {\n \"token_address\": \"0x6d7b49528ee72983625252b9327b5486cd425b76\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x41a69f2c9da47b97bc86774c273dce0e827544d8,1\": {\n \"token_address\": \"0x41a69f2c9da47b97bc86774c273dce0e827544d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x05bbb37a953fd4d18bcadecb09781ec24e90353d,1\": {\n \"token_address\": \"0x05bbb37a953fd4d18bcadecb09781ec24e90353d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe1ab36eda8012483aa947263b7d9a857d9c37e05,32\": {\n \"token_address\": \"0xe1ab36eda8012483aa947263b7d9a857d9c37e05\",\n \"token_id\": \"32\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc037b01261d7638cf0750bba085edfb59a616d37,1\": {\n \"token_address\": \"0xc037b01261d7638cf0750bba085edfb59a616d37\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb7350ac5b9326d675dacb3f2e38818c911abe660,1\": {\n \"token_address\": \"0xb7350ac5b9326d675dacb3f2e38818c911abe660\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb0e9bb5b186811bb532edecdb47c0a6caea26e44,1\": {\n \"token_address\": \"0xb0e9bb5b186811bb532edecdb47c0a6caea26e44\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x852688002e14fdf0dd3ecbc0fb6136487cc692d8,1\": {\n \"token_address\": \"0x852688002e14fdf0dd3ecbc0fb6136487cc692d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe6c61f392ecf1d0abd815099bbcf2a7cbd2eb253,1\": {\n \"token_address\": \"0xe6c61f392ecf1d0abd815099bbcf2a7cbd2eb253\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd25f13e4ba534ef625c75b84934689194b7bd59e,14\": {\n \"token_address\": \"0xd25f13e4ba534ef625c75b84934689194b7bd59e\",\n \"token_id\": \"14\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC721\",\n \"amount\": \"1\"\n },\n \"0x8d832817a3a94dfd4d1d2cb5d89a347e204fabdc,1\": {\n \"token_address\": \"0x8d832817a3a94dfd4d1d2cb5d89a347e204fabdc\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd96284039ca56796bcfa832262f94e3fb69908d4,1\": {\n \"token_address\": \"0xd96284039ca56796bcfa832262f94e3fb69908d4\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x4f7c7ddd85ca11d957a8968bf94dcefd2d1ad4cd,1\": {\n \"token_address\": \"0x4f7c7ddd85ca11d957a8968bf94dcefd2d1ad4cd\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe843809065192c9fe94295315c2a1927f784a460,1\": {\n \"token_address\": \"0xe843809065192c9fe94295315c2a1927f784a460\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2953399124f0cbb46d2cbacd8a89cf0599974963,56787087360155483967447526621654293526681839490012288898340565660705956561896\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"56787087360155483967447526621654293526681839490012288898340565660705956561896\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"4\"\n },\n \"0x8e45865c3766f322f9dd9fa8140a9e7419e0ec15,1\": {\n \"token_address\": \"0x8e45865c3766f322f9dd9fa8140a9e7419e0ec15\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0f845992467e901224c964c5e584c0026cdfcecb,1\": {\n \"token_address\": \"0x0f845992467e901224c964c5e584c0026cdfcecb\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x92aa07d5f242a82eb1a39a41a0eae4d634b85b29,1\": {\n \"token_address\": \"0x92aa07d5f242a82eb1a39a41a0eae4d634b85b29\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,4\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"4\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2f10726f7b420ded058e225560832ecfdd692934,1\": {\n \"token_address\": \"0x2f10726f7b420ded058e225560832ecfdd692934\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x4b81106c7c6d33b78773c749901cfe13341ab194,1\": {\n \"token_address\": \"0x4b81106c7c6d33b78773c749901cfe13341ab194\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xaa625cfc68d5b2f6dabc8b29f17a9e764595f436,1\": {\n \"token_address\": \"0xaa625cfc68d5b2f6dabc8b29f17a9e764595f436\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,7\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"7\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe1d7e6a33d9c4f241652191315c88d3d3daf6ed0,1\": {\n \"token_address\": \"0xe1d7e6a33d9c4f241652191315c88d3d3daf6ed0\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2b4f183181215ed49f467c148a7cbed79e4f967f,0\": {\n \"token_address\": \"0x2b4f183181215ed49f467c148a7cbed79e4f967f\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xac56f690bfcc1f86caccfcf5ffdab5e30a671115,1\": {\n \"token_address\": \"0xac56f690bfcc1f86caccfcf5ffdab5e30a671115\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe432debcb66fd0a00efea30eeb5374516d3776a7,1\": {\n \"token_address\": \"0xe432debcb66fd0a00efea30eeb5374516d3776a7\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x966f1e15249344499953887cb244d9f26989016d,1\": {\n \"token_address\": \"0x966f1e15249344499953887cb244d9f26989016d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,8\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"8\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x1016363a2af9c848e9daad19db9dfecbe5316bc3,0\": {\n \"token_address\": \"0x1016363a2af9c848e9daad19db9dfecbe5316bc3\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x88b04b7fef48677577da7baf0620a1ac0710910b,1\": {\n \"token_address\": \"0x88b04b7fef48677577da7baf0620a1ac0710910b\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x34b3332a72daf3d19ebe485c6cb6cad5d81f86ab,0\": {\n \"token_address\": \"0x34b3332a72daf3d19ebe485c6cb6cad5d81f86ab\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x316d73824bc9c60f239d4c57082bcde4bfdf4f7a,3\": {\n \"token_address\": \"0x316d73824bc9c60f239d4c57082bcde4bfdf4f7a\",\n \"token_id\": \"3\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x39a54fa042e214d89fd8bcb0f1ad4fd6478c6e6f,1\": {\n \"token_address\": \"0x39a54fa042e214d89fd8bcb0f1ad4fd6478c6e6f\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf95923992e508ecba70f6a28942006dc7bceeda4,1\": {\n \"token_address\": \"0xf95923992e508ecba70f6a28942006dc7bceeda4\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb6b17e34e9970c446eb103d46a7465c078428da2,1\": {\n \"token_address\": \"0xb6b17e34e9970c446eb103d46a7465c078428da2\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd99f7be919009c4e99de55298f8c2fb6a9f56d4d,1\": {\n \"token_address\": \"0xd99f7be919009c4e99de55298f8c2fb6a9f56d4d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd2a622e8a45cf65917c92c540fe9c6553f92017e,1\": {\n \"token_address\": \"0xd2a622e8a45cf65917c92c540fe9c6553f92017e\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf4953888c6c120ebbac848036331ff82beb809aa,1\": {\n \"token_address\": \"0xf4953888c6c120ebbac848036331ff82beb809aa\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0aa915b14b30df7589d79746c9d5f6cd39d48707,1\": {\n \"token_address\": \"0x0aa915b14b30df7589d79746c9d5f6cd39d48707\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x96831c434841b9af60c9ec6d4e6992d89f3a307e,8\": {\n \"token_address\": \"0x96831c434841b9af60c9ec6d4e6992d89f3a307e\",\n \"token_id\": \"8\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x359b2d7b1ad60b50a88071b5699bca673dcb9d3c,1\": {\n \"token_address\": \"0x359b2d7b1ad60b50a88071b5699bca673dcb9d3c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x8476077092b4a67b58b5358787710f6bb0d3fcaf,0\": {\n \"token_address\": \"0x8476077092b4a67b58b5358787710f6bb0d3fcaf\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x396849212c0a846c0cf5deb41c9534cdfb111709,1\": {\n \"token_address\": \"0x396849212c0a846c0cf5deb41c9534cdfb111709\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2953399124f0cbb46d2cbacd8a89cf0599974963,56787087360155483967447526621654293526681839490012288898340565435306072867816\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"56787087360155483967447526621654293526681839490012288898340565435306072867816\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"2\"\n },\n \"0x107679bef23a5e5684a66c4d00395cc8f8d71226,0\": {\n \"token_address\": \"0x107679bef23a5e5684a66c4d00395cc8f8d71226\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc28a19e9a663d966cf99532bdb1229df1b0e344b,1\": {\n \"token_address\": \"0xc28a19e9a663d966cf99532bdb1229df1b0e344b\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,5\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,9\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"9\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x77da7a6e8690bb0b805246f554c3a938d7139710,1\": {\n \"token_address\": \"0x77da7a6e8690bb0b805246f554c3a938d7139710\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x518948db176e966eda1b10aa3137aba6a626caf9,1\": {\n \"token_address\": \"0x518948db176e966eda1b10aa3137aba6a626caf9\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0dc6ff017a62605b3160887675874d0146037686,1\": {\n \"token_address\": \"0x0dc6ff017a62605b3160887675874d0146037686\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc06a6ab4c2b0ed14ed5692adf324a9a463259c43,0\": {\n \"token_address\": \"0xc06a6ab4c2b0ed14ed5692adf324a9a463259c43\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,3\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"3\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,1\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc6d46a02a73d180a08b985bbfad6441c70e418ec,1\": {\n \"token_address\": \"0xc6d46a02a73d180a08b985bbfad6441c70e418ec\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xfe86052e0c1e2d770c97699dc1675fd08a94b804,1\": {\n \"token_address\": \"0xfe86052e0c1e2d770c97699dc1675fd08a94b804\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x959e7680093345df3ec10fafdc01756e4d9ebd2c,1\": {\n \"token_address\": \"0x959e7680093345df3ec10fafdc01756e4d9ebd2c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x73a5299824cd955af6377b56f5762dc3ca4cc078,1\": {\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC721\",\n \"amount\": \"1\"\n },\n \"0x3987dfed574927e7a3309758ccf949ad2403fcbb,1\": {\n \"token_address\": \"0x3987dfed574927e7a3309758ccf949ad2403fcbb\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,0\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x521ce9d9c66af3ff7abf6f49186ddf0559ed75ed,1\": {\n \"token_address\": \"0x521ce9d9c66af3ff7abf6f49186ddf0559ed75ed\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n }\n }\n },\n \"id\": null\n}" + }, + { + "name": "AVAX", + "originalRequest": { + "method": "POST", + "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 }", + "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": "907" + }, + { + "key": "date", + "value": "Thu, 05 Sep 2024 15:10:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":50155792,\"eth_addresses_infos\":{\"0xab95…6498\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"}},\"erc20_addresses_infos\":{\"0xab95…6498\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\"tickers\":[]}},\"nfts_infos\":{\"0x16742be85e1f51949b80f52ca22f35cb9f5e7478,49\":{\"token_address\":\"0x16742be85e1f51949b80f52ca22f35cb9f5e7478\",\"token_id\":\"49\",\"chain\":\"AVALANCHE\",\"contract_type\":\"ERC721\",\"amount\":\"1\"},\"0xac737748362fbcd78fad7c982018afa164266cbb,307\":{\"token_address\":\"0xac737748362fbcd78fad7c982018afa164266cbb\",\"token_id\":\"307\",\"chain\":\"AVALANCHE\",\"contract_type\":\"ERC721\",\"amount\":\"1\"}}},\"id\":null}" + } + ] + } + ] + }, + { + "name": "TENDERMINT", + "item": [ { - "name": "task::account_balance::status", + "name": "enable_tendermint_token", "event": [ { "listen": "prerequest", @@ -3726,7 +3685,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -3741,7 +3701,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::account_balance::status\",\r\n \"params\": {\r\n \"task_id\": 0\r\n // \"forget_if_finished\": true\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_token\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM-IBC_IRIS\",\r\n \"activation_params\": {\r\n \"required_confirmations\": 3\r\n }\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -3753,7 +3713,7 @@ "response": [] }, { - "name": "task::account_balance::cancel", + "name": "enable_tendermint_with_assets", "event": [ { "listen": "prerequest", @@ -3765,7 +3725,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -3780,7 +3741,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_z_coin::cancel\",\r\n \"params\": {\r\n \"task_id\": 0\r\n }\r\n // \"id\": null // Accepted values: Integers\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 \"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" }, "url": { "raw": "{{address}}", @@ -3794,33 +3755,875 @@ ] }, { - "name": "QTUM", - "item": [ + "name": "get_enabled_coins", + "event": [ { - "name": "add_delegation", - "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" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } + "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" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_enabled_coins\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Non Fungible Tokens", + "item": [ + { + "name": "get_nft_list", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ]\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "response": [ + { + "name": "Example with optional limit & page_number params", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"limit\": 1,\n \"page_number\": 2\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "_postman_previewlanguage": "JSON", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Example with spam protection", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"protect_from_spam\": true,\n \"filters\": {\n \"exclude_spam\": true,\n \"exclude_phishing\": true\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "_postman_previewlanguage": "JSON", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "get_nft_transfers", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_transfers\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"max\": true,\n \"filters\": {\n \"send\": true,\n \"from_date\": 1690890685\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers)" + }, + "response": [] + }, + { + "name": "get_nft_metadata", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"chain\": \"POLYGON\"\n }\n}", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata)" + }, + "response": [] + }, + { + "name": "refresh_nft_metadata", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"refresh_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x48c75fbf0452fa8ff2928ddf46b0fe7629cca2ff\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata)" + }, + "response": [] + }, + { + "name": "update_nft", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"proxy_auth\": false,\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "DevDocs Link: [https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/](https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/)" + }, + "response": [ + { + "name": "update_nft", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\",\n \"BSC\"\n ],\n \"proxy_auth\": false,\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "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": "39" + }, + { + "key": "date", + "value": "Tue, 27 Aug 2024 04:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + } + ] + }, + { + "name": "withdraw_nft", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\"\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts)" + }, + "response": [] + }, + { + "name": "withdraw_nft (erc1155)", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc1155\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"amount\": \"1\"\n }\n }\n}", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example)" + }, + "response": [ + { + "name": "erc1155", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"withdraw_type\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"BSC\",\n \"to\": \"0x6FAD0eC6bb76914b2a2a800686acc22970645820\",\n \"token_address\": \"0xfd913a305d70a60aac4faac70c739563738e1f81\",\n \"token_id\": \"214300044414\"\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "_postman_previewlanguage": "Text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "clear_nft_db", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"clear_all\": true,\n \"chains\": [\"POLYGON\", \"FANTOM\", \"ETH\", \"BSC\", \"AVALANCHE\"]\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "DevDocs Link: https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/" + }, + "response": [ + { + "name": "clear_nft_db (clear all)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"clear_all\": true\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "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": "39" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:25:32 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + }, + { + "name": "clear_nft_db (by chains)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\"BSC\"]\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "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": "39" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:26:31 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + } + ] + }, + { + "name": "enable_nft", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATIC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "TokenIsAlreadyActivated", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATIC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "184" + }, + { + "key": "date", + "value": "Fri, 06 Sep 2024 14:36:46 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Token NFT_MATIC is already activated\",\"error_path\":\"token\",\"error_trace\":\"token:121]\",\"error_type\":\"TokenIsAlreadyActivated\",\"error_data\":\"NFT_MATIC\",\"id\":null}" + }, + { + "name": "TokenConfigIsNotFound", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATICC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "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": "203" + }, + { + "key": "date", + "value": "Fri, 06 Sep 2024 14:39:56 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Token NFT_MATICC config is not found\",\"error_path\":\"token.prelude\",\"error_trace\":\"token:124] prelude:79]\",\"error_type\":\"TokenConfigIsNotFound\",\"error_data\":\"NFT_MATICC\",\"id\":null}" + } + ] + } + ] + }, + { + "name": "Wallet", + "item": [ + { + "name": "HD Wallet", + "item": [ + { + "name": "account_balance", + "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" + } + } + ], + "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\": \"account_balance\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_index\": 0,\r\n \"chain\": \"External\" // Accepted values: \"External\", \"Internal\"\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // \"PageNumber\": 1\r\n // // \"FromId\": 4 // used instead of: \"PageNumber\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "get_new_address", + "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" + } + } + ], + "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_new_address\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_id\": 0,\r\n \"chain\": \"External\" // Accepted values: \"External\", \"Internal\"\r\n // \"gap_limit\": 20 // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "task::account_balance::init", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::account_balance::init\",\n \"params\": {\n \"coin\": \"DOC\",\n \"account_index\": 0\n }\n // \"id\": null // Accepted values: Integers\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "task::account_balance::status", + "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" + } + } + ], + "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\": \"task::account_balance::status\",\r\n \"params\": {\r\n \"task_id\": 0\r\n // \"forget_if_finished\": true\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "task::account_balance::cancel", + "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" + } + } + ], + "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\": \"task::enable_z_coin::cancel\",\r\n \"params\": {\r\n \"task_id\": 0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "QTUM", + "item": [ + { + "name": "add_delegation", + "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" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], "body": { "mode": "raw", @@ -4946,8 +5749,335 @@ "{{address}}" ] } - }, - "response": [] + }, + "response": [] + }, + { + "name": "trade_preimage", + "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 \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"BTC\",\r\n \"rel\": \"DOGE\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "setprice", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"volume\": \"0.1\",\r\n \"swap_method\": \"setprice\"\r\n },\r\n \"id\": 0\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": "869" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:29:11 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"base_coin_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"rel_coin_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": true\n },\n \"total_fees\": [\n {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0.00001\",\n \"required_balance_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"required_balance_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ]\n },\n {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0\",\n \"required_balance_fraction\": {\n \"numer\": \"0\",\n \"denom\": \"1\"\n },\n \"required_balance_rat\": [\n [\n 0,\n []\n ],\n [\n 1,\n [\n 1\n ]\n ]\n ]\n }\n ]\n },\n \"id\": 0\n}" + }, + { + "name": "sell", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"volume\": \"0.1\",\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\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": "1513" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:29:58 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"base_coin_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": true\n },\n \"rel_coin_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"taker_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.0001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"7770\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 7770\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"fee_to_send_taker_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"total_fees\": [\n {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0\",\n \"required_balance_fraction\": {\n \"numer\": \"0\",\n \"denom\": \"1\"\n },\n \"required_balance_rat\": [\n [\n 0,\n []\n ],\n [\n 1,\n [\n 1\n ]\n ]\n ]\n },\n {\n \"coin\": \"DOC\",\n \"amount\": \"0.0001487001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"amount_fraction\": {\n \"numer\": \"5777\",\n \"denom\": \"38850000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 5777\n ]\n ],\n [\n 1,\n [\n 38850000\n ]\n ]\n ],\n \"required_balance\": \"0.0001487001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"required_balance_fraction\": {\n \"numer\": \"5777\",\n \"denom\": \"38850000\"\n },\n \"required_balance_rat\": [\n [\n 1,\n [\n 5777\n ]\n ],\n [\n 1,\n [\n 38850000\n ]\n ]\n ]\n }\n ]\n },\n \"id\": 0\n}" + }, + { + "name": "Error: InvalidParam", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"sell\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "295" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:30:49 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Incorrect use of the 'max' parameter: 'max' cannot be used with 'sell' or 'buy' method\",\n \"error_path\": \"taker_swap\",\n \"error_trace\": \"taker_swap:2453]\",\n \"error_type\": \"InvalidParam\",\n \"error_data\": {\n \"param\": \"max\",\n \"reason\": \"'max' cannot be used with 'sell' or 'buy' method\"\n },\n \"id\": 0\n}" + }, + { + "name": "trade_preimage", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"BTC\",\r\n \"rel\": \"DOGE\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "192" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:19:39 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such coin BTC\",\n \"error_path\": \"trade_preimage.lp_coins\",\n \"error_trace\": \"trade_preimage:32] lp_coins:4767]\",\n \"error_type\": \"NoSuchCoin\",\n \"error_data\": {\n \"coin\": \"BTC\"\n },\n \"id\": 0\n}" + } + ] + }, + { + "name": "my_recent_swaps", + "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{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\",\r\n \"params\": {\r\n \"filter\": {\r\n \"my_coin\": \"DOC\",\r\n \"other_coin\": \"MARTY\",\r\n \"from_timestamp\": 0,\r\n \"to_timestamp\": 1804067200,\r\n \"from_uuid\": null,\r\n \"limit\": 10,\r\n \"page_number\": 1\r\n }\r\n }\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "my_recent_swaps", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\",\r\n \"params\": {\r\n \"filter\": {\r\n \"my_coin\": \"DOC\",\r\n \"other_coin\": \"MARTY\",\r\n \"from_timestamp\": 0,\r\n \"to_timestamp\": 1804067200,\r\n \"from_uuid\": null,\r\n \"limit\": 10,\r\n \"page_number\": 1\r\n }\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": "8979" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:11:47 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"swaps\": [\n {\n \"swap_type\": \"TakerV1\",\n \"swap_data\": {\n \"uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"my_order_uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"events\": [\n {\n \"timestamp\": 1725849334423,\n \"event\": {\n \"type\": \"Started\",\n \"data\": {\n \"taker_coin\": \"MARTY\",\n \"maker_coin\": \"DOC\",\n \"maker\": \"15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"my_persistent_pub\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"lock_duration\": 7800,\n \"maker_amount\": \"2.4\",\n \"taker_amount\": \"2.4\",\n \"maker_payment_confirmations\": 1,\n \"maker_payment_requires_nota\": false,\n \"taker_payment_confirmations\": 1,\n \"taker_payment_requires_nota\": false,\n \"taker_payment_lock\": 1725857133,\n \"uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"started_at\": 1725849333,\n \"maker_payment_wait\": 1725852453,\n \"maker_coin_start_block\": 724378,\n \"taker_coin_start_block\": 738955,\n \"fee_to_send_taker_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": false\n },\n \"taker_payment_trade_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": false\n },\n \"maker_payment_spend_trade_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": true\n },\n \"maker_coin_htlc_pubkey\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"taker_coin_htlc_pubkey\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"p2p_privkey\": null\n }\n }\n },\n {\n \"timestamp\": 1725849338425,\n \"event\": {\n \"type\": \"Negotiated\",\n \"data\": {\n \"maker_payment_locktime\": 1725864931,\n \"maker_pubkey\": \"000000000000000000000000000000000000000000000000000000000000000000\",\n \"secret_hash\": \"91ddaac214398b0b728d652af8d86f2e06fbbb34\",\n \"maker_coin_swap_contract_addr\": null,\n \"taker_coin_swap_contract_addr\": null,\n \"maker_coin_htlc_pubkey\": \"0315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"taker_coin_htlc_pubkey\": \"0315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\"\n }\n }\n },\n {\n \"timestamp\": 1725849339829,\n \"event\": {\n \"type\": \"TakerFeeSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f890101280d9a0703a25cdd553babd5430708f303fe3d446cd79555a53619c987d7b3000000006a47304402205805ecb3fad4c69e27061a35197c470e6a72a2b762269d3ef6b249c835396cd5022046b710dd5b6bdda75cc32a2cb9511ca51c754e4f2bcac8cd0f2757728a1671c6012103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ffffffff0290b60400000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88aca0e4dc11000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88acfb5ede66000000000000000000000000000000\",\n \"tx_hash\": \"614d3b1ef3666799d71f54ea242f2cb839646be3bfc81d8f1cfce26747cb9892\"\n }\n }\n },\n {\n \"timestamp\": 1725849341830,\n \"event\": {\n \"type\": \"TakerPaymentInstructionsReceived\",\n \"data\": null\n }\n },\n {\n \"timestamp\": 1725849341831,\n \"event\": {\n \"type\": \"MakerPaymentReceived\",\n \"data\": {\n \"tx_hex\": \"0400008085202f8901175391f3922ffcf7dc8929b9795c2fec8d82ed1649e0f3926e04709993dc35a6020000006a4730440220363ea815a237b46c5dd305809fcc103793bb4f620325c12caccb0c88f320e81c02205df417a4b806f3c3d50aa058c4d6a30203868ba786f2a1bd3b3b12917b3882ff01210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff03001c4e0e0000000017a914944cf7300280e31374b3994422a252bce1fcbd10870000000000000000166a1491ddaac214398b0b728d652af8d86f2e06fbbb34083d6aff050000001976a9141462c3dd3f936d595c9af55978003b27c250441f88acfc5ede66000000000000000000000000000000\",\n \"tx_hash\": \"70f6078b9d3312f14dff45fc1e56e503b01d33e22cac8ebd195e4951d468dca6\"\n }\n }\n },\n {\n \"timestamp\": 1725849341832,\n \"event\": {\n \"type\": \"MakerPaymentWaitConfirmStarted\"\n }\n },\n {\n \"timestamp\": 1725849465809,\n \"event\": {\n \"type\": \"MakerPaymentValidatedAndConfirmed\"\n }\n },\n {\n \"timestamp\": 1725849469603,\n \"event\": {\n \"type\": \"TakerPaymentSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f89019298cb4767e2fc1c8f1dc8bfe36b6439b82c2f24ea541fd7996766f31e3b4d61010000006a4730440220526bd1e2114642b2624cb283bada8dbeb734d3fae9184f6833e0eca87b20fffe0220554a3b38ecde2b8a521b681f5ac3e3940e08f45cc35a2fc19eeaeae513368a6c012103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ffffffff03001c4e0e0000000017a9141036c1fcbdf2b3e2d8b65913c78ab7412422cf17870000000000000000166a1491ddaac214398b0b728d652af8d86f2e06fbbb34b8c48e03000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ac7a5fde66000000000000000000000000000000\",\n \"tx_hash\": \"ffe2fe025d470996c3057dc561bd79d0a09f2aa5a14b25fb8e444b49394e5ad8\"\n }\n }\n },\n {\n \"timestamp\": 1725849469604,\n \"event\": {\n \"type\": \"WatcherMessageSent\",\n \"data\": [\n [\n 4,\n 0,\n 0,\n 128,\n 133,\n 32,\n 47,\n 137,\n 1,\n 166,\n 220,\n 104,\n 212,\n 81,\n 73,\n 94,\n 25,\n 189,\n 142,\n 172,\n 44,\n 226,\n 51,\n 29,\n 176,\n 3,\n 229,\n 86,\n 30,\n 252,\n 69,\n 255,\n 77,\n 241,\n 18,\n 51,\n 157,\n 139,\n 7,\n 246,\n 112,\n 0,\n 0,\n 0,\n 0,\n 181,\n 71,\n 48,\n 68,\n 2,\n 32,\n 40,\n 110,\n 97,\n 180,\n 1,\n 177,\n 181,\n 123,\n 77,\n 223,\n 147,\n 41,\n 76,\n 88,\n 138,\n 70,\n 20,\n 231,\n 85,\n 84,\n 145,\n 104,\n 231,\n 60,\n 146,\n 36,\n 2,\n 236,\n 230,\n 82,\n 217,\n 131,\n 2,\n 32,\n 82,\n 28,\n 127,\n 29,\n 240,\n 203,\n 202,\n 207,\n 41,\n 245,\n 94,\n 58,\n 9,\n 242,\n 51,\n 42,\n 111,\n 255,\n 37,\n 131,\n 73,\n 23,\n 48,\n 125,\n 185,\n 16,\n 114,\n 218,\n 143,\n 121,\n 59,\n 3,\n 1,\n 76,\n 107,\n 99,\n 4,\n 227,\n 155,\n 222,\n 102,\n 177,\n 117,\n 33,\n 3,\n 21,\n 217,\n 197,\n 28,\n 101,\n 122,\n 177,\n 190,\n 74,\n 233,\n 211,\n 171,\n 110,\n 118,\n 166,\n 25,\n 211,\n 188,\n 207,\n 232,\n 48,\n 213,\n 54,\n 63,\n 161,\n 104,\n 66,\n 76,\n 13,\n 4,\n 71,\n 50,\n 172,\n 103,\n 130,\n 1,\n 32,\n 136,\n 169,\n 20,\n 145,\n 221,\n 170,\n 194,\n 20,\n 57,\n 139,\n 11,\n 114,\n 141,\n 101,\n 42,\n 248,\n 216,\n 111,\n 46,\n 6,\n 251,\n 187,\n 52,\n 136,\n 33,\n 3,\n 216,\n 6,\n 78,\n 236,\n 228,\n 250,\n 92,\n 15,\n 141,\n 192,\n 38,\n 127,\n 104,\n 206,\n 233,\n 189,\n 213,\n 39,\n 249,\n 232,\n 143,\n 53,\n 148,\n 163,\n 35,\n 66,\n 135,\n 24,\n 195,\n 145,\n 236,\n 194,\n 172,\n 104,\n 255,\n 255,\n 255,\n 255,\n 1,\n 24,\n 24,\n 78,\n 14,\n 0,\n 0,\n 0,\n 0,\n 25,\n 118,\n 169,\n 20,\n 211,\n 70,\n 6,\n 126,\n 60,\n 60,\n 57,\n 100,\n 195,\n 149,\n 254,\n 226,\n 8,\n 89,\n 71,\n 144,\n 226,\n 158,\n 222,\n 93,\n 136,\n 172,\n 227,\n 155,\n 222,\n 102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 4,\n 0,\n 0,\n 128,\n 133,\n 32,\n 47,\n 137,\n 1,\n 216,\n 90,\n 78,\n 57,\n 73,\n 75,\n 68,\n 142,\n 251,\n 37,\n 75,\n 161,\n 165,\n 42,\n 159,\n 160,\n 208,\n 121,\n 189,\n 97,\n 197,\n 125,\n 5,\n 195,\n 150,\n 9,\n 71,\n 93,\n 2,\n 254,\n 226,\n 255,\n 0,\n 0,\n 0,\n 0,\n 182,\n 71,\n 48,\n 68,\n 2,\n 32,\n 12,\n 137,\n 103,\n 65,\n 18,\n 108,\n 213,\n 157,\n 224,\n 139,\n 187,\n 163,\n 116,\n 52,\n 231,\n 214,\n 185,\n 167,\n 227,\n 252,\n 3,\n 217,\n 92,\n 49,\n 170,\n 72,\n 112,\n 76,\n 45,\n 193,\n 15,\n 83,\n 2,\n 32,\n 28,\n 190,\n 47,\n 213,\n 129,\n 180,\n 189,\n 228,\n 165,\n 105,\n 157,\n 230,\n 180,\n 175,\n 68,\n 109,\n 152,\n 255,\n 38,\n 88,\n 66,\n 40,\n 253,\n 7,\n 79,\n 86,\n 118,\n 91,\n 107,\n 20,\n 242,\n 219,\n 1,\n 81,\n 76,\n 107,\n 99,\n 4,\n 109,\n 125,\n 222,\n 102,\n 177,\n 117,\n 33,\n 3,\n 216,\n 6,\n 78,\n 236,\n 228,\n 250,\n 92,\n 15,\n 141,\n 192,\n 38,\n 127,\n 104,\n 206,\n 233,\n 189,\n 213,\n 39,\n 249,\n 232,\n 143,\n 53,\n 148,\n 163,\n 35,\n 66,\n 135,\n 24,\n 195,\n 145,\n 236,\n 194,\n 172,\n 103,\n 130,\n 1,\n 32,\n 136,\n 169,\n 20,\n 145,\n 221,\n 170,\n 194,\n 20,\n 57,\n 139,\n 11,\n 114,\n 141,\n 101,\n 42,\n 248,\n 216,\n 111,\n 46,\n 6,\n 251,\n 187,\n 52,\n 136,\n 33,\n 3,\n 21,\n 217,\n 197,\n 28,\n 101,\n 122,\n 177,\n 190,\n 74,\n 233,\n 211,\n 171,\n 110,\n 118,\n 166,\n 25,\n 211,\n 188,\n 207,\n 232,\n 48,\n 213,\n 54,\n 63,\n 161,\n 104,\n 66,\n 76,\n 13,\n 4,\n 71,\n 50,\n 172,\n 104,\n 254,\n 255,\n 255,\n 255,\n 1,\n 24,\n 24,\n 78,\n 14,\n 0,\n 0,\n 0,\n 0,\n 25,\n 118,\n 169,\n 20,\n 211,\n 70,\n 6,\n 126,\n 60,\n 60,\n 57,\n 100,\n 195,\n 149,\n 254,\n 226,\n 8,\n 89,\n 71,\n 144,\n 226,\n 158,\n 222,\n 93,\n 136,\n 172,\n 109,\n 125,\n 222,\n 102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n ]\n }\n },\n {\n \"timestamp\": 1725849486567,\n \"event\": {\n \"type\": \"TakerPaymentSpent\",\n \"data\": {\n \"transaction\": {\n \"tx_hex\": \"0400008085202f8901d85a4e39494b448efb254ba1a52a9fa0d079bd61c57d05c39609475d02fee2ff00000000d74730440220544c5a2eec1e3fb7a2c71e3b6bf3c612300a9c5375ca5c7131742f0afc8a6e8f02206df5b042ec1ff359bf7209269ce3b59d09f5f2340842d5e0a253875624bbce120120d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5004c6b63046d7dde66b1752103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ac6782012088a91491ddaac214398b0b728d652af8d86f2e06fbbb3488210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ac68ffffffff0118184e0e000000001976a9141462c3dd3f936d595c9af55978003b27c250441f88ac6d7dde66000000000000000000000000000000\",\n \"tx_hash\": \"58813eb1037e40425d56146c2f6bfbe70b8bcc18e45b752b51c726503ad4f8df\"\n },\n \"secret\": \"d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5\"\n }\n }\n },\n {\n \"timestamp\": 1725849488871,\n \"event\": {\n \"type\": \"MakerPaymentSpent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f8901a6dc68d451495e19bd8eac2ce2331db003e5561efc45ff4df112339d8b07f67000000000d74730440220286e61b401b1b57b4ddf93294c588a4614e755549168e73c922402ece652d9830220521c7f1df0cbcacf29f55e3a09f2332a6fff25834917307db91072da8f793b030120d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5004c6b6304e39bde66b175210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ac6782012088a91491ddaac214398b0b728d652af8d86f2e06fbbb34882103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ac68ffffffff0118184e0e000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ace39bde66000000000000000000000000000000\",\n \"tx_hash\": \"60f83a68e5851ff93308758763ce30c643bd94ae89f4ae43fe7e02dc88d61642\"\n }\n }\n },\n {\n \"timestamp\": 1725849488872,\n \"event\": {\n \"type\": \"Finished\"\n }\n }\n ],\n \"maker_amount\": \"2.4\",\n \"maker_coin\": \"DOC\",\n \"maker_coin_usd_price\": \"0.0000001\",\n \"taker_amount\": \"2.4\",\n \"taker_coin\": \"MARTY\",\n \"taker_coin_usd_price\": \"0.00000005\",\n \"gui\": \"mm2_777\",\n \"mm_version\": \"2.2.0-beta_2bdee4f\",\n \"success_events\": [\n \"Started\",\n \"Negotiated\",\n \"TakerFeeSent\",\n \"TakerPaymentInstructionsReceived\",\n \"MakerPaymentReceived\",\n \"MakerPaymentWaitConfirmStarted\",\n \"MakerPaymentValidatedAndConfirmed\",\n \"TakerPaymentSent\",\n \"WatcherMessageSent\",\n \"TakerPaymentSpent\",\n \"MakerPaymentSpent\",\n \"MakerPaymentSpentByWatcher\",\n \"Finished\"\n ],\n \"error_events\": [\n \"StartFailed\",\n \"NegotiateFailed\",\n \"TakerFeeSendFailed\",\n \"MakerPaymentValidateFailed\",\n \"MakerPaymentWaitConfirmFailed\",\n \"TakerPaymentTransactionFailed\",\n \"TakerPaymentWaitConfirmFailed\",\n \"TakerPaymentDataSendFailed\",\n \"TakerPaymentWaitForSpendFailed\",\n \"MakerPaymentSpendFailed\",\n \"TakerPaymentWaitRefundStarted\",\n \"TakerPaymentRefundStarted\",\n \"TakerPaymentRefunded\",\n \"TakerPaymentRefundedByWatcher\",\n \"TakerPaymentRefundFailed\",\n \"TakerPaymentRefundFinished\"\n ]\n }\n }\n ],\n \"from_uuid\": null,\n \"skipped\": 0,\n \"limit\": 10,\n \"total\": 1,\n \"page_number\": 1,\n \"total_pages\": 1,\n \"found_records\": 1\n },\n \"id\": null\n}" + } + ] } ] }, @@ -5879,121 +7009,304 @@ ] }, { - "name": "get_current_mtp", - "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);" + "name": "Utility", + "item": [ + { + "name": "get_current_mtp", + "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" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_current_mtp\",\n \"params\": {\n \"coin\": \"DOC\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_current_mtp\",\n \"params\": {\n \"coin\": \"DOC\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "get_public_key", - "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);" + { + "name": "start_gas_fee_estimator", + "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" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], - "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_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_current_mtp\",\n \"params\": {\n \"coin\": \"DOC\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" + { + "name": "get_eth_estimated_fee_per_gas", + "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": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"ETH\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Error: CoinNotSupported", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "188" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:58:16 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Gas fee estimation not supported for this coin\",\n \"error_path\": \"get_estimated_fees\",\n \"error_trace\": \"get_estimated_fees:206]\",\n \"error_type\": \"CoinNotSupported\",\n \"id\": null\n}" + }, + { + "name": "Error: NoSuchCoin", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"DOGE\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "204" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:59:38 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such coin DOGE\",\n \"error_path\": \"get_estimated_fees.lp_coins\",\n \"error_trace\": \"get_estimated_fees:244] lp_coins:4767]\",\n \"error_type\": \"NoSuchCoin\",\n \"error_data\": {\n \"coin\": \"DOGE\"\n },\n \"id\": null\n}" + } ] - } - }, - "response": [] - }, - { - "name": "get_public_key_hash", - "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);" + }, + { + "name": "get_public_key", + "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" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], - "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_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + { + "name": "get_public_key_hash", + "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" + } + } + ], + "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_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] } - }, - "response": [] + ] } ] }, @@ -7923,5 +9236,11 @@ } ] } + ], + "variable": [ + { + "key": "userpass", + "value": "" + } ] } \ No newline at end of file diff --git a/src/data/sidebar.json b/src/data/sidebar.json index de81ee63..c4be2291 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -658,8 +658,8 @@ "href": "/komodo-defi-framework/api/legacy/get_my_peer_id/" }, { - "title": "get_peers_info", - "href": "/komodo-defi-framework/api/legacy/get_peers_info/" + "title": "get_directly_connected_peers", + "href": "/komodo-defi-framework/api/legacy/get_directly_connected_peers/" }, { "title": "get_relay_mesh", diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 6037b269..880cbec8 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,128 +10,128 @@ 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-dev/get_current_mtp/#get-current-mtp) | -| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/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\_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\_peers\_info](/komodo-defi-framework/api/legacy/get_peers_info/#get-peers-info) | | | -| | [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) | | | -| [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\_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) | | | -| [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-dev/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\_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\_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) | | | +| [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\_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) | | | +| [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) | diff --git a/src/pages/komodo-defi-framework/api/legacy/get_peers_info/index.mdx b/src/pages/komodo-defi-framework/api/legacy/get_directly_connected_peers/index.mdx similarity index 75% rename from src/pages/komodo-defi-framework/api/legacy/get_peers_info/index.mdx rename to src/pages/komodo-defi-framework/api/legacy/get_directly_connected_peers/index.mdx index da4efb68..e564297f 100644 --- a/src/pages/komodo-defi-framework/api/legacy/get_peers_info/index.mdx +++ b/src/pages/komodo-defi-framework/api/legacy/get_directly_connected_peers/index.mdx @@ -1,11 +1,9 @@ export const title = "Komodo DeFi Framework Method: Get Peers Info"; -export const description = "The get_peers_info method all connected peers with their multiaddresses."; +export const description = "The get_directly_connected_peers method returns an array of peers (with their multiaddresses) currently connected to the requesting node."; -# get\_peers\_info +# get\_directly\_connected\_peers -**get\_peers\_info** - -The `get_peers_info` method all connected peers with their multiaddresses. See [https://docs.libp2p.io/concepts/addressing/](https://docs.libp2p.io/concepts/addressing/) for more information. +The `get_directly_connected_peers` method all connected peers with their multiaddresses. See [https://docs.libp2p.io/concepts/addressing/](https://docs.libp2p.io/concepts/addressing/) for more information. ## Arguments @@ -19,22 +17,18 @@ The `get_peers_info` method all connected peers with their multiaddresses. See [ | --------------------- | ----- | ---------------------------------------------- | | PeerID-Multiaddresses | Array | All connected peers with their multiaddresses. | -#### 📌 Examples - -#### Command +#### 📌 Example - + ```json { "userpass": "RPC_UserP@SSW0RD", - "method": "get_peers_info" + "method": "get_directly_connected_peers" } ``` - #### Response (success) - ```json { "result": { diff --git a/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx b/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx index 554d85db..c59a30e8 100644 --- a/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx +++ b/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx @@ -125,14 +125,14 @@ The token's contract **must** have `approve` and `transferFrom` methods. Additio * Protocol `"type"` field: `"ETH"` or `"ERC20"` * Protocol `"protocol_data"` field (ERC20 only): `"platform"` - `"ETH"`, `"ETC"` or other Ethereum forks. `"contract_address"` - ERC20 token [checksummed](https://coincodex.com/article/2078/ethereum-address-checksum-explained/) smart contract address. -| Parameter | Type | Description | -| ----------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| chain\_id | integer | To find the EVM chain ID, see [Chainlist](https://chainlist.org/) | +| Parameter | Type | Description | +| ----------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| chain\_id | integer | To find the EVM chain ID, see [Chainlist](https://chainlist.org/) | | gas\_limit | object | Optional, required for tokens only. Defines more precise gas prices for swap or transaction operations. Some tokens are called over proxy contracts which often require more gas, though users may be able to choose higher/lower values than the default where required. See the `Gas Limit Options` table below for more information. | -| protocol.type | string | Platform / protocol - e.g `ETH` for Ethereum, `ERC20` for ERC20 tokens on the Ethereum network | -| protocol.protocol\_data | object | Required for tokens only. | -| protocol.protocol\_data.platform | string | The parent coin of the token's platform - e.g `MATIC` for PLG20 tokens | -| protocol.protocol\_data.contract\_address | string | **Must be mixed case** The identifying hex string for the token's contract. Can be found on sites like [EthScan](https://etherscan.io/), [BscScan](https://bscscan.com/) & [PolygonScan](https://polygonscan.com/) | +| protocol.type | string | Platform / protocol - e.g `ETH` for Ethereum, `ERC20` for ERC20 tokens on the Ethereum network | +| protocol.protocol\_data | object | Required for tokens only. | +| protocol.protocol\_data.platform | string | The parent coin of the token's platform - e.g `MATIC` for PLG20 tokens | +| protocol.protocol\_data.contract\_address | string | **Must be mixed case** The identifying hex string for the token's contract. Can be found on sites like [EthScan](https://etherscan.io/), [BscScan](https://bscscan.com/) & [PolygonScan](https://polygonscan.com/) | ### Gas Limit Options