diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 6169ee0f..1152fde3 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -46,7 +46,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"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" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ]\r\n // \"min_connected\": 1, // defaults to 1 when omitted\r\n // \"max_connected\": 3 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -69,7 +69,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ]\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ]\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -146,6 +146,90 @@ ], "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": "Activate KMD", + "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\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ]\r\n // \"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": "215" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 06:40:25 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\"balance\":\"8456.47139458\",\"unspendable_balance\":\"0\",\"coin\":\"KMD\",\"required_confirmations\":2,\"requires_notarization\":true,\"mature_confirmations\":100}" + }, + { + "name": "electrum (UTXO TCP/SSL)", + "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 \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "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": "Thu, 17 Oct 2024 08:57:29 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\"balance\":\"10654.92034535\",\"unspendable_balance\":\"0\",\"coin\":\"DOC\",\"required_confirmations\":1,\"requires_notarization\":false,\"mature_confirmations\":100}" } ] }, @@ -347,7 +431,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "enable ETH/ERC20", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable\",\r\n \"coin\": \"ETH\",\r\n \"urls\": [\r\n \"http://eth1.cipig.net:8555\",\r\n \"http://eth2.cipig.net:8555\",\r\n \"http://eth3.cipig.net:8555\"\r\n ],\r\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\"\r\n // \"fallback_swap_contract\": null, // Accepted values: Strings\r\n // \"gas_station_url\": null, // Accepted values: Strings\r\n // \"gas_station_decimals\": 8,\r\n // \"gas_station_policy\": {\r\n // \"policy\": \"MeanAverageFast\" // Accepted values: \"MeanAverageFast\", \"Average\"\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}" + }, + "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": "204" + }, + { + "key": "date", + "value": "Fri, 13 Sep 2024 07:59:15 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\",\"address\":\"0xaB95D01Bc8214E4D993043E8Ca1B68dB2c946498\",\"balance\":\"0.086762578016820988\",\"unspendable_balance\":\"0\",\"coin\":\"ETH\",\"required_confirmations\":3,\"requires_notarization\":false}" + } + ] }, { "name": "enable QTUM", @@ -506,7 +633,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_enabled_coins", + "originalRequest": { + "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}\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": "78" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:21:20 GMT" + } + ], + "cookie": [], + "body": "{\"result\":[{\"ticker\":\"MARTY\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"}]}" + } + ] } ] }, @@ -872,7 +1042,57 @@ ] } }, - "response": [] + "response": [ + { + "name": "kmd_rewards_info", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"kmd_rewards_info\"\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": "272" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 06:42:18 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"result\": [\n {\n \"tx_hash\": \"00a255d0746708b94010b144e12c3ba5fe53381f6d4d979bf6d8ba8e8788a0aa\",\n \"height\": 4091835,\n \"output_index\": 2,\n \"amount\": \"8456.47139458\",\n \"locktime\": 1725893238,\n \"accrued_rewards\": {\n \"Accrued\": \"0.00606555\"\n },\n \"accrue_start_at\": 1725896838,\n \"accrue_stop_at\": 1728571638\n }\n ]\n}" + } + ] }, { "name": "my_balance", @@ -912,53 +1132,99 @@ }, "description": "Returns the confirmed and unconfirmed balance of the requested coin." }, - "response": [] - }, - { - "name": "my_tx_history", - "event": [ + "response": [ { - "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": "Error: Coin not active", + "originalRequest": { + "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 \"method\": \"my_tx_history\",\r\n \"coin\": \"DOC\"\r\n // \"from_id\": null, // Accepted values: Strings\r\n // \"max\": false,\r\n // \"limit\": 10,\r\n // \"page_number\": 1, // used only if: \"from_id\": null\r\n\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "send_raw_transaction", - "event": [ - { - "listen": "prerequest", - "script": { + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_balance\",\r\n \"coin\": \"ATOM\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "86" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 06:38:06 GMT" + } + ], + "cookie": [], + "body": "{\"error\":\"rpc:215] dispatcher_legacy:141] lp_commands_legacy:231] No such coin: ATOM\"}" + }, + { + "name": "my_balance", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_balance\",\r\n \"coin\": \"DOC\"\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": "114" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 06:41:51 GMT" + } + ], + "cookie": [], + "body": "{\"coin\":\"DOC\",\"balance\":\"10636.92038535\",\"unspendable_balance\":\"0\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"}" + } + ] + }, + { + "name": "my_tx_history", + "event": [ + { + "listen": "prerequest", + "script": { "exec": [ "// Strip JSON Comments\r", "const rawData = pm.request.body.toString();\r", @@ -981,7 +1247,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"send_raw_transaction\",\r\n \"coin\": \"DOC\",\r\n \"tx_hex\": \"0400008085202f8901ebec086d37ee2526668c4d3e8cbf381c09894f8fa32a237f9544cf036faaa61100000000d74730440220505b138301498c3b9ca86eee170f6ee6aa1023a8c1ce52b4648073e102849ce6022009293a0e928cc6a0a2a540606a0e578693f32e205054b268bfd0c569884ca22a0120b4e3edc80c28c4d470ff0ca415da8cd74210b5eb64fe4703a41e74d7d45bdafb004c6b630473a13061b1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a91478daeddb10bd92635a15360cdadf5f674e4f38888821031ac6d25833a5961e2a8822b2e8b0ac1fd55d90cbbbb18a780552cbd66fc02bb3ac68ffffffff01b8820100000000001976a9149a85cc05e9a722575feb770a217c73fd6145cf0188ac73a13061000000000000000000000000000000\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_tx_history\",\r\n \"coin\": \"DOC\"\r\n // \"from_id\": null, // Accepted values: Strings\r\n // \"max\": false,\r\n // \"limit\": 10,\r\n // \"page_number\": 1, // used only if: \"from_id\": null\r\n\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -992,6 +1258,88 @@ }, "response": [] }, + { + "name": "send_raw_transaction", + "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\": \"send_raw_transaction\",\r\n \"coin\": \"DOC\",\r\n \"tx_hex\": \"0400008085202f8901ebec086d37ee2526668c4d3e8cbf381c09894f8fa32a237f9544cf036faaa61100000000d74730440220505b138301498c3b9ca86eee170f6ee6aa1023a8c1ce52b4648073e102849ce6022009293a0e928cc6a0a2a540606a0e578693f32e205054b268bfd0c569884ca22a0120b4e3edc80c28c4d470ff0ca415da8cd74210b5eb64fe4703a41e74d7d45bdafb004c6b630473a13061b1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a91478daeddb10bd92635a15360cdadf5f674e4f38888821031ac6d25833a5961e2a8822b2e8b0ac1fd55d90cbbbb18a780552cbd66fc02bb3ac68ffffffff01b8820100000000001976a9149a85cc05e9a722575feb770a217c73fd6145cf0188ac73a13061000000000000000000000000000000\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "send_raw_transaction", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"send_raw_transaction\",\r\n \"coin\": \"IRIS\",\r\n \"tx_hex\": \"0a9f020ab7010a292f6962632e6170706c69636174696f6e732e7472616e736665722e76312e4d73675472616e736665721289010a087472616e7366657212096368616e6e656c2d331a0f0a0575697269731206313030303030222a6961613136647271766c33753873756b667375346c6d3371736b32386a72336661686a6139767376366b2a2b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a6163347264773438eed285fe8b98e6fa17125e576520617265206d6f7265206f6674656e20667269676874656e6564207468616e20687572743b20616e6420776520737566666572206d6f72652066726f6d20696d6167696e6174696f6e207468616e2066726f6d207265616c6974792e18e28cdb0c12680a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc212040a020801185d12140a0e0a0575697269731205313038323110e0c65b1a4078d2d1360fc0b091cb34c07f1beec957f88324688210852832ad121d1de7a3c737279b55783f10522733becc79ecdb5db565bd8626a8109a3be62196268d2ff9\"\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": "78" + }, + { + "key": "date", + "value": "Mon, 16 Sep 2024 02:19:30 GMT" + } + ], + "cookie": [], + "body": "{\"tx_hash\":\"D87E4345B9C2091E7670EB1D527970040AA725385571D7F85711C282C6D468D9\"}" + } + ] + }, { "name": "show_priv_key", "event": [ @@ -1916,7 +2264,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -1931,7 +2280,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\"\r\n // \"limit\": 10,\r\n // \"page_number\": 1,\r\n // \"from_uuid\": null, // Accepted values: Strings\r\n // \"my_coin\": null, // Accepted values: Strings\r\n // \"other_coin\": null, // Accepted values: Strings\r\n // \"from_timestamp\": null, // Accepted values: Integers\r\n // \"to_timestamp\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\",\r\n // \"limit\": 10,\r\n // \"page_number\": 1,\r\n \"from_uuid\": \"fc72979a-68f6-422a-ade0-42dd7faaf421\"\r\n // \"my_coin\": null, // Accepted values: Strings\r\n // \"other_coin\": null, // Accepted values: Strings\r\n // \"from_timestamp\": null, // Accepted values: Integers\r\n // \"to_timestamp\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -1940,88 +2289,170 @@ ] } }, - "response": [] - }, - { - "name": "my_swap_status", - "event": [ + "response": [ { - "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": "no filters", + "originalRequest": { + "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 \"method\": \"my_swap_status\",\r\n \"params\": {\r\n \"uuid\": \"99041f7f-a4cd-4d79-a9df-55440345ed75\"\r\n }\r\n}\r\n" + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\"\r\n // \"limit\": 10,\r\n // \"page_number\": 1,\r\n // \"from_uuid\": null, // Accepted values: Strings\r\n // \"my_coin\": null, // Accepted values: Strings\r\n // \"other_coin\": null, // Accepted values: Strings\r\n // \"from_timestamp\": null, // Accepted values: Integers\r\n // \"to_timestamp\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "9085" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 16:01:27 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"result\": {\n \"swaps\": [\n {\n \"type\": \"Taker\",\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 \"my_info\": {\n \"my_coin\": \"MARTY\",\n \"other_coin\": \"DOC\",\n \"my_amount\": \"2.4\",\n \"other_amount\": \"2.4\",\n \"started_at\": 1725849333\n },\n \"recoverable\": false,\n \"is_finished\": true\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}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "recover_funds_of_swap", - "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": "Error: Invalid uuid", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "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 \"method\": \"recover_funds_of_swap\",\r\n \"params\": {\r\n \"uuid\": \"99041f7f-a4cd-4d79-a9df-55440345ed75\"\r\n }\r\n}\r\n" + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\",\r\n // \"limit\": 10,\r\n // \"page_number\": 1,\r\n \"from_uuid\": \"e299c6ece7a7ddc42444eda64d46b163eaa992da65ce6de24eb812d715184e41\"\r\n // \"my_coin\": null, // Accepted values: Strings\r\n // \"other_coin\": null, // Accepted values: Strings\r\n // \"from_timestamp\": null, // Accepted values: Integers\r\n // \"to_timestamp\": null // Accepted values: Integers\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "141" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 16:02:22 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"error\": \"rpc:215] dispatcher_legacy:141] lp_swap:1298] UUID parsing failed: invalid length: expected length 32 for simple format, found 64\"\n}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + { + "name": "Error: SQL", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_recent_swaps\",\r\n // \"limit\": 10,\r\n // \"page_number\": 1,\r\n \"from_uuid\": \"fc72979a-68f6-422a-ade0-42dd7faaf421\"\r\n // \"my_coin\": null, // Accepted values: Strings\r\n // \"other_coin\": null, // Accepted values: Strings\r\n // \"from_timestamp\": null, // Accepted values: Integers\r\n // \"to_timestamp\": null // Accepted values: Integers\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "121" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 16:04:43 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"error\": \"rpc:215] dispatcher_legacy:141] lp_swap:1299] my_swaps_storage:102] Unknown SQL error: Query returned no rows\"\n}" } - }, - "response": [] + ] }, { - "name": "set_required_confirmations", + "name": "my_swap_status", "event": [ { "listen": "prerequest", @@ -2048,7 +2479,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"set_required_confirmations\",\r\n \"coin\": \"DOC\",\r\n \"confirmations\": 3\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_swap_status\",\r\n \"params\": {\r\n \"uuid\": \"99041f7f-a4cd-4d79-a9df-55440345ed75\"\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2060,7 +2491,7 @@ "response": [] }, { - "name": "set_requires_notarization", + "name": "recover_funds_of_swap", "event": [ { "listen": "prerequest", @@ -2087,7 +2518,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"set_requires_notarization\",\r\n \"coin\": \"DOC\",\r\n \"requires_notarization\": true\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"recover_funds_of_swap\",\r\n \"params\": {\r\n \"uuid\": \"99041f7f-a4cd-4d79-a9df-55440345ed75\"\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2099,7 +2530,7 @@ "response": [] }, { - "name": "stats_swap_status", + "name": "set_required_confirmations", "event": [ { "listen": "prerequest", @@ -2126,7 +2557,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"stats_swap_status\",\r\n \"params\": {\r\n \"uuid\": \"dad06692-399a-4a05-a6fc-4e4cbe6d227d\"\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"set_required_confirmations\",\r\n \"coin\": \"DOC\",\r\n \"confirmations\": 3\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2136,14 +2567,9 @@ } }, "response": [] - } - ] - }, - { - "name": "P2P", - "item": [ + }, { - "name": "ban_pubkey", + "name": "set_requires_notarization", "event": [ { "listen": "prerequest", @@ -2170,7 +2596,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"ban_pubkey\",\r\n \"pubkey\": \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n \"reason\": \"test\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"set_requires_notarization\",\r\n \"coin\": \"DOC\",\r\n \"requires_notarization\": true\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2182,7 +2608,7 @@ "response": [] }, { - "name": "get_gossip_mesh", + "name": "stats_swap_status", "event": [ { "listen": "prerequest", @@ -2209,7 +2635,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_mesh\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"stats_swap_status\",\r\n \"params\": {\r\n \"uuid\": \"dad06692-399a-4a05-a6fc-4e4cbe6d227d\"\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2219,9 +2645,14 @@ } }, "response": [] - }, + } + ] + }, + { + "name": "P2P", + "item": [ { - "name": "get_gossip_peer_topics", + "name": "ban_pubkey", "event": [ { "listen": "prerequest", @@ -2248,7 +2679,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_peer_topics\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"ban_pubkey\",\r\n \"pubkey\": \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n \"reason\": \"test\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2257,10 +2688,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "ban_pubkey", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"ban_pubkey\",\r\n \"pubkey\": \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n \"reason\": \"test\"\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": "20" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:33 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\"}" + } + ] }, { - "name": "get_gossip_topic_peers", + "name": "get_gossip_mesh", "event": [ { "listen": "prerequest", @@ -2287,7 +2761,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_topic_peers\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_mesh\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2296,10 +2770,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_gossip_mesh", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_mesh\"\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": "13" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:20 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{}}" + } + ] }, { - "name": "get_my_peer_id", + "name": "get_gossip_peer_topics", "event": [ { "listen": "prerequest", @@ -2326,7 +2843,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_my_peer_id\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_peer_topics\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2335,49 +2852,53 @@ ] } }, - "response": [] - }, - { - "name": "get_peers_info", - "event": [ + "response": [ { - "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_gossip_peer_topics", + "originalRequest": { + "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 \"method\": \"get_peers_info\"\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_peer_topics\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "128" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:12 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"12D3KooWEaZpH61H4yuQkaNG5AsyGdpBhKRppaLdAY52a774ab5u\":[],\"12D3KooWHKkHiNhZtKceQehHhPqwU5W1jXpoVBgS1qst899GjvTm\":[]}}" } - }, - "response": [] + ] }, { - "name": "get_relay_mesh", + "name": "get_gossip_topic_peers", "event": [ { "listen": "prerequest", @@ -2404,7 +2925,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_relay_mesh\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_topic_peers\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2413,10 +2934,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_gossip_topic_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_gossip_topic_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": "13" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:04 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{}}" + } + ] }, { - "name": "list_banned_pubkeys", + "name": "get_my_peer_id", "event": [ { "listen": "prerequest", @@ -2443,7 +3007,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"list_banned_pubkeys\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_my_peer_id\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2452,10 +3016,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_my_peer_id", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_my_peer_id\"\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": "65" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:13:45 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"12D3KooWD571QeWTQAwuTGjPb23WaopKSiKgZ2fp6SkWbaXTjvjK\"}" + } + ] }, { - "name": "unban_pubkeys", + "name": "get_directly_connected_peers", "event": [ { "listen": "prerequest", @@ -2467,7 +3074,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -2482,7 +3090,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"unban_pubkeys\",\r\n \"unban_by\": {\r\n \"type\": \"All\" // Accepted values: \"All\", \"Few\"\r\n // \"data\": [\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520560\"\r\n // ] // Required only if: \"type\": \"Few\"\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_directly_connected_peers\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2491,15 +3099,53 @@ ] } }, - "response": [] - } - ] - }, - { - "name": "Utility", - "item": [ + "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": "help", + "name": "get_relay_mesh", "event": [ { "listen": "prerequest", @@ -2526,7 +3172,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"help\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_relay_mesh\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2535,10 +3181,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_relay_mesh", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_relay_mesh\"\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": "122" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:42 GMT" + } + ], + "cookie": [], + "body": "{\"result\":[\"12D3KooWEaZpH61H4yuQkaNG5AsyGdpBhKRppaLdAY52a774ab5u\",\"12D3KooWHKkHiNhZtKceQehHhPqwU5W1jXpoVBgS1qst899GjvTm\"]}" + } + ] }, { - "name": "metrics", + "name": "list_banned_pubkeys", "event": [ { "listen": "prerequest", @@ -2565,7 +3254,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"metrics\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"list_banned_pubkeys\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2574,25 +3263,68 @@ ] } }, - "response": [] - }, - { - "name": "version", - "event": [ + "response": [ { - "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": "list_banned_pubkeys", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"list_banned_pubkeys\"\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": "113" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:14:51 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\":{\"type\":\"Manual\",\"reason\":\"test\"}}}" + } + ] + }, + { + "name": "unban_pubkeys", + "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": [ @@ -2604,7 +3336,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"version\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"unban_pubkeys\",\r\n \"unban_by\": {\r\n \"type\": \"All\" // Accepted values: \"All\", \"Few\"\r\n // \"data\": [\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520560\"\r\n // ] // Required only if: \"type\": \"Few\"\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2613,15 +3345,58 @@ ] } }, - "response": [] + "response": [ + { + "name": "unban_pubkeys", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"unban_pubkeys\",\r\n \"unban_by\": {\r\n \"type\": \"All\" // Accepted values: \"All\", \"Few\"\r\n // \"data\": [\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\",\r\n // \"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520560\"\r\n // ] // Required only if: \"type\": \"Few\"\r\n }\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "165" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:15:02 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"still_banned\":{},\"unbanned\":{\"2cd3021a2197361fb70b862c412bc8e44cff6951fa1de45ceabfdd9b4c520420\":{\"type\":\"Manual\",\"reason\":\"test\"}},\"were_not_banned\":[]}}" + } + ] } ] }, { - "name": "Stop", + "name": "Utility", "item": [ { - "name": "sim_panic", + "name": "help", "event": [ { "listen": "prerequest", @@ -2648,7 +3423,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"sim_panic\"\r\n // \"mode\": \"\" // Accepted values: \"\", \"simple\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"help\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2660,7 +3435,7 @@ "response": [] }, { - "name": "stop", + "name": "metrics", "event": [ { "listen": "prerequest", @@ -2687,7 +3462,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"stop\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"metrics\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2696,39 +3471,10 @@ ] } }, - "response": [] - } - ] - } - ] - }, - { - "name": "v2", - "item": [ - { - "name": "Coin Activation", - "item": [ - { - "name": "UTXO", - "item": [ + "response": [ { - "name": "task::enable_utxo::init", - "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": { + "name": "metrics", + "originalRequest": { "method": "POST", "header": [ { @@ -2739,7 +3485,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::init\",\r\n \"params\": {\r\n \"ticker\":\"DOC\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\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 } // Required only if: \"rpc\": \"Electrum\"\r\n }\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 // \"min_addresses_number\": 3 // used only if \"priv_key_policy\": \"Trezor\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"metrics\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2748,65 +3494,73 @@ ] } }, - "response": [] - }, - { - "name": "task::enable_utxo::status", - "event": [ + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ { - "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" - } + "key": "content-type", + "value": "application/json" + }, + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "543" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:20:02 GMT" } ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } + "cookie": [], + "body": "{\n \"metrics\": [\n {\n \"type\": \"gauge\",\n \"key\": \"p2p.received_messages.period_in_secs\",\n \"labels\": {},\n \"value\": 60\n },\n {\n \"type\": \"gauge\",\n \"key\": \"p2p.received_messages.count\",\n \"labels\": {},\n \"value\": 0\n },\n {\n \"type\": \"gauge\",\n \"key\": \"orderbook.memory_db\",\n \"labels\": {},\n \"value\": 7813573027962636000\n },\n {\n \"type\": \"gauge\",\n \"key\": \"p2p.relay_mesh.len\",\n \"labels\": {},\n \"value\": 2\n },\n {\n \"type\": \"gauge\",\n \"key\": \"orderbook.len\",\n \"labels\": {},\n \"value\": 0\n },\n {\n \"type\": \"gauge\",\n \"key\": \"p2p.connected_peers.count\",\n \"labels\": {},\n \"value\": 3\n },\n {\n \"type\": \"gauge\",\n \"key\": \"p2p.connected_relays.len\",\n \"labels\": {},\n \"value\": 2\n }\n ]\n}" + } + ] + }, + { + "name": "version", + "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);" ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::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": [] + "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\": \"version\"\r\n}\r\n" }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ { - "name": "task::enable_utxo::user_action", - "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": { + "name": "version", + "originalRequest": { "method": "POST", "header": [ { @@ -2817,7 +3571,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"version\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2826,54 +3580,130 @@ ] } }, - "response": [] - }, - { - "name": "task::enable_utxo::cancel", - "event": [ + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ { - "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_utxo::cancel\",\r\n \"params\": {\r\n \"task_id\": 0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "key": "content-type", + "value": "application/json" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "70" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:20:12 GMT" } - }, - "response": [] + ], + "cookie": [], + "body": "{\n \"result\": \"2.2.0-beta_d1a8ea7\",\n \"datetime\": \"2024-09-10T09:26:03+03:00\"\n}" } ] + } + ] + }, + { + "name": "Stop", + "item": [ + { + "name": "sim_panic", + "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\": \"sim_panic\"\r\n // \"mode\": \"\" // Accepted values: \"\", \"simple\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] }, { - "name": "QTUM", + "name": "stop", + "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\": \"stop\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + } + ] + }, + { + "name": "v2", + "item": [ + { + "name": "Coin Activation", + "item": [ + { + "name": "UTXO", "item": [ { - "name": "task::enable_qtum::init", + "name": "task::enable_utxo::init", "event": [ { "listen": "prerequest", @@ -2885,7 +3715,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -2900,7 +3731,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::init\",\r\n \"params\": {\r\n \"ticker\":\"tQTUM\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10071\"\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:10071\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10071\"\r\n }\r\n ]\r\n } // Required only if: \"rpc\": \"Electrum\"\r\n }\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\"\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 // \"min_addresses_number\": 3 // used only if \"priv_key_policy\": \"Trezor\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::init\",\r\n \"params\": {\r\n \"ticker\":\"KMD\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:20001\",\r\n \"protocol\": \"SSL\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:20001\",\r\n \"protocol\": \"SSL\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:20001\",\r\n \"protocol\": \"SSL\"\r\n }\r\n ]\r\n } // Required only if: \"rpc\": \"Electrum\"\r\n }\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 // \"min_addresses_number\": 3 // used only if \"priv_key_policy\": \"Trezor\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2912,7 +3743,7 @@ "response": [] }, { - "name": "task::enable_qtum::status", + "name": "task::enable_utxo::status", "event": [ { "listen": "prerequest", @@ -2939,7 +3770,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::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}}", @@ -2948,10 +3779,102 @@ ] } }, - "response": [] + "response": [ + { + "name": "task::enable_utxo::status (RequestingWalletBalance)", + "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_utxo::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}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "94" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 12:58:55 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"status\":\"InProgress\",\"details\":\"RequestingWalletBalance\"},\"id\":null}" + }, + { + "name": "task::enable_utxo::status (complete)", + "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_utxo::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}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "426" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 12:59:15 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"status\": \"Ok\",\n \"details\": {\n \"ticker\": \"KMD\",\n \"current_block\": 4141373,\n \"wallet_balance\": {\n \"wallet_type\": \"HD\",\n \"accounts\": [\n {\n \"account_index\": 0,\n \"derivation_path\": \"m/44'/141'/0'\",\n \"total_balance\": {\n \"spendable\": \"20\",\n \"unspendable\": \"0\"\n },\n \"addresses\": [\n {\n \"address\": \"RMC1cWXngQf2117apEKoLh3x27NoG88yzd\",\n \"derivation_path\": \"m/44'/141'/0'/0/0\",\n \"chain\": \"External\",\n \"balance\": {\n \"spendable\": \"20\",\n \"unspendable\": \"0\"\n }\n }\n ]\n }\n ]\n }\n }\n },\n \"id\": null\n}" + } + ] }, { - "name": "task::enable_qtum::user_action", + "name": "task::enable_utxo::user_action", "event": [ { "listen": "prerequest", @@ -2978,7 +3901,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2990,7 +3913,7 @@ "response": [] }, { - "name": "task::enable_qtum::cancel", + "name": "task::enable_utxo::cancel", "event": [ { "listen": "prerequest", @@ -3017,7 +3940,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_utxo::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}}", @@ -3031,10 +3954,10 @@ ] }, { - "name": "BCH", + "name": "QTUM", "item": [ { - "name": "enable_bch_with_tokens", + "name": "task::enable_qtum::init", "event": [ { "listen": "prerequest", @@ -3061,7 +3984,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"enable_bch_with_tokens\",\r\n \"params\": {\r\n \"ticker\":\"tBCH\",\r\n // \"allow_slp_unsafe_conf\":false,\r\n \"bchd_urls\":[\r\n \"https://bchd-testnet.electroncash.de:18335\" // Required only if: \"allow_slp_unsafe_conf\": false\r\n ],\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\r\n \"servers\": [\r\n {\r\n \"url\": \"electroncash.de:50003\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"tbch.loping.net:60001\"\r\n },\r\n {\r\n \"url\": \"blackie.c3-soft.com:60001\"\r\n },\r\n {\r\n \"url\": \"bch0.kister.net:51001\"\r\n }\r\n ]\r\n } // Required only if: \"rpc\": \"Electrum\"\r\n },\r\n \"slp_tokens_requests\":[\r\n {\r\n \"ticker\":\"USDF\"\r\n // \"required_confirmations\": 1 // Default: Coin Config, Platform Coin Required Confirmation\r\n }\r\n ]\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"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 // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::init\",\r\n \"params\": {\r\n \"ticker\":\"tQTUM\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10071\"\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:10071\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10071\"\r\n }\r\n ]\r\n } // Required only if: \"rpc\": \"Electrum\"\r\n }\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\"\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 // \"min_addresses_number\": 3 // used only if \"priv_key_policy\": \"Trezor\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -3073,7 +3996,7 @@ "response": [] }, { - "name": "enable_slp", + "name": "task::enable_qtum::status", "event": [ { "listen": "prerequest", @@ -3100,7 +4023,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"enable_slp\",\r\n \"params\":{\r\n \"ticker\":\"sTST\",\r\n \"activation_params\": {\r\n // \"required_confirmations\": 1 // Default: Coin Config, Platform Coin Required Confirmation\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::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}}", @@ -3110,14 +4033,9 @@ } }, "response": [] - } - ] - }, - { - "name": "ZCOIN", - "item": [ + }, { - "name": "task::enable_z_coin::init", + "name": "task::enable_qtum::user_action", "event": [ { "listen": "prerequest", @@ -3144,7 +4062,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_z_coin::init\",\r\n \"params\": {\r\n \"ticker\": \"ZOMBIE\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\": \"Light\", // Accepted values: \"Native\", \"Light\"\r\n \"rpc_data\": {\r\n \"electrum_servers\": [\r\n {\r\n \"url\": \"zombie.dragonhound.info:10033\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n }\r\n ],\r\n \"light_wallet_d_servers\": [\r\n \"http://zombie.sirseven.me:443\",\r\n \"http://zombie.dragonhound.info:443\"\r\n ]\r\n } // Required only if: \"rpc\": \"Light\"\r\n }\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::enable_qtum::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -3156,7 +4074,173 @@ "response": [] }, { - "name": "task::enable_z_coin::status", + "name": "task::enable_qtum::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_qtum::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": "BCH", + "item": [ + { + "name": "enable_bch_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);" + ], + "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\": \"enable_bch_with_tokens\",\r\n \"params\": {\r\n \"ticker\":\"tBCH\",\r\n // \"allow_slp_unsafe_conf\":false,\r\n \"bchd_urls\":[\r\n \"https://bchd-testnet.electroncash.de:18335\" // Required only if: \"allow_slp_unsafe_conf\": false\r\n ],\r\n \"mode\": {\r\n \"rpc\":\"Electrum\", // Accepted values: \"Electrum\", \"Native\"\r\n \"rpc_data\": {\r\n \"servers\": [\r\n {\r\n \"url\": \"electroncash.de:50003\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"tbch.loping.net:60001\"\r\n },\r\n {\r\n \"url\": \"blackie.c3-soft.com:60001\"\r\n },\r\n {\r\n \"url\": \"bch0.kister.net:51001\"\r\n }\r\n ]\r\n } // Required only if: \"rpc\": \"Electrum\"\r\n },\r\n \"slp_tokens_requests\":[\r\n {\r\n \"ticker\":\"USDF\"\r\n // \"required_confirmations\": 1 // Default: Coin Config, Platform Coin Required Confirmation\r\n }\r\n ]\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"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 // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "enable_slp", + "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\": \"enable_slp\",\r\n \"params\":{\r\n \"ticker\":\"sTST\",\r\n \"activation_params\": {\r\n // \"required_confirmations\": 1 // Default: Coin Config, Platform Coin Required Confirmation\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "ZCOIN", + "item": [ + { + "name": "task::enable_z_coin::init", + "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::init\",\r\n \"params\": {\r\n \"ticker\": \"ZOMBIE\",\r\n \"activation_params\": {\r\n \"mode\": {\r\n \"rpc\": \"Light\", // Accepted values: \"Native\", \"Light\"\r\n \"rpc_data\": {\r\n \"electrum_servers\": [\r\n {\r\n \"url\": \"zombie.dragonhound.info:10033\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n }\r\n ],\r\n \"light_wallet_d_servers\": [\r\n \"http://zombie.sirseven.me:443\",\r\n \"http://zombie.dragonhound.info:443\"\r\n ]\r\n } // Required only if: \"rpc\": \"Light\"\r\n }\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "task::enable_z_coin::status", "event": [ { "listen": "prerequest", @@ -3380,7 +4464,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"rpc_mode\": \"Default\", // Accepted values: Default, Metamask\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -3402,7 +4486,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"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\": \"APE-ERC20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"BCH-ERC20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"BUSD-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"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" @@ -3418,7 +4502,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -3431,10 +4515,17 @@ { "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": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":20590537,\"eth_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\",\"balances\":{\"spendable\":\"0\",\"unspendable\":\"0\"}}},\"erc20_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\",\"balances\":{\"BUSD-ERC20\":{\"spendable\":\"0\",\"unspendable\":\"0\"},\"MINDS-ERC20\":{\"spendable\":\"0\",\"unspendable\":\"0\"},\"APE-ERC20\":{\"spendable\":\"0\",\"unspendable\":\"0\"},\"BCH-ERC20\":{\"spendable\":\"0\",\"unspendable\":\"0\"}}}},\"nfts_infos\":{}},\"id\":null}" + "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", @@ -3650,7 +4741,7 @@ ], "body": { "mode": "raw", - "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" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_token\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM-IBC_OSMO\",\r\n \"activation_params\": {\r\n \"required_confirmations\": 3\r\n }\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -3659,88 +4750,449 @@ ] } }, - "response": [] - }, - { - "name": "enable_tendermint_with_assets", - "event": [ + "response": [ { - "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": "Error: TokenIsAlreadyActivated", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "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 \"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" + "body": { + "mode": "raw", + "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}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "192" + }, + { + "key": "date", + "value": "Wed, 11 Sep 2024 08:51:08 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Token ATOM-IBC_IRIS is already activated\",\"error_path\":\"token\",\"error_trace\":\"token:121]\",\"error_type\":\"TokenIsAlreadyActivated\",\"error_data\":\"ATOM-IBC_IRIS\",\"id\":null}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - } - ] - }, - { - "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" + { + "name": "Activate ATOM-IBC_OSMO", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "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}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "160" + }, + { + "key": "date", + "value": "Wed, 11 Sep 2024 08:52:45 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"balances\":{\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}},\"platform_coin\":\"IRIS\"},\"id\":null}" + }, + { + "name": "Activate IRIS-IBC_OSMO", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_token\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS-IBC_OSMO\",\r\n \"activation_params\": {\r\n \"required_confirmations\": 3\r\n }\r\n }\r\n}\r\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": "154" + }, + { + "key": "date", + "value": "Mon, 16 Sep 2024 02:12:45 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"balances\": {\n \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\": {\n \"spendable\": \"0\",\n \"unspendable\": \"0\"\n }\n },\n \"platform_coin\": \"OSMO\"\n },\n \"id\": null\n}" + } + ] }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" + { + "name": "enable_tendermint_with_assets", + "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 \"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}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Activate IRIS without assets", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\":[\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + }, + "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": "207" + }, + { + "key": "date", + "value": "Wed, 11 Sep 2024 08:52:01 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591691,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + }, + { + "name": "v2.2.0+", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + }, + "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": "265" + }, + { + "key": "date", + "value": "Wed, 11 Sep 2024 09:23:10 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591996,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + }, + { + "name": "<= v2.1.0", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"rpc_urls\": [\r\n \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ]\r\n }\r\n }" + }, + "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": "265" + }, + { + "key": "date", + "value": "Wed, 11 Sep 2024 09:26:35 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26592029,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + }, + { + "name": "enable_tendermint_with_assets", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + }, + "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": "190" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 06:35:42 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"IRIS\",\n \"error_path\": \"platform_coin_with_tokens\",\n \"error_trace\": \"platform_coin_with_tokens:447]\",\n \"error_type\": \"PlatformIsAlreadyActivated\",\n \"error_data\": \"IRIS\",\n \"id\": null\n}" + }, + { + "name": "Activate ATOM", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://cosmos-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://cosmos-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://cosmos-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://cosmos-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://cosmoshub.rpc.stakin-nodes.com/\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + }, + "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": "209" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 08:21:46 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"ATOM\",\"address\":\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\",\"current_block\":22148347,\"balance\":{\"spendable\":\"1.003381\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + }, + { + "name": "Activate OSMO", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"OSMO\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://rpc.osmosis.zone/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis.rpc.stakin-nodes.com\"\r\n },\r\n {\r\n \"url\": \"https://rpc-osmosis-ia.cosmosia.notional.ventures/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://osmosis-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://osmosis-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://osmosis-rpc.alpha.komodo.earth/websocket\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + }, + "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": "207" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 08:43:47 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"OSMO\",\"address\":\"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\"current_block\":20733754,\"balance\":{\"spendable\":\"7.994016\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + } ] } - }, - "response": [] + ] } ] }, @@ -4433,11 +5885,260 @@ "{{address}}" ] } - }, - "response": [] - }, - { - "name": "task::account_balance::init", + }, + "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", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"add_delegation\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\",\r\n \"staking_details\": {\r\n \"type\": \"Qtum\",\r\n \"address\": \"qcyBHeSct7Wr4mAw18iuQ1zW5mMFYmtmBE\"\r\n // \"fee\": 10\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "get_staking_infos", + "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_staking_infos\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "remove_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", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"remove_delegation\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Hardware Wallet", + "item": [ + { + "name": "task::create_new_account::init", + "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": [ @@ -4449,12 +6150,7 @@ ], "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" - } - } + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\"\r\n // \"scan\": true\r\n // \"gap_limit\": 20\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4466,7 +6162,7 @@ "response": [] }, { - "name": "task::account_balance::status", + "name": "task::create_new_account::status", "event": [ { "listen": "prerequest", @@ -4493,7 +6189,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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::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}}", @@ -4505,7 +6201,7 @@ "response": [] }, { - "name": "task::account_balance::cancel", + "name": "task::create_new_account::user_action", "event": [ { "listen": "prerequest", @@ -4532,7 +6228,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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4542,14 +6238,9 @@ } }, "response": [] - } - ] - }, - { - "name": "QTUM", - "item": [ + }, { - "name": "add_delegation", + "name": "task::create_new_account::cancel", "event": [ { "listen": "prerequest", @@ -4576,7 +6267,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"add_delegation\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\",\r\n \"staking_details\": {\r\n \"type\": \"Qtum\",\r\n \"address\": \"qcyBHeSct7Wr4mAw18iuQ1zW5mMFYmtmBE\"\r\n // \"fee\": 10\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::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}}", @@ -4588,7 +6279,7 @@ "response": [] }, { - "name": "get_staking_infos", + "name": "task::scan_for_new_addresses::init", "event": [ { "listen": "prerequest", @@ -4615,7 +6306,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_staking_infos\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::scan_for_new_addresses::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_index\": 0\r\n // \"gap_limit\": 20\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4627,7 +6318,7 @@ "response": [] }, { - "name": "remove_delegation", + "name": "task::scan_for_new_addresses::status", "event": [ { "listen": "prerequest", @@ -4654,7 +6345,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"remove_delegation\",\r\n \"params\": {\r\n \"coin\": \"tQTUM\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::scan_for_new_addresses::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}}", @@ -4664,14 +6355,9 @@ } }, "response": [] - } - ] - }, - { - "name": "Hardware Wallet", - "item": [ + }, { - "name": "task::create_new_account::init", + "name": "task::scan_for_new_addresses::cancel", "event": [ { "listen": "prerequest", @@ -4698,7 +6384,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\"\r\n // \"scan\": true\r\n // \"gap_limit\": 20\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::scan_for_new_addresses::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}}", @@ -4710,7 +6396,7 @@ "response": [] }, { - "name": "task::create_new_account::status", + "name": "task::init_trezor::init", "event": [ { "listen": "prerequest", @@ -4737,7 +6423,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::init\"\r\n // \"params\": {\r\n // \"device_pubkey\": \"21605444b36ec72780bdf52a5ffbc18288893664\" // Accepted values: H160\r\n // }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4749,7 +6435,7 @@ "response": [] }, { - "name": "task::create_new_account::user_action", + "name": "task::init_trezor::status", "event": [ { "listen": "prerequest", @@ -4776,7 +6462,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::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}}", @@ -4788,7 +6474,7 @@ "response": [] }, { - "name": "task::create_new_account::cancel", + "name": "task::init_trezor::user_action", "event": [ { "listen": "prerequest", @@ -4815,7 +6501,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::create_new_account::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4827,7 +6513,7 @@ "response": [] }, { - "name": "task::scan_for_new_addresses::init", + "name": "task::init_trezor::cancel", "event": [ { "listen": "prerequest", @@ -4854,7 +6540,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::scan_for_new_addresses::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"account_index\": 0\r\n // \"gap_limit\": 20\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::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}}", @@ -4864,9 +6550,14 @@ } }, "response": [] - }, + } + ] + }, + { + "name": "Withdraw", + "item": [ { - "name": "task::scan_for_new_addresses::status", + "name": "withdraw", "event": [ { "listen": "prerequest", @@ -4878,7 +6569,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -4893,7 +6585,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::scan_for_new_addresses::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"IRIS\",\r\n \"to\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\r\n \"amount\": 0.1, // used only if: \"max\": false\r\n \"memo\": \"In the blackest of your moments, wait with no fear.\",\r\n \"fee\": {\r\n \"type\": \"CosmosGas\",\r\n \"gas_price\": 0.1,\r\n \"gas_limit\": 1500000\r\n }\r\n // \"ibc_source_channel\": \"channel-141\",\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -4902,49 +6594,302 @@ ] } }, - "response": [] - }, - { - "name": "task::scan_for_new_addresses::cancel", - "event": [ + "response": [ + { + "name": "Withdraw DOC", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"to\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\",\r\n \"amount\": 1.025 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\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": "992" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 08:15:47 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"tx_hex\":\"0400008085202f8901d775b576a35576bd471bdbba15943af15afec020ff682404f09f55f48bc8f5a6020000006a47304402203388339504aa6ca3c0d22c709bccad74a53728c52cda4af8544ed1a8e628207a0220728565f9456eb9a25a1ff1654287bff7e78c3079e7c172b9b865e1e49b463732012103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ffffffff02a0061c06000000001976a9148d757e06a0bc7c8b5011bef06527c63104173c7688acc8da3108000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ac33a3e266000000000000000000000000000000\",\"tx_hash\":\"9fce660870a65d214b8943fee03ca91bca5813e18cc0a70b7222efb414be49e3\",\"from\":[\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"],\"to\":[\"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\"],\"total_amount\":\"2.39986\",\"spent_by_me\":\"2.39986\",\"received_by_me\":\"1.37485\",\"my_balance_change\":\"-1.02501\",\"block_height\":0,\"timestamp\":1726128947,\"fee_details\":{\"type\":\"Utxo\",\"coin\":\"DOC\",\"amount\":\"0.00001\"},\"coin\":\"DOC\",\"internal_id\":\"\",\"transaction_type\":\"StandardTransfer\",\"memo\":null},\"id\":null}" + }, + { + "name": "Error: IBCChannelCouldNotFound", + "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\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"ATOM\",\r\n \"to\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\r\n \"amount\": 0.01 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "359" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 08:22:12 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"IBC channel could not found for 'iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k' address. Consider providing it manually with 'ibc_source_channel' in the request.\",\n \"error_path\": \"tendermint_coin\",\n \"error_trace\": \"tendermint_coin:724]\",\n \"error_type\": \"IBCChannelCouldNotFound\",\n \"error_data\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"id\": null\n}" + }, + { + "name": "Error: Transport", + "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\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"ATOM\",\r\n \"to\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\r\n \"amount\": 0.01 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Gateway", + "code": 502, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "781" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 08:27:18 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Transport error: Could not read gas_info. Error code: 6 Message: rpc error: code = Unknown desc = failed to execute message; message index: 0: channel is not OPEN (got STATE_TRYOPEN): invalid channel state [cosmos/ibc-go/v8@v8.4.0/modules/core/04-channel/keeper/packet.go:38] with gas used: '81702': unknown request\",\"error_path\":\"tendermint_coin\",\"error_trace\":\"tendermint_coin:2240] tendermint_coin:1056]\",\"error_type\":\"Transport\",\"error_data\":\"Could not read gas_info. Error code: 6 Message: rpc error: code = Unknown desc = failed to execute message; message index: 0: channel is not OPEN (got STATE_TRYOPEN): invalid channel state [cosmos/ibc-go/v8@v8.4.0/modules/core/04-channel/keeper/packet.go:38] with gas used: '81702': unknown request\",\"id\":null}" + }, + { + "name": "IBC withdraw (ATOM to ATOM-IBC_OSMO)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"ATOM\",\r\n \"to\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\r\n \"amount\": 0.1, // used only if: \"max\": false\r\n \"memo\": \"In the blackest of your moments, wait with no fear.\",\r\n \"ibc_source_channel\": \"channel-141\",\r\n \"fee\": {\r\n \"type\": \"CosmosGas\",\r\n \"gas_price\": 0.1,\r\n \"gas_limit\": 1500000\r\n }\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\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": "1537" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 11:11:58 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"tx_hex\": \"0af9010abc010a292f6962632e6170706c69636174696f6e732e7472616e736665722e76312e4d73675472616e73666572128e010a087472616e73666572120b6368616e6e656c2d3134311a0f0a057561746f6d1206313030303030222d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a617377736163382a2b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a6163347264773438a6c5b9a089f29efa171233496e2074686520626c61636b657374206f6620796f7572206d6f6d656e74732c20776169742077697468206e6f20666561722e188df8c70a12680a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc212040a020801180b12140a0e0a057561746f6d1205313733353910e0c65b1a40042c4fa45d77405ee94e737a000b146f5019137d5a2d3275849c9ad66dd8ef1d0f087fb584f34b1ebcf7989e41bc0675e96c83f0eec4ffe355e078b6615d7a72\",\n \"tx_hash\": \"06174E488B7BBC35180E841F2D170327BB7DE0A291CA69050D81F82A7CF103CB\",\n \"from\": [\n \"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"\n ],\n \"to\": [\n \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\"\n ],\n \"total_amount\": \"0.1173590000000000\",\n \"spent_by_me\": \"0.1173590000000000\",\n \"received_by_me\": \"0\",\n \"my_balance_change\": \"-0.1173590000000000\",\n \"block_height\": 0,\n \"timestamp\": 0,\n \"fee_details\": {\n \"type\": \"Tendermint\",\n \"coin\": \"ATOM\",\n \"amount\": \"0.017359\",\n \"gas_limit\": 1500000\n },\n \"coin\": \"ATOM\",\n \"internal_id\": \"06174e488b7bbc35180e841f2d170327bb7de0a291ca69050d81f82a7cf103cb\",\n \"transaction_type\": \"TendermintIBCTransfer\",\n \"memo\": \"In the blackest of your moments, wait with no fear.\"\n },\n \"id\": null\n}" + }, { - "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": "IBC withdraw (ATOM-IBC_OSMO to ATOM)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "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\": \"task::scan_for_new_addresses::cancel\",\r\n \"params\": {\r\n \"task_id\": 0\r\n }\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\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"ATOM-IBC_OSMO\",\r\n \"to\": \"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\",\r\n \"amount\": 0.1, // used only if: \"max\": false\r\n \"memo\": \"We are more often frightened than hurt; and we suffer more from imagination than from reality.\",\r\n \"ibc_source_channel\": \"channel-6\",\r\n \"fee\": {\r\n \"type\": \"CosmosGas\",\r\n \"gas_price\": 0.1,\r\n \"gas_limit\": 1500000\r\n }\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\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": "1668" + }, + { + "key": "date", + "value": "Sat, 14 Sep 2024 06:23:09 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"tx_hex\": \"0ab6020af9010a292f6962632e6170706c69636174696f6e732e7472616e736665722e76312e4d73675472616e7366657212cb010a087472616e7366657212096368616e6e656c2d361a4e0a446962632f323733393446423039324432454343443536313233433734463336453443314639323630303143454144413943413937454136323242323546343145354542321206313030303030222b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a616334726477342a2d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a6173777361633838aaa9bcb0e99ec2fa171233496e2074686520626c61636b657374206f6620796f7572206d6f6d656e74732c20776169742077697468206e6f20666561722e1883a8f70912680a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc212040a020801180a12140a0e0a05756f736d6f1205323431313710e0c65b1a408c67c0922e6a1a25e28947da857e12414777fe04a6365c8cf0a1f89d66b9a5342954c1ec3624a726c71d25c0c7acbf102a856f9e1d175e2abcf4acda55d17e68\",\n \"tx_hash\": \"D8FE1961BD7EC2BF2CC1F5D2FD3DBF193C64CCBED46CC657E8A991CD8652B792\",\n \"from\": [\n \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\"\n ],\n \"to\": [\n \"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"\n ],\n \"total_amount\": \"0.1000000000000000\",\n \"spent_by_me\": \"0.1000000000000000\",\n \"received_by_me\": \"0\",\n \"my_balance_change\": \"-0.1000000000000000\",\n \"block_height\": 0,\n \"timestamp\": 0,\n \"fee_details\": {\n \"type\": \"Tendermint\",\n \"coin\": \"OSMO\",\n \"amount\": \"0.024117\",\n \"gas_limit\": 1500000\n },\n \"coin\": \"ATOM-IBC_OSMO\",\n \"internal_id\": \"d8fe1961bd7ec2bf2cc1f5d2fd3dbf193c64ccbed46cc657e8a991cd8652b792\",\n \"transaction_type\": \"TendermintIBCTransfer\",\n \"memo\": \"In the blackest of your moments, wait with no fear.\"\n },\n \"id\": null\n}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + { + "name": "IRIS to IRIS-IBC_OSMO", + "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\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"IRIS\",\r\n \"to\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\r\n \"amount\": 0.1, // used only if: \"max\": false\r\n \"memo\": \"We are more often frightened than hurt; and we suffer more from imagination than from reality.\",\r\n \"ibc_source_channel\": \"channel-3\",\r\n \"fee\": {\r\n \"type\": \"CosmosGas\",\r\n \"gas_price\": 0.1,\r\n \"gas_limit\": 1500000\r\n }\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "1653" + }, + { + "key": "date", + "value": "Mon, 16 Sep 2024 02:18:06 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"tx_hex\":\"0a9f020ab7010a292f6962632e6170706c69636174696f6e732e7472616e736665722e76312e4d73675472616e736665721289010a087472616e7366657212096368616e6e656c2d331a0f0a0575697269731206313030303030222a6961613136647271766c33753873756b667375346c6d3371736b32386a72336661686a6139767376366b2a2b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a6163347264773438eed285fe8b98e6fa17125e576520617265206d6f7265206f6674656e20667269676874656e6564207468616e20687572743b20616e6420776520737566666572206d6f72652066726f6d20696d6167696e6174696f6e207468616e2066726f6d207265616c6974792e18e28cdb0c12680a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc212040a020801185d12140a0e0a0575697269731205313038323110e0c65b1a4078d2d1360fc0b091cb34c07f1beec957f88324688210852832ad121d1de7a3c737279b55783f10522733becc79ecdb5db565bd8626a8109a3be62196268d2ff9\",\"tx_hash\":\"D87E4345B9C2091E7670EB1D527970040AA725385571D7F85711C282C6D468D9\",\"from\":[\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\"],\"to\":[\"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\"],\"total_amount\":\"0.1108210000000000\",\"spent_by_me\":\"0.1108210000000000\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.1108210000000000\",\"block_height\":0,\"timestamp\":0,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"IRIS\",\"amount\":\"0.010821\",\"gas_limit\":1500000},\"coin\":\"IRIS\",\"internal_id\":\"d87e4345b9c2091e7670eb1d527970040aa725385571d7f85711c282c6d468d9\",\"transaction_type\":\"TendermintIBCTransfer\",\"memo\":\"We are more often frightened than hurt; and we suffer more from imagination than from reality.\"},\"id\":null}" } - }, - "response": [] + ] }, { - "name": "task::init_trezor::init", + "name": "task::withdraw::init", "event": [ { "listen": "prerequest", @@ -4971,7 +6916,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::init\"\r\n // \"params\": {\r\n // \"device_pubkey\": \"21605444b36ec72780bdf52a5ffbc18288893664\" // Accepted values: H160\r\n // }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"to\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\",\r\n \"amount\": 1.025 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -4983,7 +6928,7 @@ "response": [] }, { - "name": "task::init_trezor::status", + "name": "task::withdraw::status", "event": [ { "listen": "prerequest", @@ -5010,7 +6955,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::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}}", @@ -5022,7 +6967,7 @@ "response": [] }, { - "name": "task::init_trezor::user_action", + "name": "task::withdraw::user_action", "event": [ { "listen": "prerequest", @@ -5049,7 +6994,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5061,7 +7006,7 @@ "response": [] }, { - "name": "task::init_trezor::cancel", + "name": "task::withdraw::cancel", "event": [ { "listen": "prerequest", @@ -5088,7 +7033,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::init_trezor::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::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}}", @@ -5102,104 +7047,47 @@ ] }, { - "name": "Withdraw", - "item": [ - { - "name": "withdraw", - "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\": \"withdraw\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"to\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\",\r\n \"amount\": 1.025 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, + "name": "get_raw_transaction", + "event": [ { - "name": "task::withdraw::init", - "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);" ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::init\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"to\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\",\r\n \"amount\": 1.025 // used only if: \"max\": false\r\n // \"from\": null,\r\n // // \"from\": {\r\n // // \"account_id\": 0,\r\n // // \"chain\": \"External\", // Accepted values: \"External\", \"Internal\"\r\n // // \"address_id\": 0\r\n // // },\r\n // // \"from\": {\r\n // // \"derivation_path\": \"m/44'/501'/0'\"\r\n // // },\r\n // \"max\": false,\r\n // \"fee\": {\r\n // \"type\": \"UtxoFixed\", // Accepted values: \"UtxoFixed\", \"UtxoPerKbyte\"\r\n // \"amount\": 0.00001 // default amount is 1000 of the smallest unit of the coin (0.00001 for 8 decimal places coins)\r\n // } // Default: Coin Config\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] + "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_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"tx_hash\": \"182d61ccc0e41d91ae8b2f497bf576a864a5b06e52af9ac0113d3e0bfea54be3\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, - { - "name": "task::withdraw::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": { + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "error: tx not found", + "originalRequest": { "method": "POST", "header": [ { @@ -5210,7 +7098,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"get_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"tx_hash\": \"8c34946c0894b8520a84d6182f5962a173e0995b4a4fe1b40a867d8a9cd5e0c1\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5219,26 +7107,29 @@ ] } }, - "response": [] - }, - { - "name": "task::withdraw::user_action", - "event": [ + "status": "Bad Gateway", + "code": 502, + "_postman_previewlanguage": "plain", + "header": [ { - "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" - } + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "1071" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 09:03:30 GMT" } ], - "request": { + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Transport error: rpc_clients:2333] JsonRpcError { client_info: \\\"coin: DOC\\\", request: JsonRpcRequest { jsonrpc: \\\"2.0\\\", id: \\\"20\\\", method: \\\"blockchain.transaction.get\\\", params: [String(\\\"8c34946c0894b8520a84d6182f5962a173e0995b4a4fe1b40a867d8a9cd5e0c1\\\"), Bool(false)] }, error: Response(electrum2.cipig.net:10020, Object({\\\"code\\\": Number(2), \\\"message\\\": String(\\\"daemon error: DaemonError({'code': -5, 'message': 'No information available about transaction'})\\\")})) }\",\"error_path\":\"utxo_common\",\"error_trace\":\"utxo_common:2976]\",\"error_type\":\"Transport\",\"error_data\":\"rpc_clients:2333] JsonRpcError { client_info: \\\"coin: DOC\\\", request: JsonRpcRequest { jsonrpc: \\\"2.0\\\", id: \\\"20\\\", method: \\\"blockchain.transaction.get\\\", params: [String(\\\"8c34946c0894b8520a84d6182f5962a173e0995b4a4fe1b40a867d8a9cd5e0c1\\\"), Bool(false)] }, error: Response(electrum2.cipig.net:10020, Object({\\\"code\\\": Number(2), \\\"message\\\": String(\\\"daemon error: DaemonError({'code': -5, 'message': 'No information available about transaction'})\\\")})) }\",\"id\":null}" + }, + { + "name": "success", + "originalRequest": { "method": "POST", "header": [ { @@ -5249,7 +7140,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::user_action\",\r\n \"params\": {\r\n \"task_id\": 0,\r\n \"user_action\": {\r\n \"action_type\": \"TrezorPin\",\r\n \"pin\": \"123456\"\r\n }\r\n // \"user_action\": {\r\n // \"action_type\": \"TrezorPassphrase\",\r\n // \"passphrase\": \"Any passphrase here\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"tx_hash\": \"182d61ccc0e41d91ae8b2f497bf576a864a5b06e52af9ac0113d3e0bfea54be3\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5258,26 +7149,69 @@ ] } }, - "response": [] - }, - { - "name": "task::withdraw::cancel", - "event": [ + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ { - "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" - } + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "1084" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 09:05:04 GMT" } ], - "request": { + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"tx_hex\":\"0400008085202f8901eefff54085e1ef95ad8ab6d88aecf777212d651589f5ec0c9d7d7460d5c0a40f070000006a4730440220352ca7a6a45612a73a417512c0c92f4ea1c225a304d21ddaae58190c6ff6538c02205d7e38866d3cb71313a5a97f4eedcd5d7ee27b300e443aefca95ee9f8f5b90d00121020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dffffffff0810270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac10270000000000002321020c63078b5f5d27183de6f2bbae9bfe3fc57e017faf89b7d566bb947a92a2e40dac007fe3c4050000001976a91403990619a76b0aa5a4a664bcf820fd8641c32ca088ac00000000000000000000000000000000000000\"},\"id\":null}" + } + ] + }, + { + "name": "my_tx_history", + "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\": \"my_tx_history\",\r\n \"params\": {\r\n \"coin\": \"tBCH\"\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // // \"FromId\": null, // Accepted values: Strings\r\n // \"PageNumber\": 1 // used only if: \"from_id\": null\r\n // },\r\n // \"target\": {\r\n // \"type\": \"iguana\"\r\n // }\r\n // \"target\": {\r\n // \"type\": \"account_id\",\r\n // \"account_id\": 0 // Accepted values: Integer\r\n // }\r\n // \"target\": {\r\n // \"type\": \"address_id\",\r\n // \"account_id\": 0, // Accepted values: Integer\r\n // \"chain\": \"External\", // Accepted values: \"External\" and \"Internal\"\r\n // \"address_id\": 0 // Accepted values: Integer\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "my_tx_history", + "originalRequest": { "method": "POST", "header": [ { @@ -5288,7 +7222,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"task::withdraw::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 \"mmrpc\": \"2.0\",\r\n \"method\": \"my_tx_history\",\r\n \"params\": {\r\n \"coin\": \"ATOM\"\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // // \"FromId\": null, // Accepted values: Strings\r\n // \"PageNumber\": 1 // used only if: \"from_id\": null\r\n // },\r\n // \"target\": {\r\n // \"type\": \"iguana\"\r\n // }\r\n // \"target\": {\r\n // \"type\": \"account_id\",\r\n // \"account_id\": 0 // Accepted values: Integer\r\n // }\r\n // \"target\": {\r\n // \"type\": \"address_id\",\r\n // \"account_id\": 0, // Accepted values: Integer\r\n // \"chain\": \"External\", // Accepted values: \"External\" and \"Internal\"\r\n // \"address_id\": 0 // Accepted values: Integer\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -5297,12 +7231,30 @@ ] } }, - "response": [] + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "3792" + }, + { + "key": "date", + "value": "Fri, 13 Sep 2024 16:34:28 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"coin\":\"ATOM\",\"target\":{\"type\":\"iguana\"},\"current_block\":22167924,\"transactions\":[{\"tx_hex\":\"0a087472616e73666572120b6368616e6e656c2d3134311a0f0a057561746f6d1206313030303030222d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a617377736163382a2b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a616334726477343880f195fdd1e0b6fa17\",\"tx_hash\":\"5BD307E06550962031AAF922C09457729BA74B895D43410409506FE758C241BA\",\"from\":[\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"],\"to\":[\"cosmos1x54ltnyg88k0ejmk8ytwrhd3ltm84xehrnlslf\"],\"total_amount\":\"0.143433\",\"spent_by_me\":\"0.143433\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.143433\",\"block_height\":22167793,\"timestamp\":1726244472,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"ATOM\",\"amount\":\"0.043433\",\"gas_limit\":125000},\"coin\":\"ATOM\",\"internal_id\":\"3232394641413133303236393035353630453730334442350000000000000001\",\"transaction_type\":\"StandardTransfer\",\"memo\":\"If a man knows not which port he sails, no wind is favorable.\",\"confirmations\":132},{\"tx_hex\":\"0a2d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a61737773616338122d636f736d6f73316530727838376d646a37397a656a65777563346a6737716c39756432323836676c37736b746d1a0f0a057561746f6d1206313030303030\",\"tx_hash\":\"368800F0D6C86A2CD64469243CA673AB81866195F3F4D166D1292EBB5458735B\",\"from\":[\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"],\"to\":[\"cosmos1e0rx87mdj79zejewuc4jg7ql9ud2286gl7sktm\"],\"total_amount\":\"0.127579\",\"spent_by_me\":\"0.127579\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.127579\",\"block_height\":22149297,\"timestamp\":1726134970,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"ATOM\",\"amount\":\"0.027579\",\"gas_limit\":125000},\"coin\":\"ATOM\",\"internal_id\":\"3432393634343644433241363843364430463030383836330000000000000001\",\"transaction_type\":\"StandardTransfer\",\"memo\":\"Bu ne perhiz, bu ne lahana turşusu\",\"confirmations\":18628},{\"tx_hex\":\"0a2d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a61737773616338122d636f736d6f73316530727838376d646a37397a656a65777563346a6737716c39756432323836676c37736b746d1a0f0a057561746f6d1206313030303030\",\"tx_hash\":\"F2377B353A22355A638D797B580648A2E3FD54D01867D1638D3754C6DBF2EF0A\",\"from\":[\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"],\"to\":[\"cosmos1e0rx87mdj79zejewuc4jg7ql9ud2286gl7sktm\"],\"total_amount\":\"0.127579\",\"spent_by_me\":\"0.127579\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.127579\",\"block_height\":22149044,\"timestamp\":1726133457,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"ATOM\",\"amount\":\"0.027579\",\"gas_limit\":125000},\"coin\":\"ATOM\",\"internal_id\":\"4237393744383336413535333232413335334237373332460000000000000001\",\"transaction_type\":\"StandardTransfer\",\"memo\":\"Bir Kahvenin Kirk Yil Hatiri Vardir\",\"confirmations\":18881},{\"tx_hex\":\"0a2d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a61737773616338122d636f736d6f73316a716b7935366e7671667033377a373530757665363235337866636d793470716734633767651a0f0a057561746f6d1206313430303030\",\"tx_hash\":\"60154244DDCB8462CCD80C9FB0E832D864F037EF818DAA1A728B4EBFFD1F3AA6\",\"from\":[\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"],\"to\":[\"cosmos1jqky56nvqfp37z750uve6253xfcmy4pqg4c7ge\"],\"total_amount\":\"0.146564\",\"spent_by_me\":\"0.146564\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.146564\",\"block_height\":22135950,\"timestamp\":1726055203,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"ATOM\",\"amount\":\"0.006564\",\"gas_limit\":125000},\"coin\":\"ATOM\",\"internal_id\":\"4639433038444343323634384243444434343234353130360000000000000001\",\"transaction_type\":\"StandardTransfer\",\"memo\":\"Isteyenin bir yuzu kara, vermeyenin iki yuzu\",\"confirmations\":31975}],\"sync_status\":{\"state\":\"Finished\"},\"limit\":10,\"skipped\":0,\"total\":4,\"total_pages\":1,\"paging_options\":{\"PageNumber\":1}},\"id\":null}" } ] }, { - "name": "get_raw_transaction", + "name": "sign_message", "event": [ { "listen": "prerequest", @@ -5314,7 +7266,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -5329,7 +7282,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"tx_hash\": \"8c34946c0894b8520a84d6182f5962a173e0995b4a4fe1b40a867d8a9cd5e0c1\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"sign_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Don’t do what you can’t undo, until you’ve considered what you can’t do once you’ve done it.\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5338,10 +7291,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "sign_message", + "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\": \"sign_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Don’t do what you can’t undo, until you’ve considered what you can’t do once you’ve done it.\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "139" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 08:58:05 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"signature\":\"H3wCe2BUiwtd23Ay6BovtdtSRKP2JKEUEi56zUfWeRFUQvGh6/dPOWaxqgUEsXP+LwwVfrQGV24kfbSssXGWw6w=\"},\"id\":null}" + } + ] }, { - "name": "my_tx_history", + "name": "verify_message", "event": [ { "listen": "prerequest", @@ -5353,7 +7349,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -5368,58 +7365,146 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"my_tx_history\",\r\n \"params\": {\r\n \"coin\": \"tBCH\"\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // // \"FromId\": null, // Accepted values: Strings\r\n // \"PageNumber\": 1 // used only if: \"from_id\": null\r\n // },\r\n // \"target\": {\r\n // \"type\": \"iguana\"\r\n // }\r\n // \"target\": {\r\n // \"type\": \"account_id\",\r\n // \"account_id\": 0 // Accepted values: Integer\r\n // }\r\n // \"target\": {\r\n // \"type\": \"address_id\",\r\n // \"account_id\": 0, // Accepted values: Integer\r\n // \"chain\": \"External\", // Accepted values: \"External\" and \"Internal\"\r\n // \"address_id\": 0 // Accepted values: Integer\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"verify_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Don’t do what you can’t undo, until you’ve considered what you can’t do once you’ve done it.\",\r\n \"signature\": \"H3wCe2BUiwtd23Ay6BovtdtSRKP2JKEUEi56zUfWeRFUQvGh6/dPOWaxqgUEsXP+LwwVfrQGV24kfbSssXGWw6w=\",\r\n \"address\": \"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "invalid (wrong address)", + "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\": \"verify_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Don’t do what you can’t undo, until you’ve considered what you can’t do once you’ve done it.\",\r\n \"signature\": \"H3wCe2BUiwtd23Ay6BovtdtSRKP2JKEUEi56zUfWeRFUQvGh6/dPOWaxqgUEsXP+LwwVfrQGV24kfbSssXGWw6w=\",\r\n \"address\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "53" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 08:59:28 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"is_valid\":false},\"id\":null}" + }, + { + "name": "successfully verified", + "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\": \"verify_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Don’t do what you can’t undo, until you’ve considered what you can’t do once you’ve done it.\",\r\n \"signature\": \"H3wCe2BUiwtd23Ay6BovtdtSRKP2JKEUEi56zUfWeRFUQvGh6/dPOWaxqgUEsXP+LwwVfrQGV24kfbSssXGWw6w=\",\r\n \"address\": \"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "52" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 09:00:11 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"is_valid\":true},\"id\":null}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] - }, - { - "name": "sign_message", - "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": "invalid (wrong message)", + "originalRequest": { + "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\": \"sign_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"test\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"verify_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"Tomorrow owes you the sum of your yesterdays. No more than that. And no less.\",\r\n \"signature\": \"H3wCe2BUiwtd23Ay6BovtdtSRKP2JKEUEi56zUfWeRFUQvGh6/dPOWaxqgUEsXP+LwwVfrQGV24kfbSssXGWw6w=\",\r\n \"address\": \"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "53" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 09:01:32 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"is_valid\":false},\"id\":null}" } - }, - "response": [] + ] }, { - "name": "verify_message", + "name": "get_wallet_names", "event": [ { "listen": "prerequest", @@ -5431,7 +7516,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -5446,7 +7532,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"verify_message\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"message\": \"test\",\r\n \"signature\": \"IB0DBH6R+P836Y86PVLJPTV5Vp3aEJhW6qwQj8mfExT4dJIyhohcDzZ6GQr7N8pIN05ISQS+D7G/DnLTc7C/oso=\",\r\n \"address\": \"RNBA756iaFCx2Uhya3pvCufbeyovAaknJL\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_wallet_names\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5984,13 +8070,19 @@ "header": [ { "key": "Content-Type", + "name": "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}" + "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}", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -6437,7 +8529,168 @@ "response": [] }, { - "name": "list_closed_channels_by_filter", + "name": "list_closed_channels_by_filter", + "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\": \"lightning::channels::list_closed_channels_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"channel_id\": null, // Accepted values: Strings\r\n // // // \"counterparty_node_id\": null, // Accepted values: Strings\r\n // // // \"funding_tx\": null, // Accepted values: Strings\r\n // // // \"from_funding_value\": null, // Accepted values: Integers\r\n // // // \"to_funding_value\": null, // Accepted values: Integers\r\n // // // \"closing_tx\": null, // Accepted values: Strings\r\n // // // \"closure_reason\": null, // Accepted values: Strings\r\n // // // \"claiming_tx\": null, // Accepted values: Strings\r\n // // // \"from_claimed_balance\": null, // Accepted values: Decimals\r\n // // // \"to_claimed_balance\": null, // Accepted values: Decimals\r\n // // // \"channel_type\": null, // Accepted values: \"Outbound\", \"Inbound\"\r\n // // // \"channel_visibility\": null // Accepted values: \"Public\", \"Private\"\r\n // // },\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}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "list_open_channels_by_filter", + "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\": \"lightning::channels::list_open_channels_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"channel_id\": null, // Accepted values: Strings\r\n // // // \"counterparty_node_id\": null, // Accepted values: Strings\r\n // // // \"funding_tx\": null, // Accepted values: Strings\r\n // // // \"from_funding_value_sats\": null, // Accepted values: Integers\r\n // // // \"to_funding_value_sats\": null, // Accepted values: Integers\r\n // // // \"is_outbound\": null, // Accepted values: Booleans\r\n // // // \"from_balance_msat\": null, // Accepted values: Integers\r\n // // // \"to_balance_msat\": null, // Accepted values: Integers\r\n // // // \"from_outbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"to_outbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"from_inbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"to_inbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"confirmed\": null, // Accepted values: Booleans\r\n // // // \"is_usable\": null, // Accepted values: Booleans\r\n // // // \"is_public\": null // Accepted values: Booleans\r\n // // },\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}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "open_channel", + "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\": \"lightning::channels::open_channel\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"node_address\": \"038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9@203.132.94.196:9735\",\r\n \"amount\": {\r\n \"type\": \"Exact\", // Accepted values: \"Exact\", \"Max\"\r\n \"value\": 0.004 // Required only if: \"type\": \"Exact\"\r\n }\r\n // \"push_msat\": 0,\r\n // \"channel_options\": {\r\n // // \"proportional_fee_in_millionths_sats\": 0, // Default: Coin Config\r\n // // \"base_fee_msat\": 1000, // Default: Coin Config\r\n // // \"cltv_expiry_delta\": 72, // Default: Coin Config\r\n // // \"max_dust_htlc_exposure_msat\": 5000000, // Default: Coin Config\r\n // // \"force_close_avoidance_max_fee_satoshis\": 1000 // Default: Coin Config\r\n // },\r\n // \"channel_configs\" : {\r\n // // \"counterparty_locktime\": 144, // Default: Coin Config\r\n // // \"our_htlc_minimum_msat\": 1, // Default: Coin Config\r\n // // \"negotiate_scid_privacy\": false, // Default: Coin Config\r\n // // \"max_inbound_in_flight_htlc_percent\": 10, // Default: Coin Config\r\n // // \"announced_channel\": false, // Default: Coin Config\r\n // // \"commit_upfront_shutdown_pubkey\": true // Default: Coin Config\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "update_channel", + "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\": \"lightning::channels::update_channel\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"rpc_channel_id\": 1,\r\n \"channel_options\": {\r\n // \"proportional_fee_in_millionths_sats\": 0, // Default: Coin Config\r\n // \"base_fee_msat\": 1000, // Default: Coin Config\r\n // \"cltv_expiry_delta\": 72, // Default: Coin Config\r\n // \"max_dust_htlc_exposure_msat\": 5000000, // Default: Coin Config\r\n // \"force_close_avoidance_max_fee_satoshis\": 1000 // Default: Coin Config\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Payments", + "item": [ + { + "name": "generate_invoice", "event": [ { "listen": "prerequest", @@ -6464,7 +8717,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::channels::list_closed_channels_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"channel_id\": null, // Accepted values: Strings\r\n // // // \"counterparty_node_id\": null, // Accepted values: Strings\r\n // // // \"funding_tx\": null, // Accepted values: Strings\r\n // // // \"from_funding_value\": null, // Accepted values: Integers\r\n // // // \"to_funding_value\": null, // Accepted values: Integers\r\n // // // \"closing_tx\": null, // Accepted values: Strings\r\n // // // \"closure_reason\": null, // Accepted values: Strings\r\n // // // \"claiming_tx\": null, // Accepted values: Strings\r\n // // // \"from_claimed_balance\": null, // Accepted values: Decimals\r\n // // // \"to_claimed_balance\": null, // Accepted values: Decimals\r\n // // // \"channel_type\": null, // Accepted values: \"Outbound\", \"Inbound\"\r\n // // // \"channel_visibility\": null // Accepted values: \"Public\", \"Private\"\r\n // // },\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}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::generate_invoice\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"description\": \"test invoice\"\r\n // \"amount_in_msat\": null, // Accepted values: Integers\r\n // \"expiry\": null // Accepted values: Integers\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -6476,7 +8729,7 @@ "response": [] }, { - "name": "list_open_channels_by_filter", + "name": "get_payment_details", "event": [ { "listen": "prerequest", @@ -6503,7 +8756,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::channels::list_open_channels_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"channel_id\": null, // Accepted values: Strings\r\n // // // \"counterparty_node_id\": null, // Accepted values: Strings\r\n // // // \"funding_tx\": null, // Accepted values: Strings\r\n // // // \"from_funding_value_sats\": null, // Accepted values: Integers\r\n // // // \"to_funding_value_sats\": null, // Accepted values: Integers\r\n // // // \"is_outbound\": null, // Accepted values: Booleans\r\n // // // \"from_balance_msat\": null, // Accepted values: Integers\r\n // // // \"to_balance_msat\": null, // Accepted values: Integers\r\n // // // \"from_outbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"to_outbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"from_inbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"to_inbound_capacity_msat\": null, // Accepted values: Integers\r\n // // // \"confirmed\": null, // Accepted values: Booleans\r\n // // // \"is_usable\": null, // Accepted values: Booleans\r\n // // // \"is_public\": null // Accepted values: Booleans\r\n // // },\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}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::get_payment_details\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"payment_hash\": \"32f996e6e0aa88e567318beeadb37b6bc0fddfd3660d4a87726f308ed1ec7b33\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -6515,7 +8768,7 @@ "response": [] }, { - "name": "open_channel", + "name": "list_payments_by_filter", "event": [ { "listen": "prerequest", @@ -6542,7 +8795,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::channels::open_channel\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"node_address\": \"038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9@203.132.94.196:9735\",\r\n \"amount\": {\r\n \"type\": \"Exact\", // Accepted values: \"Exact\", \"Max\"\r\n \"value\": 0.004 // Required only if: \"type\": \"Exact\"\r\n }\r\n // \"push_msat\": 0,\r\n // \"channel_options\": {\r\n // // \"proportional_fee_in_millionths_sats\": 0, // Default: Coin Config\r\n // // \"base_fee_msat\": 1000, // Default: Coin Config\r\n // // \"cltv_expiry_delta\": 72, // Default: Coin Config\r\n // // \"max_dust_htlc_exposure_msat\": 5000000, // Default: Coin Config\r\n // // \"force_close_avoidance_max_fee_satoshis\": 1000 // Default: Coin Config\r\n // },\r\n // \"channel_configs\" : {\r\n // // \"counterparty_locktime\": 144, // Default: Coin Config\r\n // // \"our_htlc_minimum_msat\": 1, // Default: Coin Config\r\n // // \"negotiate_scid_privacy\": false, // Default: Coin Config\r\n // // \"max_inbound_in_flight_htlc_percent\": 10, // Default: Coin Config\r\n // // \"announced_channel\": false, // Default: Coin Config\r\n // // \"commit_upfront_shutdown_pubkey\": true // Default: Coin Config\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::list_payments_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"payment_type\": null,\r\n // // // // \"payment_type\": {\r\n // // // // \"type\": \"Outbound Payment\", // Accepted values: \"Outbound Payment\", \"Inbound Payment\"\r\n // // // // \"destination\": \"03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134\" // Required only if: \"type\": \"Outbound Payment\"\r\n // // // // },\r\n // // // \"description\": null, // Accepted values: Strings\r\n // // // \"status\": null, // Accepted values: \"pending\", \"succeeded\", \"failed\"\r\n // // // \"from_amount_msat\": null, // Accepted values: Integers\r\n // // // \"to_amount_msat\": null, // Accepted values: Integers\r\n // // // \"from_fee_paid_msat\": null, // Accepted values: Integers\r\n // // // \"to_fee_paid_msat\": null, // Accepted values: Integers\r\n // // // \"from_timestamp\": null, // Accepted values: Integers\r\n // // // \"to_timestamp\": null // Accepted values: Integers\r\n // // },\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // \"PageNumber\": 1\r\n // // \"FromId\": \"d6d3cf3fd5237ed15295847befe00da67c043da1c39a373bff30bd22442eea43\" // used instead of: \"PageNumber\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -6554,7 +8807,7 @@ "response": [] }, { - "name": "update_channel", + "name": "send_payment", "event": [ { "listen": "prerequest", @@ -6581,7 +8834,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::channels::update_channel\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"rpc_channel_id\": 1,\r\n \"channel_options\": {\r\n // \"proportional_fee_in_millionths_sats\": 0, // Default: Coin Config\r\n // \"base_fee_msat\": 1000, // Default: Coin Config\r\n // \"cltv_expiry_delta\": 72, // Default: Coin Config\r\n // \"max_dust_htlc_exposure_msat\": 5000000, // Default: Coin Config\r\n // \"force_close_avoidance_max_fee_satoshis\": 1000 // Default: Coin Config\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::send_payment\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"payment\": {\r\n \"type\": \"invoice\", // Accepted values: \"invoice\", \"keysend\"\r\n \"invoice\": \"lntb20u1p32wwxapp5p8gjy2e79jku5tshhq2nkdauv0malqqhzefnqmx9pjwa8h83cmwqdp8xys9xcmpd3sjqsmgd9czq3njv9c8qatrvd5kumcxqrrsscqp79qy9qsqsp5m473qknpecv6ajmwwtjw7keggrwxerymehx6723avhdrlnxmuvhs54zmyrumkasvjp0fvvk2np30cx5xpjs329alvm60rwy3payrnkmsd3n8ahnky3kuxaraa3u4k453yf3age7cszdxhjxjkennpt75erqpsfmy4y\" // Required only if: \"type\": \"invoice\"\r\n // \"destination\": \"038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9\", // Required only if: \"type\": \"keysend\"\r\n // \"amount_in_msat\": 1000, // Required only if: \"type\": \"keysend\"\r\n // \"expiry\": 24 // Required only if: \"type\": \"keysend\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -6592,29 +8845,254 @@ }, "response": [] } - ] - }, - { - "name": "Payments", - "item": [ + ] + } + ] + }, + { + "name": "Stats", + "item": [ + { + "name": "add_node_to_version_stat", + "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\": \"add_node_to_version_stat\",\r\n \"params\": {\r\n \"name\": \"TestVersionStat\",\r\n \"address\": \"127.0.0.1:7783\",\r\n \"peer_id\": \"12D3KooWHcPAnsq22MNoWkHEB1drFY1YrnRm6rzURvJupPyL1swZ\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "remove_node_from_version_stat", + "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\": \"remove_node_from_version_stat\",\r\n \"params\": {\r\n \"name\": \"TestVersionStat\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "start_version_stat_collection", + "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\": \"start_version_stat_collection\",\r\n \"params\": {\r\n \"interval\": 60.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "stop_version_stat_collection", + "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\": \"stop_version_stat_collection\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "update_version_stat_collection", + "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\": \"update_version_stat_collection\",\r\n \"params\": {\r\n \"interval\": 60.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "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" + } + ], + "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": [ { - "name": "generate_invoice", - "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": { + "name": "get_current_mtp", + "originalRequest": { "method": "POST", "header": [ { @@ -6625,7 +9103,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::generate_invoice\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"description\": \"test invoice\"\r\n // \"amount_in_msat\": null, // Accepted values: Integers\r\n // \"expiry\": null // Accepted values: Integers\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_current_mtp\",\n \"params\": {\n \"coin\": \"MARTY\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" }, "url": { "raw": "{{address}}", @@ -6634,65 +9112,110 @@ ] } }, - "response": [] - }, - { - "name": "get_payment_details", - "event": [ + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ { - "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" - } + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "53" + }, + { + "key": "date", + "value": "Tue, 10 Sep 2024 10:22:24 GMT" } ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"mtp\":1725963536},\"id\":null}" + } + ] + }, + { + "name": "start_eth_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);" ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::get_payment_details\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"payment_hash\": \"32f996e6e0aa88e567318beeadb37b6bc0fddfd3660d4a87726f308ed1ec7b33\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] + "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\": \"start_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"ETH\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "get_eth_estimated_fee_per_gas", + "event": [ { - "name": "list_payments_by_filter", - "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": { + "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": [ { @@ -6703,7 +9226,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::list_payments_by_filter\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\"\r\n // \"filter\": null,\r\n // // \"filter\": {\r\n // // // \"payment_type\": null,\r\n // // // // \"payment_type\": {\r\n // // // // \"type\": \"Outbound Payment\", // Accepted values: \"Outbound Payment\", \"Inbound Payment\"\r\n // // // // \"destination\": \"03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134\" // Required only if: \"type\": \"Outbound Payment\"\r\n // // // // },\r\n // // // \"description\": null, // Accepted values: Strings\r\n // // // \"status\": null, // Accepted values: \"pending\", \"succeeded\", \"failed\"\r\n // // // \"from_amount_msat\": null, // Accepted values: Integers\r\n // // // \"to_amount_msat\": null, // Accepted values: Integers\r\n // // // \"from_fee_paid_msat\": null, // Accepted values: Integers\r\n // // // \"to_fee_paid_msat\": null, // Accepted values: Integers\r\n // // // \"from_timestamp\": null, // Accepted values: Integers\r\n // // // \"to_timestamp\": null // Accepted values: Integers\r\n // // },\r\n // \"limit\": 10,\r\n // \"paging_options\": {\r\n // \"PageNumber\": 1\r\n // // \"FromId\": \"d6d3cf3fd5237ed15295847befe00da67c043da1c39a373bff30bd22442eea43\" // used instead of: \"PageNumber\"\r\n // }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "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}}", @@ -6712,26 +9235,36 @@ ] } }, - "response": [] - }, - { - "name": "send_payment", - "event": [ + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ { - "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" - } + "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" } ], - "request": { + "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": [ { @@ -6742,7 +9275,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"lightning::payments::send_payment\",\r\n \"params\": {\r\n \"coin\": \"tBTC-TEST-lightning\",\r\n \"payment\": {\r\n \"type\": \"invoice\", // Accepted values: \"invoice\", \"keysend\"\r\n \"invoice\": \"lntb20u1p32wwxapp5p8gjy2e79jku5tshhq2nkdauv0malqqhzefnqmx9pjwa8h83cmwqdp8xys9xcmpd3sjqsmgd9czq3njv9c8qatrvd5kumcxqrrsscqp79qy9qsqsp5m473qknpecv6ajmwwtjw7keggrwxerymehx6723avhdrlnxmuvhs54zmyrumkasvjp0fvvk2np30cx5xpjs329alvm60rwy3payrnkmsd3n8ahnky3kuxaraa3u4k453yf3age7cszdxhjxjkennpt75erqpsfmy4y\" // Required only if: \"type\": \"invoice\"\r\n // \"destination\": \"038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9\", // Required only if: \"type\": \"keysend\"\r\n // \"amount_in_msat\": 1000, // Required only if: \"type\": \"keysend\"\r\n // \"expiry\": 24 // Required only if: \"type\": \"keysend\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "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}}", @@ -6751,56 +9284,37 @@ ] } }, - "response": [] - } - ] - } - ] - }, - { - "name": "Stats", - "item": [ - { - "name": "add_node_to_version_stat", - "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\": \"add_node_to_version_stat\",\r\n \"params\": {\r\n \"name\": \"TestVersionStat\",\r\n \"address\": \"127.0.0.1:7783\",\r\n \"peer_id\": \"12D3KooWHcPAnsq22MNoWkHEB1drFY1YrnRm6rzURvJupPyL1swZ\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "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": "remove_node_from_version_stat", + "name": "get_public_key", "event": [ { "listen": "prerequest", @@ -6827,7 +9341,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"remove_node_from_version_stat\",\r\n \"params\": {\r\n \"name\": \"TestVersionStat\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "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}}", @@ -6836,10 +9350,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_public_key", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "118" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:40 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + } + ] }, { - "name": "start_version_stat_collection", + "name": "peer_connection_healthcheck", "event": [ { "listen": "prerequest", @@ -6851,7 +9408,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -6866,7 +9424,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"start_version_stat_collection\",\r\n \"params\": {\r\n \"interval\": 60.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWJWBnkVsVNjiqUEPjLyHpiSmQVAJ5t6qt1Txv5ctJi9Xd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -6875,10 +9433,95 @@ ] } }, - "response": [] + "response": [ + { + "name": "peer_connection_healthcheck (true)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "118" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:40 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + }, + { + "name": "peer_connection_healthcheck (false)", + "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\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWDgFfyAzbuYNLMzMaZT9zBJX9EHd38XLQDRbNDYAYqMzd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "40" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":false,\"id\":null}" + } + ] }, { - "name": "stop_version_stat_collection", + "name": "get_enabled_coins", "event": [ { "listen": "prerequest", @@ -6890,7 +9533,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -6905,7 +9549,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"stop_version_stat_collection\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -6914,10 +9558,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_enabled_coins", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "260" + }, + { + "key": "date", + "value": "Wed, 16 Oct 2024 17:16:48 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"coins\":[{\"ticker\":\"ETH\"},{\"ticker\":\"PGX-PLG20\"},{\"ticker\":\"ATOM-IBC_IRIS\"},{\"ticker\":\"NFT_ETH\"},{\"ticker\":\"KMD\"},{\"ticker\":\"IRIS\"},{\"ticker\":\"AAVE-PLG20\"},{\"ticker\":\"MINDS-ERC20\"},{\"ticker\":\"NFT_MATIC\"},{\"ticker\":\"MATIC\"}]},\"id\":null}" + } + ] }, { - "name": "update_version_stat_collection", + "name": "get_public_key_hash", "event": [ { "listen": "prerequest", @@ -6944,7 +9631,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"update_version_stat_collection\",\r\n \"params\": {\r\n \"interval\": 60.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "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}}", @@ -6953,126 +9640,52 @@ ] } }, - "response": [] - } - ] - }, - { - "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" - } - ], - "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": [] - }, - { - "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" - } - ], - "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": [] - }, - { - "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": [ + { + "name": "get_public_key_hash", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "97" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:31 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key_hash\":\"d346067e3c3c3964c395fee208594790e29ede5d\"},\"id\":null}" + } ] } - }, - "response": [] + ] } ] }, diff --git a/src/pages/komodo-defi-framework/api/v20/enable_eth_with_tokens/index.mdx b/src/pages/komodo-defi-framework/api/v20/enable_eth_with_tokens/index.mdx index 6a773b7c..744b8094 100644 --- a/src/pages/komodo-defi-framework/api/v20/enable_eth_with_tokens/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/enable_eth_with_tokens/index.mdx @@ -25,7 +25,7 @@ Additionally, it supports ERC20 tokens on the ETH chain and associated ERC20 lik | priv\_key\_policy | string | Optional, defaults to `ContextPrivKey`. value can be `ContextPrivKey`,`Trezor` when Komodo DeFi Framework is built for native platforms. value can be `ContextPrivKey`, `Trezor`, `Metamask` when the Komodo DeFi Framework is built targeting `wasm` | | required\_confirmations | integer | Optional, defaults to `3`. When the platform coin is involved, the number of confirmations for the Komodo DeFi Framework API to wait during the transaction steps of an atomic swap | | requires\_notarization | boolean | Optional, defaults to `false`. If `true`, coins protected by [Komodo Platform's dPoW security](https://satindergrewal.medium.com/delayed-proof-of-work-explained-9a74250dbb86) will wait for a notarization before progressing to the next atomic swap transactions step. | -| rpc\_mode | string | Optional, defaults to `Http`, value can be `Metamask` when the Komodo DeFi Framework is built targeting `wasm` | +| rpc\_mode | string | Optional, defaults to `Default`. Can be set to `Metamask` when the Komodo DeFi Framework is built targeting `wasm` | | tx\_history | boolean | Optional, defaults to `false`. If `true` the Komodo DeFi Framework API will preload transaction history as a background process. Must be set to `true` to use the [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) method | ### Response Parameters @@ -67,7 +67,6 @@ Additionally, it supports ERC20 tokens on the ETH chain and associated ERC20 lik "gui_auth": true } ], - "rpc_mode": "Http", "tx_history": true, "erc20_tokens_requests": [ {