diff --git a/filepathSlugs.json b/filepathSlugs.json index 7e86ade3..5985817a 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2856,14 +2856,6 @@ "stop-eth-fee-estimator", "response" ], - "src/pages/komodo-defi-framework/api/v20/get_current_mtp/index.mdx": [ - "get-current-mtp", - "arguments", - "response", - "examples", - "command", - "response-success" - ], "src/pages/komodo-defi-framework/api/v20/get_enabled_coins/index.mdx": [ "get-enabled-coins", "parameters", @@ -3034,15 +3026,6 @@ "command", "response-2" ], - "src/pages/komodo-defi-framework/api/v20/peer_connection_healthcheck/index.mdx": [ - "peer-connection-healthcheck", - "arguments", - "response", - "examples", - "command", - "response-peer-found", - "response-peer-not-found" - ], "src/pages/komodo-defi-framework/api/v20/recreate_swap_data/index.mdx": [ "recreate-swap-data", "arguments", @@ -3154,6 +3137,36 @@ "response-success", "response-error-stats-collection-not-running" ], + "src/pages/komodo-defi-framework/api/v20/utils/get_current_mtp/index.mdx": [ + "get-current-mtp", + "arguments", + "response", + "examples", + "command", + "response-success" + ], + "src/pages/komodo-defi-framework/api/v20/utils/get_token_info/index.mdx": [ + "get-token-info", + "arguments", + "response", + "examples", + "get-token-info-on-avalanche", + "response-success", + "error-responses", + "invalid-request-protocol-parent-coin-not-active" + ], + "src/pages/komodo-defi-framework/api/v20/utils/index.mdx": [ + "v2-utility-methods" + ], + "src/pages/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/index.mdx": [ + "peer-connection-healthcheck", + "arguments", + "response", + "examples", + "command", + "response-peer-found", + "response-peer-not-found" + ], "src/pages/komodo-defi-framework/api/v20/withdraw/index.mdx": [ "withdraw", "arguments", diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 92328a2a..ab6b4537 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -4805,13 +4805,13 @@ }, "response": [ { - "name": "ETH", + "name": "AVAX", "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 \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"komodo_proxy\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"komodo_proxy\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4827,7 +4827,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "json", + "_postman_previewlanguage": "plain", "header": [ { "key": "access-control-allow-origin", @@ -4835,22 +4835,56 @@ }, { "key": "content-length", - "value": "778" + "value": "594" }, { "key": "date", - "value": "Fri, 23 Aug 2024 09:54:48 GMT" + "value": "Thu, 14 Nov 2024 06:46:51 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":53054425,\"eth_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\"}},\"erc20_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"tickers\":[]}},\"nfts_infos\":{}},\"id\":null}" + }, + { + "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 \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"komodo_proxy\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" }, { - "key": "Content-Type", - "value": "application/json", - "name": "Content-Type", - "description": "", - "type": "text" + "key": "content-length", + "value": "691" + }, + { + "key": "date", + "value": "Thu, 14 Nov 2024 06:47:57 GMT" } ], "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}" + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":21184239,\"eth_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"balances\":{\"spendable\":\"0\",\"unspendable\":\"0\"}}},\"erc20_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"balances\":{\"MINDS-ERC20\":{\"spendable\":\"0\",\"unspendable\":\"0\"}}}},\"nfts_infos\":{}},\"id\":null}" }, { "name": "BNB", @@ -4883,15 +4917,15 @@ }, { "key": "content-length", - "value": "547" + "value": "605" }, { "key": "date", - "value": "Tue, 27 Aug 2024 04:51:50 GMT" + "value": "Thu, 14 Nov 2024 06:48:20 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}" + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":43995388,\"eth_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\"}},\"erc20_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"tickers\":[\"KMD-BEP20\"]}},\"nfts_infos\":{}},\"id\":null}" }, { "name": "MATIC (without NFTs)", @@ -4916,6 +4950,125 @@ }, "status": "OK", "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "618" + }, + { + "key": "date", + "value": "Thu, 14 Nov 2024 06:48:22 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":64265247,\"eth_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\"}},\"erc20_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"tickers\":[\"PGX-PLG20\",\"AAVE-PLG20\"]}},\"nfts_infos\":{}},\"id\":null}" + }, + { + "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 },\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": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "618" + }, + { + "key": "date", + "value": "Thu, 14 Nov 2024 06:51:50 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":64265343,\"eth_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\"}},\"erc20_addresses_infos\":{\"0x083C32B38e8050473f6999e22f670d1404235592\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"044cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256eb93f0bdb93a767314eaf7455c383a8d1397b0fe80fb5e81ab0e72c7e26fa885\",\"tickers\":[\"AAVE-PLG20\",\"PGX-PLG20\"]}},\"nfts_infos\":{}},\"id\":null}" + } + ] + }, + { + "name": "task::enable_erc20::init", + "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 {\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_erc20::init\",\n \"params\": {\n \"ticker\": \"AAVE\", \n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"ETH\",\n \"contract_address\": \"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9\"\n }\n },\n \"activation_params\": {\n \"required_confirmations\": 3\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Error: contract already exists", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_erc20::init\",\n \"params\": {\n \"ticker\": \"PNIC\", \n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"AVAX\",\n \"contract_address\": \"0x4f3c5C53279536fFcfe8bCafb78E612E933D53c6\"\n }\n },\n \"activation_params\": {\n \"required_confirmations\": 3\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, "_postman_previewlanguage": "json", "header": [ { @@ -4924,11 +5077,11 @@ }, { "key": "content-length", - "value": "560" + "value": "366" }, { "key": "date", - "value": "Mon, 02 Sep 2024 07:03:56 GMT" + "value": "Tue, 19 Nov 2024 09:19:20 GMT" }, { "key": "Content-Type", @@ -4939,16 +5092,16 @@ } ], "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}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Custom token error: Token with the same contract address already exists in coins configs, ticker in config: AAVE-ERC20\",\n \"error_path\": \"init_token.prelude.lp_coins\",\n \"error_trace\": \"init_token:103] prelude:126] lp_coins:4342]\",\n \"error_type\": \"CustomTokenError\",\n \"error_data\": {\n \"DuplicateContractInConfig\": {\n \"ticker_in_config\": \"AAVE-ERC20\"\n }\n },\n \"id\": null\n}" }, { - "name": "MATIC (with NFTs)", + "name": "Success", "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 },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_erc20::init\",\n \"params\": {\n \"ticker\": \"PNIC\", \n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"AVAX\",\n \"contract_address\": \"0x4f3c5C53279536fFcfe8bCafb78E612E933D53c6\"\n }\n },\n \"activation_params\": {\n \"required_confirmations\": 3\n }\n }\n}", "options": { "raw": { "language": "json" @@ -4972,11 +5125,11 @@ }, { "key": "content-length", - "value": "14333" + "value": "48" }, { "key": "date", - "value": "Mon, 02 Sep 2024 07:06:30 GMT" + "value": "Tue, 19 Nov 2024 09:29:41 GMT" }, { "key": "Content-Type", @@ -4987,16 +5140,53 @@ } ], "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}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"task_id\": 0\n },\n \"id\": null\n}" + } + ] + }, + { + "name": "task::enable_erc20::status", + "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 {\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_erc20::status\",\n \"params\": {\n \"task_id\": 0\n }\n}", + "options": { + "raw": { + "language": "json" + } + } }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ { - "name": "AVAX", + "name": "Success", "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 },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"komodo_proxy\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_erc20::status\",\n \"params\": {\n \"task_id\": 0\n }\n}", "options": { "raw": { "language": "json" @@ -5012,7 +5202,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5020,15 +5210,112 @@ }, { "key": "content-length", - "value": "907" + "value": "375" }, { "key": "date", - "value": "Thu, 05 Sep 2024 15:10:58 GMT" + "value": "Tue, 19 Nov 2024 09:31:56 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "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}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"status\": \"Ok\",\n \"details\": {\n \"ticker\": \"PNIC\",\n \"platform_coin\": \"AVAX\",\n \"token_contract_address\": \"0x4f3c5c53279536ffcfe8bcafb78e612e933d53c6\",\n \"current_block\": 53270564,\n \"required_confirmations\": 3,\n \"wallet_balance\": {\n \"wallet_type\": \"Iguana\",\n \"address\": \"0x083C32B38e8050473f6999e22f670d1404235592\",\n \"balance\": {\n \"PNIC\": {\n \"spendable\": \"0\",\n \"unspendable\": \"0\"\n }\n }\n }\n }\n },\n \"id\": null\n}" + } + ] + }, + { + "name": "task::enable_erc20::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", + "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\": \"task::enable_erc20::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": "Error: NoSuchTask", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_erc20::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}}" + ] + } + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "172" + }, + { + "key": "date", + "value": "Tue, 19 Nov 2024 09:35:26 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such task '0'\",\n \"error_path\": \"init_token.manager\",\n \"error_trace\": \"init_token:175] manager:137]\",\n \"error_type\": \"NoSuchTask\",\n \"error_data\": 0,\n \"id\": null\n}" } ] } @@ -10258,6 +10545,144 @@ } ] }, + { + "name": "get_token_info", + "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 \"mmrpc\": \"2.0\",\n \"method\": \"get_token_info\",\n \"params\": {\n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"AVAX\",\n \"contract_address\": \"0x4f3c5C53279536fFcfe8bCafb78E612E933D53c6\"\n }\n }\n }\n // \"id\": null // Accepted values: Integers\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Success", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_token_info\",\n \"params\": {\n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"ETH\",\n \"contract_address\": \"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9\"\n }\n }\n }\n // \"id\": null // Accepted values: Integers\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": "119" + }, + { + "key": "date", + "value": "Tue, 19 Nov 2024 09:24:49 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"config_ticker\": \"AAVE-ERC20\",\n \"type\": \"ERC20\",\n \"info\": {\n \"symbol\": \"AAVE\",\n \"decimals\": 18\n }\n },\n \"id\": null\n}" + }, + { + "name": "Error: Parent coin not active", + "originalRequest": { + "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_token_info\",\n \"params\": {\n \"protocol\": {\n \"type\": \"ERC20\",\n \"protocol_data\": {\n \"platform\": \"AVAX\",\n \"contract_address\": \"0x4f3c5C53279536fFcfe8bCafb78E612E933D53c6\"\n }\n }\n }\n // \"id\": null // Accepted values: Integers\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "181" + }, + { + "key": "date", + "value": "Tue, 19 Nov 2024 09:27:41 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"No such coin AVAX\",\"error_path\":\"tokens.lp_coins\",\"error_trace\":\"tokens:68] lp_coins:4744]\",\"error_type\":\"NoSuchCoin\",\"error_data\":{\"coin\":\"AVAX\"},\"id\":null}" + } + ] + }, { "name": "get_public_key", "event": [ diff --git a/src/data/sidebar.json b/src/data/sidebar.json index 8b6e2784..f35a02a6 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -554,13 +554,21 @@ { "title": "Utility", "links": [ + { + "title": "Overview", + "href": "/komodo-defi-framework/api/v20/utils/" + }, { "title": "peer_connection_healthcheck", - "href": "/komodo-defi-framework/api/v20/peer_connection_healthcheck/" + "href": "/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/" }, { "title": "get_current_mtp", - "href": "/komodo-defi-framework/api/v20/get_current_mtp/" + "href": "/komodo-defi-framework/api/v20/utils/get_current_mtp/" + }, + { + "title": "get_token_info", + "href": "/komodo-defi-framework/api/v20/utils/get_token_info/" } ] } diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 70f7c428..f7952ae3 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,130 +10,136 @@ To test the methods in v2.0 (Dev), you will need to [build the Komodo DeFi Frame Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: -| Legacy | v2.0 (release) | v2.0 (dev) | -| ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | -| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | -| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | -| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | -| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | -| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | -| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | -| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | -| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | -| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | -| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | -| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | -| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | -| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | -| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | -| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | -| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | -| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | -| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | -| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | -| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | -| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | -| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | -| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | -| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | -| | [get\_current\_mtp](/komodo-defi-framework/api/v20/get_current_mtp/#get-current-mtp) | | -| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | -| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | [get\_enabled\_coins](/komodo-defi-framework/api/v20/get_enabled_coins/#get-enabled-coins) | | -| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | -| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | -| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | -| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | -| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | -| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | -| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | -| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | -| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | -| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | -| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | -| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | -| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | -| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | -| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | -| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | -| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | -| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | -| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | -| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | -| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | -| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | -| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | -| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | -| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | -| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | -| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | -| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | -| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | -| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | -| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | -| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | -| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | -| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | -| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | -| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | -| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | -| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | -| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | -| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | -| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | -| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | -| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/peer_connection_healthcheck/#peer-connection-healthcheck) | | -| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | -| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | -| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | -| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | -| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | -| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | -| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | -| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | -| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | -| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | -| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | -| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | -| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | -| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | -| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | -| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | -| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | -| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | -| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | -| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | -| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | -| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | -| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | -| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | -| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | -| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | -| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | -| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | -| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | -| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | -| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | -| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | -| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | -| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | -| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | -| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | -| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | -| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | -| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | -| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | -| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | -| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | -| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | -| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | -| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | -| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | -| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | -| [version](/komodo-defi-framework/api/legacy/version/#version) | | | -| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | -| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | -| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | +| Legacy | v2.0 (release) | v2.0 (dev) | +| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | +| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | +| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | +| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | +| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | +| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | +| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | +| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | +| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | +| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | +| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | +| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | +| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | +| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | +| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | +| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | +| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | +| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | +| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | +| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | +| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | +| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | +| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | +| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | +| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | +| | [get\_current\_mtp](/komodo-defi-framework/api/v20/utils/get_current_mtp/#get-current-mtp) | | +| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | +| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | [get\_enabled\_coins](/komodo-defi-framework/api/v20/get_enabled_coins/#get-enabled-coins) | | +| | [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | | +| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | +| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | +| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | +| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | +| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | +| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | +| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | +| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | +| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | +| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | +| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | +| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | +| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | +| | [get\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/#get-swap-transaction-fee-policy) | | +| | [get\_token\_info](/komodo-defi-framework/api/v20/utils/get_token_info/#get-token-info) | | +| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | +| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | +| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | +| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | +| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | +| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | +| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | +| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | +| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | +| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | +| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | +| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | +| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | +| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | +| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | +| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | +| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | +| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | +| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | +| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | +| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | +| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | +| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | +| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | +| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | +| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | +| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | +| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | +| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/#peer-connection-healthcheck) | | +| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | +| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | +| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | +| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | +| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | +| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | +| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | +| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | +| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | +| | [set\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/#set-swap-transaction-fee-policy) | | +| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | +| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | +| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | +| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | +| | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/#start-eth-fee-estimator) | | +| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | +| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | +| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | +| | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/#stop-eth-fee-estimator) | | +| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | +| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | +| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | +| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | +| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | +| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | +| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | +| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | +| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | +| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | +| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | +| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | +| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | +| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | +| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | +| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | +| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | +| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | +| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | +| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | +| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | +| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | +| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | +| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | +| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | +| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | +| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | +| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | +| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | +| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | +| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | +| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | +| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | +| [version](/komodo-defi-framework/api/legacy/version/#version) | | | +| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | +| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | +| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | diff --git a/src/pages/komodo-defi-framework/api/v20/get_current_mtp/index.mdx b/src/pages/komodo-defi-framework/api/v20/utils/get_current_mtp/index.mdx similarity index 100% rename from src/pages/komodo-defi-framework/api/v20/get_current_mtp/index.mdx rename to src/pages/komodo-defi-framework/api/v20/utils/get_current_mtp/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20/utils/get_token_info/index.mdx b/src/pages/komodo-defi-framework/api/v20/utils/get_token_info/index.mdx new file mode 100644 index 00000000..880a0158 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/utils/get_token_info/index.mdx @@ -0,0 +1,88 @@ +export const title = "Komodo DeFi Framework Method: Get Token Info"; +export const description = "The `get_token_info` method returns the ticker and decimals values (required for activation) given a platform and contract as input."; + +# get\_token\_info + +The `get_token_info` method returns the ticker and decimals values (required for activation) given a platform and contract as input. +The platform parent coin (e.g. ETH, AVAX, MATIC etc) must be activated before using this method. After requesting the token info, you will be able to activate the custom token. + + + Custom tokens will be `wallet_only` - i.e. you can send and recieve tokens, but will not be able to do atomic swaps. + To apply for a formal listing of the custom token, please [review the requirements](/komodo-defi-framework/tutorials/listing-a-new-coin/) in our "coins" github repository, and get in our with our team on the [KomodoPlatform Discord](https://komodoplatform.com/discord). + + +## Arguments + +| Structure | Type | Description | +| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| protocol.type | string | Token type - e.g `ERC20` for 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/) | + +### Response + +| Structure | Type | Description | +| ------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| type | string | Token type - e.g `PLG20` for tokens on the Polygon network | +| info.symbol | string | The ticker of the token linked to the contract address and network requested | +| info.decimals | integer | Defines the number of digits after the decimal point that should be used to display the orderbook amounts, balance, and the value of inputs to be used in the case of order creation or a `withdraw` transaction. The default value used for a UTXO type coin (Bitcoin Protocol) is `8` and the default value used for a ERC20 Token is `18`. It is **very important** for this value to be set correctly. For example, if this value was set as `9` for BTC, a command to withdraw `1 BTC` tries to withdraw `10^9` satoshis of Bitcoin, i.e., `10 BTC` | + +### 📌 Examples + +#### Get Token Info on Avalanche + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "mmrpc": "2.0", + "method": "get_token_info", + "params": { + "protocol": { + "type": "ERC20", + "protocol_data": { + "platform": "AVAX", + "contract_address": "0x4f3c5C53279536fFcfe8bCafb78E612E933D53c6" + } + } + } + } + ``` + + + + #### Response (success) + + ```json + { + "mmrpc": "2.0", + "result": { + "type": "ERC20", + "info": { + "symbol": "PNIC", + "decimals": 18 + } + }, + "id": null + } + ``` + + +### Error Responses + +#### InvalidRequest: Protocol parent coin not active + +```json +{ + "mmrpc": "2.0", + "error": "No such coin AVAX", + "error_path": "tokens.lp_coins", + "error_trace": "tokens:68] lp_coins:4744]", + "error_type": "NoSuchCoin", + "error_data": { + "coin": "AVAX" + }, + "id": null +} +``` diff --git a/src/pages/komodo-defi-framework/api/v20/utils/index.mdx b/src/pages/komodo-defi-framework/api/v20/utils/index.mdx new file mode 100644 index 00000000..ec77e64d --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/utils/index.mdx @@ -0,0 +1,9 @@ +export const title = "Komodo DeFi Framework Method: v2 Utilities"; +export const description = + "This section includes utility methods for the Komodo DeFi Framework."; + +# v2 Utility Methods + +* [get\_current\_mtp](/komodo-defi-framework/api/v20/utils/get_current_mtp/) +* [get\_token\_info](/komodo-defi-framework/api/v20/utils/get_token_info/) +* [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/) diff --git a/src/pages/komodo-defi-framework/api/v20/peer_connection_healthcheck/index.mdx b/src/pages/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/index.mdx similarity index 100% rename from src/pages/komodo-defi-framework/api/v20/peer_connection_healthcheck/index.mdx rename to src/pages/komodo-defi-framework/api/v20/utils/peer_connection_healthcheck/index.mdx