From 4575af452513d0d72ba4680a57f61902d6839b3f Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 13 Sep 2024 16:11:46 +0800 Subject: [PATCH 1/4] update `rpc_mode` default value --- .../api/v20/enable_eth_with_tokens/index.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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..0c391aa5 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": [ { From 8d2e24cafc6675cfe264a9b5a64f2e9a6aa06efa Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 13 Sep 2024 16:14:15 +0800 Subject: [PATCH 2/4] fix capitalization --- .../api/v20/enable_eth_with_tokens/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0c391aa5..02a1988a 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 `default`. Can be set to `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 From 36407af36f4aba5f9c258e9fe6d8070ff3f3bf90 Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 13 Sep 2024 16:19:46 +0800 Subject: [PATCH 3/4] add `rpc_mode` param to `enable_eth_with_tokens` in postman --- .../komodo_defi.postman_collection.json | 4417 +++++++++++++---- 1 file changed, 3588 insertions(+), 829 deletions(-) diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 35a0c59f..995ae809 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -1,10 +1,11 @@ { "info": { - "_postman_id": "01b1b7d4-48d2-414d-b721-e1e7ea1c2c3a", - "name": "komodo_defi", + "_postman_id": "1b69d366-bcea-4ccf-bc91-39eb07c9b074", + "name": "Komodo DeFi Framework", "description": "Komodo DeFi Framework RPC methods", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "12719479" + "_exporter_id": "12719479", + "_collection_link": "https://smk762.postman.co/workspace/KMD-QA~b04e9300-501c-4931-9886-94f79ebc51a5/collection/12719479-1b69d366-bcea-4ccf-bc91-39eb07c9b074?action=share&source=collection_link&creator=12719479" }, "item": [ { @@ -29,7 +30,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -44,7 +46,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10017\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10017\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10017\"\r\n }\r\n ]\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"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}}", @@ -53,7 +55,141 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate DOC", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ]\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "217" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:27:00 GMT" + } + ], + "cookie": [], + "body": "{\"result\":\"success\",\"address\":\"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\"balance\":\"10634.52052535\",\"unspendable_balance\":\"0\",\"coin\":\"DOC\",\"required_confirmations\":1,\"requires_notarization\":false,\"mature_confirmations\":100}" + }, + { + "name": "Activate MARTY", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"MARTY\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10021\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10021\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10021\"\r\n }\r\n ]\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "216" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:28:15 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"result\": \"success\",\n \"address\": \"RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d\",\n \"balance\": \"1264.884406\",\n \"unspendable_balance\": \"0\",\n \"coin\": \"MARTY\",\n \"required_confirmations\": 1,\n \"requires_notarization\": false,\n \"mature_confirmations\": 100\n}" + }, + { + "name": "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 WSS)", @@ -253,7 +389,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", @@ -412,7 +591,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\"}]}" + } + ] } ] }, @@ -778,7 +1000,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", @@ -818,7 +1090,92 @@ }, "description": "Returns the confirmed and unconfirmed balance of the requested coin." }, - "response": [] + "response": [ + { + "name": "Error: Coin not active", + "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\": \"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", @@ -1057,7 +1414,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "GoodTillCancelled", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"buy\",\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"price\": 1.1,\r\n \"volume\": 2.4\r\n // \"min_volume\": null, // Accepted values: Decimals\r\n // \"timeout\": 30,\r\n // \"match_by\": {\r\n // \"type\": \"Any\" // Accepted values: \"Any\", \"Orders\", \"Pubkeys\"\r\n // // \"data\": [\r\n // // \"1ab7edc96abaefb358b52c583048eaaeb8ea42609d096d6cddfafa02fa510c6a\",\r\n // // \"1ab7edc96abaefb358b52c583048eaaeb8ea42609d096d6cddfafa02fa510c6a\"\r\n // // ] // Required only if: \"type\": \"Orders\", \"type\": \"Pubkeys\"\r\n // },\r\n // \"order_type\": {\r\n // \"type\": \"GoodTillCancelled\" // Accepted values: \"GoodTillCancelled\", \"FillOrKill\"\r\n // },\r\n // \"base_confs\": 1, // Default: Coin Config\r\n // \"base_nota\": false, // Default: Coin Config\r\n // \"rel_confs\": 1, // Default: Coin Config\r\n // \"rel_nota\": false, // Default: Coin Config\r\n // \"save_in_history\": true\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "718" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:35:27 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"base\":\"DOC\",\"rel\":\"MARTY\",\"base_amount\":\"2.4\",\"base_amount_rat\":[[1,[12]],[1,[5]]],\"rel_amount\":\"2.64\",\"rel_amount_rat\":[[1,[66]],[1,[25]]],\"action\":\"Buy\",\"uuid\":\"0a3859ba-0e28-49de-b015-641c050a6409\",\"method\":\"request\",\"sender_pubkey\":\"d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\"dest_pub_key\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"match_by\":{\"type\":\"Any\"},\"conf_settings\":{\"base_confs\":1,\"base_nota\":false,\"rel_confs\":1,\"rel_nota\":false},\"order_type\":{\"type\":\"GoodTillCancelled\"},\"min_volume\":\"0.0001\",\"min_volume_fraction\":{\"numer\":\"1\",\"denom\":\"10000\"},\"min_volume_rat\":[[1,[1]],[1,[10000]]],\"base_orderbook_ticker\":null,\"rel_orderbook_ticker\":null}}" + } + ] }, { "name": "cancel_all_orders", @@ -1779,7 +2179,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -1794,7 +2195,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}}", @@ -1803,88 +2204,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", @@ -1911,7 +2394,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}}", @@ -1923,7 +2406,7 @@ "response": [] }, { - "name": "set_requires_notarization", + "name": "recover_funds_of_swap", "event": [ { "listen": "prerequest", @@ -1950,7 +2433,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}}", @@ -1962,7 +2445,7 @@ "response": [] }, { - "name": "stats_swap_status", + "name": "set_required_confirmations", "event": [ { "listen": "prerequest", @@ -1989,7 +2472,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}}", @@ -1999,14 +2482,9 @@ } }, "response": [] - } - ] - }, - { - "name": "P2P", - "item": [ + }, { - "name": "ban_pubkey", + "name": "set_requires_notarization", "event": [ { "listen": "prerequest", @@ -2033,7 +2511,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}}", @@ -2045,7 +2523,7 @@ "response": [] }, { - "name": "get_gossip_mesh", + "name": "stats_swap_status", "event": [ { "listen": "prerequest", @@ -2072,7 +2550,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}}", @@ -2082,9 +2560,14 @@ } }, "response": [] - }, + } + ] + }, + { + "name": "P2P", + "item": [ { - "name": "get_gossip_peer_topics", + "name": "ban_pubkey", "event": [ { "listen": "prerequest", @@ -2111,7 +2594,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}}", @@ -2120,10 +2603,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", @@ -2150,7 +2676,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}}", @@ -2159,10 +2685,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", @@ -2189,7 +2758,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}}", @@ -2198,10 +2767,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_gossip_peer_topics", + "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_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\":[]}}" + } + ] }, { - "name": "get_peers_info", + "name": "get_gossip_topic_peers", "event": [ { "listen": "prerequest", @@ -2228,7 +2840,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_peers_info\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_gossip_topic_peers\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2237,10 +2849,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": "get_relay_mesh", + "name": "get_my_peer_id", "event": [ { "listen": "prerequest", @@ -2267,7 +2922,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_my_peer_id\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2276,49 +2931,53 @@ ] } }, - "response": [] - }, - { - "name": "list_banned_pubkeys", - "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_my_peer_id", + "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\": \"list_banned_pubkeys\"\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "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\"}" } - }, - "response": [] + ] }, { - "name": "unban_pubkeys", + "name": "get_directly_connected_peers", "event": [ { "listen": "prerequest", @@ -2330,7 +2989,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -2345,7 +3005,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}}", @@ -2354,15 +3014,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", @@ -2389,7 +3087,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}}", @@ -2398,10 +3096,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", @@ -2428,7 +3169,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}}", @@ -2437,10 +3178,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "list_banned_pubkeys", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "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": "version", + "name": "unban_pubkeys", "event": [ { "listen": "prerequest", @@ -2467,7 +3251,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}}", @@ -2476,15 +3260,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", @@ -2511,7 +3338,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}}", @@ -2523,7 +3350,7 @@ "response": [] }, { - "name": "stop", + "name": "metrics", "event": [ { "listen": "prerequest", @@ -2550,7 +3377,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}}", @@ -2559,39 +3386,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": [ { @@ -2602,7 +3400,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}}", @@ -2611,26 +3409,271 @@ ] } }, - "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": { + "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);" + ], + "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": "version", + "originalRequest": { + "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}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-type", + "value": "application/json" + }, + { + "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" + } + ], + "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": "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_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": { + "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::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" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "task::enable_utxo::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": [ { @@ -3221,385 +4264,1352 @@ ] }, { - "name": "get_enabled_coins", - "event": [ + "name": "EVM", + "item": [ { - "listen": "prerequest", - "script": { - "exec": [ - "// Strip JSON Comments\r", - "const rawData = pm.request.body.toString();\r", - "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", - "\r", - "pm.request.body.update(strippedData);" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_enabled_coins\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" - }, - "url": { - "raw": "{{address}}", - "host": [ + "name": "enable_eth_with_tokens", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"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" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "ETH", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"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" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "778" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:54:48 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 20711138,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"balances\": {\n \"spendable\": \"0.086762578016820988\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"balances\": {\n \"MINDS-ERC20\": {\n \"spendable\": \"0\",\n \"unspendable\": \"0\"\n }\n }\n }\n },\n \"nfts_infos\": {\n \"0xe70659b717112ac4e14284d0db2f5d5703df8e43,72\": {\n \"token_address\": \"0xe70659b717112ac4e14284d0db2f5d5703df8e43\",\n \"token_id\": \"72\",\n \"chain\": \"ETH\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2da827a0c6417ee74253937f8565fe3dad5fb975,31\": {\n \"token_address\": \"0x2da827a0c6417ee74253937f8565fe3dad5fb975\",\n \"token_id\": \"31\",\n \"chain\": \"ETH\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n }\n }\n },\n \"id\": null\n}" + }, + { + "name": "BNB", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"BNB\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"swap_contract_address\": \"0xeDc5b89Fe1f0382F9E4316069971D90a0951DB31\",\n \"fallback_swap_contract\": \"0xeDc5b89Fe1f0382F9E4316069971D90a0951DB31\",\n \"nodes\": [\n {\n \"url\": \"https://bsc1.cipig.net:18655\"\n },\n {\n \"url\": \"https://bsc3.cipig.net:18655\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/bnb\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"KMD-BEP20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "547" + }, + { + "key": "date", + "value": "Tue, 27 Aug 2024 04:51:50 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":41720342,\"eth_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\"}},\"erc20_addresses_infos\":{\"0x84ab…b27a\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04ec603f83519cc2150bd99ed0ed6b3f7f029dedff2957cd22542e2504e3d2a7953c084f907cce2f0e26fb0cfc55e06925bf0f88a92b904224dba8ebafdf98ce7b\",\"tickers\":[\"KMD-BEP20\"]}},\"nfts_infos\":{}},\"id\":null}" + }, + { + "name": "MATIC (without NFTs)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "560" + }, + { + "key": "date", + "value": "Mon, 02 Sep 2024 07:03:56 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 61329088,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"tickers\": [\n \"AAVE-PLG20\",\n \"PGX-PLG20\"\n ]\n }\n },\n \"nfts_infos\": {}\n },\n \"id\": null\n}" + }, + { + "name": "MATIC (with NFTs)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "14333" + }, + { + "key": "date", + "value": "Mon, 02 Sep 2024 07:06:30 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"current_block\": 61329162,\n \"eth_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"\n }\n },\n \"erc20_addresses_infos\": {\n \"0xab95…6498\": {\n \"derivation_method\": {\n \"type\": \"Iguana\"\n },\n \"pubkey\": \"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\n \"tickers\": [\n \"PGX-PLG20\",\n \"AAVE-PLG20\"\n ]\n }\n },\n \"nfts_infos\": {\n \"0xc37d76acc7b9482738ddec4370e6357776ab4619,1\": {\n \"token_address\": \"0xc37d76acc7b9482738ddec4370e6357776ab4619\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x014ec9f122a9e245fdcd8d04669f6bd9767488e5,1\": {\n \"token_address\": \"0x014ec9f122a9e245fdcd8d04669f6bd9767488e5\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x004ddffc02c9c20b3abbbe251811302dc578fec3,1\": {\n \"token_address\": \"0x004ddffc02c9c20b3abbbe251811302dc578fec3\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb927f724d51c228efac3cf01e54f1bfb72e5d8d8,1\": {\n \"token_address\": \"0xb927f724d51c228efac3cf01e54f1bfb72e5d8d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb26215cdf9637e58fde65abd4dfca373e9ac347c,1\": {\n \"token_address\": \"0xb26215cdf9637e58fde65abd4dfca373e9ac347c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,6\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"6\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x5c652b3213ff76eb6530bcbad38a21e177a61598,1\": {\n \"token_address\": \"0x5c652b3213ff76eb6530bcbad38a21e177a61598\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xccf0fd8da6fa51ea019775f18d1fbc1bba088536,1\": {\n \"token_address\": \"0xccf0fd8da6fa51ea019775f18d1fbc1bba088536\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xa0e168fc7965f19ad3f995d61d9a286f95290445,1\": {\n \"token_address\": \"0xa0e168fc7965f19ad3f995d61d9a286f95290445\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,2\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"2\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x86956aee19a9ccc6526da18c9453597a639a9e67,1\": {\n \"token_address\": \"0x86956aee19a9ccc6526da18c9453597a639a9e67\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd5067901dc4eb8d0739cfd6a84b2293141b2bd45,1\": {\n \"token_address\": \"0xd5067901dc4eb8d0739cfd6a84b2293141b2bd45\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x6d7b49528ee72983625252b9327b5486cd425b76,1\": {\n \"token_address\": \"0x6d7b49528ee72983625252b9327b5486cd425b76\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x41a69f2c9da47b97bc86774c273dce0e827544d8,1\": {\n \"token_address\": \"0x41a69f2c9da47b97bc86774c273dce0e827544d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x05bbb37a953fd4d18bcadecb09781ec24e90353d,1\": {\n \"token_address\": \"0x05bbb37a953fd4d18bcadecb09781ec24e90353d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe1ab36eda8012483aa947263b7d9a857d9c37e05,32\": {\n \"token_address\": \"0xe1ab36eda8012483aa947263b7d9a857d9c37e05\",\n \"token_id\": \"32\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc037b01261d7638cf0750bba085edfb59a616d37,1\": {\n \"token_address\": \"0xc037b01261d7638cf0750bba085edfb59a616d37\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb7350ac5b9326d675dacb3f2e38818c911abe660,1\": {\n \"token_address\": \"0xb7350ac5b9326d675dacb3f2e38818c911abe660\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb0e9bb5b186811bb532edecdb47c0a6caea26e44,1\": {\n \"token_address\": \"0xb0e9bb5b186811bb532edecdb47c0a6caea26e44\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x852688002e14fdf0dd3ecbc0fb6136487cc692d8,1\": {\n \"token_address\": \"0x852688002e14fdf0dd3ecbc0fb6136487cc692d8\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe6c61f392ecf1d0abd815099bbcf2a7cbd2eb253,1\": {\n \"token_address\": \"0xe6c61f392ecf1d0abd815099bbcf2a7cbd2eb253\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd25f13e4ba534ef625c75b84934689194b7bd59e,14\": {\n \"token_address\": \"0xd25f13e4ba534ef625c75b84934689194b7bd59e\",\n \"token_id\": \"14\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC721\",\n \"amount\": \"1\"\n },\n \"0x8d832817a3a94dfd4d1d2cb5d89a347e204fabdc,1\": {\n \"token_address\": \"0x8d832817a3a94dfd4d1d2cb5d89a347e204fabdc\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd96284039ca56796bcfa832262f94e3fb69908d4,1\": {\n \"token_address\": \"0xd96284039ca56796bcfa832262f94e3fb69908d4\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x4f7c7ddd85ca11d957a8968bf94dcefd2d1ad4cd,1\": {\n \"token_address\": \"0x4f7c7ddd85ca11d957a8968bf94dcefd2d1ad4cd\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe843809065192c9fe94295315c2a1927f784a460,1\": {\n \"token_address\": \"0xe843809065192c9fe94295315c2a1927f784a460\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2953399124f0cbb46d2cbacd8a89cf0599974963,56787087360155483967447526621654293526681839490012288898340565660705956561896\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"56787087360155483967447526621654293526681839490012288898340565660705956561896\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"4\"\n },\n \"0x8e45865c3766f322f9dd9fa8140a9e7419e0ec15,1\": {\n \"token_address\": \"0x8e45865c3766f322f9dd9fa8140a9e7419e0ec15\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0f845992467e901224c964c5e584c0026cdfcecb,1\": {\n \"token_address\": \"0x0f845992467e901224c964c5e584c0026cdfcecb\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x92aa07d5f242a82eb1a39a41a0eae4d634b85b29,1\": {\n \"token_address\": \"0x92aa07d5f242a82eb1a39a41a0eae4d634b85b29\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,4\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"4\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2f10726f7b420ded058e225560832ecfdd692934,1\": {\n \"token_address\": \"0x2f10726f7b420ded058e225560832ecfdd692934\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x4b81106c7c6d33b78773c749901cfe13341ab194,1\": {\n \"token_address\": \"0x4b81106c7c6d33b78773c749901cfe13341ab194\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xaa625cfc68d5b2f6dabc8b29f17a9e764595f436,1\": {\n \"token_address\": \"0xaa625cfc68d5b2f6dabc8b29f17a9e764595f436\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,7\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"7\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe1d7e6a33d9c4f241652191315c88d3d3daf6ed0,1\": {\n \"token_address\": \"0xe1d7e6a33d9c4f241652191315c88d3d3daf6ed0\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2b4f183181215ed49f467c148a7cbed79e4f967f,0\": {\n \"token_address\": \"0x2b4f183181215ed49f467c148a7cbed79e4f967f\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xac56f690bfcc1f86caccfcf5ffdab5e30a671115,1\": {\n \"token_address\": \"0xac56f690bfcc1f86caccfcf5ffdab5e30a671115\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xe432debcb66fd0a00efea30eeb5374516d3776a7,1\": {\n \"token_address\": \"0xe432debcb66fd0a00efea30eeb5374516d3776a7\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x966f1e15249344499953887cb244d9f26989016d,1\": {\n \"token_address\": \"0x966f1e15249344499953887cb244d9f26989016d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,8\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"8\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x1016363a2af9c848e9daad19db9dfecbe5316bc3,0\": {\n \"token_address\": \"0x1016363a2af9c848e9daad19db9dfecbe5316bc3\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x88b04b7fef48677577da7baf0620a1ac0710910b,1\": {\n \"token_address\": \"0x88b04b7fef48677577da7baf0620a1ac0710910b\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x34b3332a72daf3d19ebe485c6cb6cad5d81f86ab,0\": {\n \"token_address\": \"0x34b3332a72daf3d19ebe485c6cb6cad5d81f86ab\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x316d73824bc9c60f239d4c57082bcde4bfdf4f7a,3\": {\n \"token_address\": \"0x316d73824bc9c60f239d4c57082bcde4bfdf4f7a\",\n \"token_id\": \"3\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x39a54fa042e214d89fd8bcb0f1ad4fd6478c6e6f,1\": {\n \"token_address\": \"0x39a54fa042e214d89fd8bcb0f1ad4fd6478c6e6f\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf95923992e508ecba70f6a28942006dc7bceeda4,1\": {\n \"token_address\": \"0xf95923992e508ecba70f6a28942006dc7bceeda4\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xb6b17e34e9970c446eb103d46a7465c078428da2,1\": {\n \"token_address\": \"0xb6b17e34e9970c446eb103d46a7465c078428da2\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd99f7be919009c4e99de55298f8c2fb6a9f56d4d,1\": {\n \"token_address\": \"0xd99f7be919009c4e99de55298f8c2fb6a9f56d4d\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xd2a622e8a45cf65917c92c540fe9c6553f92017e,1\": {\n \"token_address\": \"0xd2a622e8a45cf65917c92c540fe9c6553f92017e\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf4953888c6c120ebbac848036331ff82beb809aa,1\": {\n \"token_address\": \"0xf4953888c6c120ebbac848036331ff82beb809aa\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0aa915b14b30df7589d79746c9d5f6cd39d48707,1\": {\n \"token_address\": \"0x0aa915b14b30df7589d79746c9d5f6cd39d48707\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x96831c434841b9af60c9ec6d4e6992d89f3a307e,8\": {\n \"token_address\": \"0x96831c434841b9af60c9ec6d4e6992d89f3a307e\",\n \"token_id\": \"8\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x359b2d7b1ad60b50a88071b5699bca673dcb9d3c,1\": {\n \"token_address\": \"0x359b2d7b1ad60b50a88071b5699bca673dcb9d3c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x8476077092b4a67b58b5358787710f6bb0d3fcaf,0\": {\n \"token_address\": \"0x8476077092b4a67b58b5358787710f6bb0d3fcaf\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x396849212c0a846c0cf5deb41c9534cdfb111709,1\": {\n \"token_address\": \"0x396849212c0a846c0cf5deb41c9534cdfb111709\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x2953399124f0cbb46d2cbacd8a89cf0599974963,56787087360155483967447526621654293526681839490012288898340565435306072867816\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"56787087360155483967447526621654293526681839490012288898340565435306072867816\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"2\"\n },\n \"0x107679bef23a5e5684a66c4d00395cc8f8d71226,0\": {\n \"token_address\": \"0x107679bef23a5e5684a66c4d00395cc8f8d71226\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc28a19e9a663d966cf99532bdb1229df1b0e344b,1\": {\n \"token_address\": \"0xc28a19e9a663d966cf99532bdb1229df1b0e344b\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,5\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,9\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"9\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x77da7a6e8690bb0b805246f554c3a938d7139710,1\": {\n \"token_address\": \"0x77da7a6e8690bb0b805246f554c3a938d7139710\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x518948db176e966eda1b10aa3137aba6a626caf9,1\": {\n \"token_address\": \"0x518948db176e966eda1b10aa3137aba6a626caf9\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x0dc6ff017a62605b3160887675874d0146037686,1\": {\n \"token_address\": \"0x0dc6ff017a62605b3160887675874d0146037686\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc06a6ab4c2b0ed14ed5692adf324a9a463259c43,0\": {\n \"token_address\": \"0xc06a6ab4c2b0ed14ed5692adf324a9a463259c43\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,3\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"3\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,1\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xc6d46a02a73d180a08b985bbfad6441c70e418ec,1\": {\n \"token_address\": \"0xc6d46a02a73d180a08b985bbfad6441c70e418ec\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xfe86052e0c1e2d770c97699dc1675fd08a94b804,1\": {\n \"token_address\": \"0xfe86052e0c1e2d770c97699dc1675fd08a94b804\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x959e7680093345df3ec10fafdc01756e4d9ebd2c,1\": {\n \"token_address\": \"0x959e7680093345df3ec10fafdc01756e4d9ebd2c\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x73a5299824cd955af6377b56f5762dc3ca4cc078,1\": {\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC721\",\n \"amount\": \"1\"\n },\n \"0x3987dfed574927e7a3309758ccf949ad2403fcbb,1\": {\n \"token_address\": \"0x3987dfed574927e7a3309758ccf949ad2403fcbb\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668,0\": {\n \"token_address\": \"0xf3fc2a3d15453515039d292d7c0d3d7514a93668\",\n \"token_id\": \"0\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n },\n \"0x521ce9d9c66af3ff7abf6f49186ddf0559ed75ed,1\": {\n \"token_address\": \"0x521ce9d9c66af3ff7abf6f49186ddf0559ed75ed\",\n \"token_id\": \"1\",\n \"chain\": \"POLYGON\",\n \"contract_type\": \"ERC1155\",\n \"amount\": \"1\"\n }\n }\n },\n \"id\": null\n}" + }, + { + "name": "AVAX", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"gui_auth\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "907" + }, + { + "key": "date", + "value": "Thu, 05 Sep 2024 15:10:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"current_block\":50155792,\"eth_addresses_infos\":{\"0xab95…6498\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\"}},\"erc20_addresses_infos\":{\"0xab95…6498\":{\"derivation_method\":{\"type\":\"Iguana\"},\"pubkey\":\"04d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2a91c9ce32b6fc5489c49e33b688423b655177168afee1b128be9b2fee67e3f3b\",\"tickers\":[]}},\"nfts_infos\":{\"0x16742be85e1f51949b80f52ca22f35cb9f5e7478,49\":{\"token_address\":\"0x16742be85e1f51949b80f52ca22f35cb9f5e7478\",\"token_id\":\"49\",\"chain\":\"AVALANCHE\",\"contract_type\":\"ERC721\",\"amount\":\"1\"},\"0xac737748362fbcd78fad7c982018afa164266cbb,307\":{\"token_address\":\"0xac737748362fbcd78fad7c982018afa164266cbb\",\"token_id\":\"307\",\"chain\":\"AVALANCHE\",\"contract_type\":\"ERC721\",\"amount\":\"1\"}}},\"id\":null}" + } + ] + } + ] + }, + { + "name": "TENDERMINT", + "item": [ + { + "name": "enable_tendermint_token", + "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_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}}" + ] + } + }, + "response": [ + { + "name": "Error: TokenIsAlreadyActivated", + "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": "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}" + }, + { + "name": "Activate ATOM-IBC_IRIS", + "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": "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}" + } + ] + } + ] + }, + { + "name": "get_enabled_coins", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"get_enabled_coins\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Non Fungible Tokens", + "item": [ + { + "name": "get_nft_list", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ]\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "response": [ + { + "name": "Example with optional limit & page_number params", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"limit\": 1,\n \"page_number\": 2\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "_postman_previewlanguage": "JSON", + "header": [], + "cookie": [], + "body": "" + }, + { + "name": "Example with spam protection", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"protect_from_spam\": true,\n \"filters\": {\n \"exclude_spam\": true,\n \"exclude_phishing\": true\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" + }, + "_postman_previewlanguage": "JSON", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "get_nft_transfers", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_transfers\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"max\": true,\n \"filters\": {\n \"send\": true,\n \"from_date\": 1690890685\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers)" + }, + "response": [] + }, + { + "name": "get_nft_metadata", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"chain\": \"POLYGON\"\n }\n}", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata)" + }, + "response": [] + }, + { + "name": "refresh_nft_metadata", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"refresh_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x48c75fbf0452fa8ff2928ddf46b0fe7629cca2ff\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata)" + }, + "response": [] + }, + { + "name": "update_nft", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"proxy_auth\": false,\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ "{{address}}" ] + }, + "description": "DevDocs Link: [https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/](https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/)" + }, + "response": [ + { + "name": "update_nft", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\",\n \"BSC\"\n ],\n \"proxy_auth\": false,\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "39" + }, + { + "key": "date", + "value": "Tue, 27 Aug 2024 04:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + } + ] + }, + { + "name": "withdraw_nft", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\"\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts)" }, "response": [] + }, + { + "name": "withdraw_nft (erc1155)", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc1155\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"amount\": \"1\"\n }\n }\n}", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example)" + }, + "response": [ + { + "name": "erc1155", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"withdraw_type\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"BSC\",\n \"to\": \"0x6FAD0eC6bb76914b2a2a800686acc22970645820\",\n \"token_address\": \"0xfd913a305d70a60aac4faac70c739563738e1f81\",\n \"token_id\": \"214300044414\"\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "_postman_previewlanguage": "Text", + "header": [], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "clear_nft_db", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"clear_all\": true,\n \"chains\": [\"POLYGON\", \"FANTOM\", \"ETH\", \"BSC\", \"AVALANCHE\"]\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + }, + "description": "DevDocs Link: https://komodoplatform.com/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/" + }, + "response": [ + { + "name": "clear_nft_db (clear all)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"clear_all\": true\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "39" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:25:32 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + }, + { + "name": "clear_nft_db (by chains)", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"clear_nft_db\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\"BSC\"]\n }\n}\n", + "options": { + "raw": { + "language": "text" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "39" + }, + { + "key": "date", + "value": "Fri, 23 Aug 2024 09:26:31 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":null,\"id\":null}" + } + ] + }, + { + "name": "enable_nft", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATIC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "TokenIsAlreadyActivated", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATIC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "184" + }, + { + "key": "date", + "value": "Fri, 06 Sep 2024 14:36:46 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Token NFT_MATIC is already activated\",\"error_path\":\"token\",\"error_trace\":\"token:121]\",\"error_type\":\"TokenIsAlreadyActivated\",\"error_data\":\"NFT_MATIC\",\"id\":null}" + }, + { + "name": "TokenConfigIsNotFound", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"NFT_MATICC\",\n \"activation_params\": {\n \"provider\":{\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"proxy_auth\": true\n }\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "203" + }, + { + "key": "date", + "value": "Fri, 06 Sep 2024 14:39:56 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Token NFT_MATICC config is not found\",\"error_path\":\"token.prelude\",\"error_trace\":\"token:124] prelude:79]\",\"error_type\":\"TokenConfigIsNotFound\",\"error_data\":\"NFT_MATICC\",\"id\":null}" + } + ] } ] - }, - { - "name": "Non Fungible Tokens", - "item": [ - { - "name": "get_nft_list", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ]\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "response": [ - { - "name": "Example with optional limit & page_number params", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"limit\": 1,\n \"page_number\": 2\n }\n }", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "_postman_previewlanguage": "JSON", - "header": null, - "cookie": [], - "body": null - }, - { - "name": "Example with spam protection", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_list\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"protect_from_spam\": true,\n \"filters\": {\n \"exclude_spam\": true,\n \"exclude_phishing\": true\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nfts)" - }, - "_postman_previewlanguage": "JSON", - "header": null, - "cookie": [], - "body": null - } - ] - }, - { - "name": "get_nft_transfers", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_transfers\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"POLYGON\"\n ],\n \"max\": true,\n \"filters\": {\n \"send\": true,\n \"from_date\": 1690890685\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-a-list-of-nft-transfers)" - }, - "response": [] - }, - { - "name": "get_nft_metadata", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"chain\": \"POLYGON\"\n }\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#get-nft-metadata)" - }, - "response": [] - }, - { - "name": "refresh_nft_metadata", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"refresh_nft_metadata\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"token_address\": \"0x48c75fbf0452fa8ff2928ddf46b0fe7629cca2ff\",\n \"token_id\": \"5\",\n \"chain\": \"POLYGON\",\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#refresh-nft-metadata)" - }, - "response": [] - }, - { - "name": "update_nft", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"update_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"chains\": [\n \"BSC\",\n \"POLYGON\"\n ],\n \"url\": \"https://moralis-proxy.komodo.earth\",\n \"url_antispam\": \"https://nft.antispam.dragonhound.info\"\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#update-nft](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#update-nft)" - }, - "response": [] - }, - { - "name": "withdraw_nft", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x73a5299824cd955af6377b56f5762dc3ca4cc078\",\n \"token_id\": \"1\"\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#withdraw-nfts)" - }, - "response": [] - }, - { - "name": "withdraw_nft (erc1155)", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "pm.collectionVariables.set(\"userpass\", pm.environment.get(\"userpass\"));", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"type\": \"withdraw_erc1155\",\n \"withdraw_data\": {\n \"chain\": \"POLYGON\",\n \"to\": \"0x27Ad1F808c1ef82626277Ae38998AfA539565660\",\n \"token_address\": \"0x2953399124f0cbb46d2cbacd8a89cf0599974963\",\n \"token_id\": \"110473361632261669912565539602449606788298723469812631769659886404530570536720\",\n \"amount\": \"1\"\n }\n }\n}", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - }, - "description": "[https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example](https://nft-methods.komodo-docs-revamp-2023.pages.dev/en/docs/komodo-defi-framework/api/v20-dev/non_fungible_tokens/#erc-1155-withdraw-example)" - }, - "response": [ - { - "name": "erc1155", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"withdraw_nft\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"withdraw_type\": {\n \"type\": \"withdraw_erc721\",\n \"withdraw_data\": {\n \"chain\": \"BSC\",\n \"to\": \"0x6FAD0eC6bb76914b2a2a800686acc22970645820\",\n \"token_address\": \"0xfd913a305d70a60aac4faac70c739563738e1f81\",\n \"token_id\": \"214300044414\"\n }\n }\n }\n}\n", - "options": { - "raw": { - "language": "text" - } - } - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "_postman_previewlanguage": null, - "header": null, - "cookie": [], - "body": null - } - ] - } - ] - }, + }, { "name": "Wallet", "item": [ @@ -4365,7 +6375,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -4380,7 +6391,7 @@ ], "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" + "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}}", @@ -4389,7 +6400,189 @@ ] } }, - "response": [] + "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", + "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.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" + }, + "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": "1537" + }, + { + "key": "date", + "value": "Thu, 12 Sep 2024 11:11:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"tx_hex\":\"0af9010abc010a292f6962632e6170706c69636174696f6e732e7472616e736665722e76312e4d73675472616e73666572128e010a087472616e73666572120b6368616e6e656c2d3134311a0f0a057561746f6d1206313030303030222d636f736d6f733136647271766c33753873756b667375346c6d3371736b32386a72336661686a617377736163382a2b6f736d6f3136647271766c33753873756b667375346c6d3371736b32386a72336661686a6163347264773438a6c5b9a089f29efa171233496e2074686520626c61636b657374206f6620796f7572206d6f6d656e74732c20776169742077697468206e6f20666561722e188df8c70a12680a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a2103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc212040a020801180b12140a0e0a057561746f6d1205313733353910e0c65b1a40042c4fa45d77405ee94e737a000b146f5019137d5a2d3275849c9ad66dd8ef1d0f087fb584f34b1ebcf7989e41bc0675e96c83f0eec4ffe355e078b6615d7a72\",\"tx_hash\":\"06174E488B7BBC35180E841F2D170327BB7DE0A291CA69050D81F82A7CF103CB\",\"from\":[\"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\"],\"to\":[\"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\"],\"total_amount\":\"0.1173590000000000\",\"spent_by_me\":\"0.1173590000000000\",\"received_by_me\":\"0\",\"my_balance_change\":\"-0.1173590000000000\",\"block_height\":0,\"timestamp\":0,\"fee_details\":{\"type\":\"Tendermint\",\"coin\":\"ATOM\",\"amount\":\"0.017359\",\"gas_limit\":1500000},\"coin\":\"ATOM\",\"internal_id\":\"06174e488b7bbc35180e841f2d170327bb7de0a291ca69050d81f82a7cf103cb\",\"transaction_type\":\"TendermintIBCTransfer\",\"memo\":\"In the blackest of your moments, wait with no fear.\"},\"id\":null}" + } + ] }, { "name": "task::withdraw::init", @@ -4863,11 +7056,331 @@ "{{address}}" ] } - }, - "response": [] + }, + "response": [] + }, + { + "name": "trade_preimage", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript" + } + } + ], + "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\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"swap_method\": \"setprice\", // Accepted values: \"setprice\", \"buy\", \"sell\"\r\n \"price\": 1.01,\r\n \"volume\": 1.05 // used only if: \"max\": false\r\n // \"max\": false\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Swaps", + "item": [ + { + "name": "recreate_swap_data", + "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\": \"recreate_swap_data\",\r\n \"params\": {\r\n \"swap\": {\r\n \"uuid\": \"07ce08bf-3db9-4dd8-a671-854affc1b7a3\",\r\n \"events\": [\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"lock_duration\": 7800,\r\n \"maker\": \"631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640\",\r\n \"maker_amount\": \"3\",\r\n \"maker_coin\": \"BEER\",\r\n \"maker_coin_start_block\": 156186,\r\n \"maker_payment_confirmations\": 0,\r\n \"maker_payment_wait\": 1568883784,\r\n \"my_persistent_pub\": \"02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3\",\r\n \"started_at\": 1568881184,\r\n \"taker_amount\": \"4\",\r\n \"taker_coin\": \"ETOMIC\",\r\n \"taker_coin_start_block\": 175041,\r\n \"taker_payment_confirmations\": 1,\r\n \"taker_payment_lock\": 1568888984,\r\n \"uuid\": \"07ce08bf-3db9-4dd8-a671-854affc1b7a3\"\r\n },\r\n \"type\": \"Started\"\r\n },\r\n \"timestamp\": 1568881185316\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"maker_payment_locktime\": 1568896784,\r\n \"maker_pubkey\": \"02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640\",\r\n \"secret_hash\": \"eba736c5cc9bb33dee15b4a9c855a7831a484d84\"\r\n },\r\n \"type\": \"Negotiated\"\r\n },\r\n \"timestamp\": 1568881246025\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"0c07be4dda88d8d75374496aa0f27e12f55363ce8d558cb5feecc828545e5f87\",\r\n \"tx_hex\": \"0400008085202f890146b98696761d5e8667ffd665b73e13a8400baab4b22230a7ede0e4708597ee9c000000006a473044022077acb70e5940dfe789faa77e72b34f098abbf0974ea94a0380db157e243965230220614ec4966db0a122b0e7c23aa0707459b3b4f8241bb630c635cf6e943e96362e012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff02f0da0700000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac68630700000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac5e3a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"TakerFeeSent\"\r\n },\r\n \"timestamp\": 1568881250689\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"31d97b3359bdbdfbd241e7706c90691e4d7c0b7abd27f2b22121be7f71c5fd06\",\r\n \"tx_hex\": \"0400008085202f8901b4679094d4bf74f52c9004107cb9641a658213d5e9950e42a8805824e801ffc7010000006b483045022100b2e49f8bdc5a4b6c404e10150872dbec89a46deb13a837d3251c0299fe1066ca022012cbe6663106f92aefce88238b25b53aadd3522df8290ced869c3cc23559cc23012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0200a3e1110000000017a91476e1998b0cd18da5f128e5bb695c36fbe6d957e98764c987c9bf0000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac753a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"MakerPaymentReceived\"\r\n },\r\n \"timestamp\": 1568881291571\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"MakerPaymentWaitConfirmStarted\"\r\n },\r\n \"timestamp\": 1568881291571\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"MakerPaymentValidatedAndConfirmed\"\r\n },\r\n \"timestamp\": 1568881291985\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"95926ab204049edeadb370c17a1168d9d79ee5747d8d832f73cfddf1c74f3961\",\r\n \"tx_hex\": \"0400008085202f8902875f5e5428c8ecfeb58c558dce6353f5127ef2a06a497453d7d888da4dbe070c010000006a4730440220416059356dc6dde0ddbee206e456698d7e54c3afa92132ecbf332e8c937e5383022068a41d9c208e8812204d4b0d21749b2684d0eea513467295e359e03c5132e719012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff46b98696761d5e8667ffd665b73e13a8400baab4b22230a7ede0e4708597ee9c010000006b483045022100a990c798d0f96fd5ff7029fd5318f3c742837400d9f09a002e7f5bb1aeaf4e5a0220517dbc16713411e5c99bb0172f295a54c97aaf4d64de145eb3c5fa0fc38b67ff012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff020084d7170000000017a9144d57b4930e6c86493034f17aa05464773625de1c877bd0de03010000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac8c3a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"TakerPaymentSent\"\r\n },\r\n \"timestamp\": 1568881296904\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"secret\": \"fb968d5460399f20ffd09906dc8f65c21fbb5cb8077a8e6d7126d0526586ca96\",\r\n \"transaction\": {\r\n \"tx_hash\": \"68f5ec617bd9a4a24d7af0ce9762d87f7baadc13a66739fd4a2575630ecc1827\",\r\n \"tx_hex\": \"0400008085202f890161394fc7f1ddcf732f838d7d74e59ed7d968117ac170b3adde9e0404b26a929500000000d8483045022100a33d976cf509d6f9e66c297db30c0f44cced2241ee9c01c5ec8d3cbbf3d41172022039a6e02c3a3c85e3861ab1d2f13ba52677a3b1344483b2ae443723ba5bb1353f0120fb968d5460399f20ffd09906dc8f65c21fbb5cb8077a8e6d7126d0526586ca96004c6b63049858835db1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a914eba736c5cc9bb33dee15b4a9c855a7831a484d84882102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac68ffffffff011880d717000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac942c835d000000000000000000000000000000\"\r\n }\r\n },\r\n \"type\": \"TakerPaymentSpent\"\r\n },\r\n \"timestamp\": 1568881328643\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"error\": \"taker_swap:798] utxo:950] utxo:950] error\"\r\n },\r\n \"type\": \"MakerPaymentSpendFailed\"\r\n },\r\n \"timestamp\": 1568881328645\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"Finished\"\r\n },\r\n \"timestamp\": 1568881328648\r\n }\r\n ],\r\n \"error_events\": [\r\n \"StartFailed\",\r\n \"NegotiateFailed\",\r\n \"TakerFeeSendFailed\",\r\n \"MakerPaymentValidateFailed\",\r\n \"TakerPaymentTransactionFailed\",\r\n \"TakerPaymentDataSendFailed\",\r\n \"TakerPaymentWaitForSpendFailed\",\r\n \"MakerPaymentSpendFailed\",\r\n \"TakerPaymentRefunded\",\r\n \"TakerPaymentRefundFailed\"\r\n ],\r\n \"success_events\": [\r\n \"Started\",\r\n \"Negotiated\",\r\n \"TakerFeeSent\",\r\n \"MakerPaymentReceived\",\r\n \"MakerPaymentWaitConfirmStarted\",\r\n \"MakerPaymentValidatedAndConfirmed\",\r\n \"TakerPaymentSent\",\r\n \"TakerPaymentSpent\",\r\n \"MakerPaymentSpent\",\r\n \"Finished\"\r\n ]\r\n // \"type\": , // Accepted values: \"Maker\", \"Taker\"\r\n // \"my_order_uuid\": null, // Accepted values: Strings\r\n // \"taker_amount\": null, // Accepted values: Decimals\r\n // \"taker_coin\": null, // Accepted values: Strings\r\n // \"taker_coin_usd_price\": null, // Accepted values: Decimals\r\n // \"maker_amount\": null, // Accepted values: Decimals\r\n // \"maker_coin\": null, // Accepted values: Strings\r\n // \"maker_coin_usd_price\": null, // Accepted values: Decimals\r\n // \"gui\": null, // Accepted values: Strings\r\n // \"mm_version\": null // Accepted values: Strings\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "trade_preimage", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"BTC\",\r\n \"rel\": \"DOGE\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "setprice", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"volume\": \"0.1\",\r\n \"swap_method\": \"setprice\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "869" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:29:11 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"base_coin_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"rel_coin_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": true\n },\n \"total_fees\": [\n {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0.00001\",\n \"required_balance_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"required_balance_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ]\n },\n {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0\",\n \"required_balance_fraction\": {\n \"numer\": \"0\",\n \"denom\": \"1\"\n },\n \"required_balance_rat\": [\n [\n 0,\n []\n ],\n [\n 1,\n [\n 1\n ]\n ]\n ]\n }\n ]\n },\n \"id\": 0\n}" + }, + { + "name": "sell", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"volume\": \"0.1\",\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "1513" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:29:58 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"base_coin_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": true\n },\n \"rel_coin_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"taker_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.0001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"7770\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 7770\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"fee_to_send_taker_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"paid_from_trading_vol\": false\n },\n \"total_fees\": [\n {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"amount_fraction\": {\n \"numer\": \"1\",\n \"denom\": \"100000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 1\n ]\n ],\n [\n 1,\n [\n 100000\n ]\n ]\n ],\n \"required_balance\": \"0\",\n \"required_balance_fraction\": {\n \"numer\": \"0\",\n \"denom\": \"1\"\n },\n \"required_balance_rat\": [\n [\n 0,\n []\n ],\n [\n 1,\n [\n 1\n ]\n ]\n ]\n },\n {\n \"coin\": \"DOC\",\n \"amount\": \"0.0001487001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"amount_fraction\": {\n \"numer\": \"5777\",\n \"denom\": \"38850000\"\n },\n \"amount_rat\": [\n [\n 1,\n [\n 5777\n ]\n ],\n [\n 1,\n [\n 38850000\n ]\n ]\n ],\n \"required_balance\": \"0.0001487001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287001287\",\n \"required_balance_fraction\": {\n \"numer\": \"5777\",\n \"denom\": \"38850000\"\n },\n \"required_balance_rat\": [\n [\n 1,\n [\n 5777\n ]\n ],\n [\n 1,\n [\n 38850000\n ]\n ]\n ]\n }\n ]\n },\n \"id\": 0\n}" + }, + { + "name": "Error: InvalidParam", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"MARTY\",\r\n \"rel\": \"DOC\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"sell\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "295" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 02:30:49 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Incorrect use of the 'max' parameter: 'max' cannot be used with 'sell' or 'buy' method\",\n \"error_path\": \"taker_swap\",\n \"error_trace\": \"taker_swap:2453]\",\n \"error_type\": \"InvalidParam\",\n \"error_data\": {\n \"param\": \"max\",\n \"reason\": \"'max' cannot be used with 'sell' or 'buy' method\"\n },\n \"id\": 0\n}" + }, + { + "name": "trade_preimage", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"BTC\",\r\n \"rel\": \"DOGE\",\r\n \"price\": \"1\",\r\n \"max\": true,\r\n \"swap_method\": \"buy\"\r\n },\r\n \"id\": 0\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "192" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:19:39 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such coin BTC\",\n \"error_path\": \"trade_preimage.lp_coins\",\n \"error_trace\": \"trade_preimage:32] lp_coins:4767]\",\n \"error_type\": \"NoSuchCoin\",\n \"error_data\": {\n \"coin\": \"BTC\"\n },\n \"id\": 0\n}" + } + ] }, { - "name": "trade_preimage", + "name": "my_recent_swaps", "event": [ { "listen": "prerequest", @@ -4879,7 +7392,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -4894,7 +7408,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"trade_preimage\",\r\n \"params\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"swap_method\": \"setprice\", // Accepted values: \"setprice\", \"buy\", \"sell\"\r\n \"price\": 1.01,\r\n \"volume\": 1.05 // used only if: \"max\": false\r\n // \"max\": false\r\n }\r\n // \"id\": null // Accepted values: Integers\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}" }, "url": { "raw": "{{address}}", @@ -4903,51 +7417,63 @@ ] } }, - "response": [] - } - ] - }, - { - "name": "Swaps", - "item": [ - { - "name": "recreate_swap_data", - "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": "my_recent_swaps", + "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\": \"recreate_swap_data\",\r\n \"params\": {\r\n \"swap\": {\r\n \"uuid\": \"07ce08bf-3db9-4dd8-a671-854affc1b7a3\",\r\n \"events\": [\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"lock_duration\": 7800,\r\n \"maker\": \"631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640\",\r\n \"maker_amount\": \"3\",\r\n \"maker_coin\": \"BEER\",\r\n \"maker_coin_start_block\": 156186,\r\n \"maker_payment_confirmations\": 0,\r\n \"maker_payment_wait\": 1568883784,\r\n \"my_persistent_pub\": \"02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3\",\r\n \"started_at\": 1568881184,\r\n \"taker_amount\": \"4\",\r\n \"taker_coin\": \"ETOMIC\",\r\n \"taker_coin_start_block\": 175041,\r\n \"taker_payment_confirmations\": 1,\r\n \"taker_payment_lock\": 1568888984,\r\n \"uuid\": \"07ce08bf-3db9-4dd8-a671-854affc1b7a3\"\r\n },\r\n \"type\": \"Started\"\r\n },\r\n \"timestamp\": 1568881185316\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"maker_payment_locktime\": 1568896784,\r\n \"maker_pubkey\": \"02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640\",\r\n \"secret_hash\": \"eba736c5cc9bb33dee15b4a9c855a7831a484d84\"\r\n },\r\n \"type\": \"Negotiated\"\r\n },\r\n \"timestamp\": 1568881246025\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"0c07be4dda88d8d75374496aa0f27e12f55363ce8d558cb5feecc828545e5f87\",\r\n \"tx_hex\": \"0400008085202f890146b98696761d5e8667ffd665b73e13a8400baab4b22230a7ede0e4708597ee9c000000006a473044022077acb70e5940dfe789faa77e72b34f098abbf0974ea94a0380db157e243965230220614ec4966db0a122b0e7c23aa0707459b3b4f8241bb630c635cf6e943e96362e012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff02f0da0700000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac68630700000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac5e3a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"TakerFeeSent\"\r\n },\r\n \"timestamp\": 1568881250689\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"31d97b3359bdbdfbd241e7706c90691e4d7c0b7abd27f2b22121be7f71c5fd06\",\r\n \"tx_hex\": \"0400008085202f8901b4679094d4bf74f52c9004107cb9641a658213d5e9950e42a8805824e801ffc7010000006b483045022100b2e49f8bdc5a4b6c404e10150872dbec89a46deb13a837d3251c0299fe1066ca022012cbe6663106f92aefce88238b25b53aadd3522df8290ced869c3cc23559cc23012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0200a3e1110000000017a91476e1998b0cd18da5f128e5bb695c36fbe6d957e98764c987c9bf0000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac753a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"MakerPaymentReceived\"\r\n },\r\n \"timestamp\": 1568881291571\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"MakerPaymentWaitConfirmStarted\"\r\n },\r\n \"timestamp\": 1568881291571\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"MakerPaymentValidatedAndConfirmed\"\r\n },\r\n \"timestamp\": 1568881291985\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"tx_hash\": \"95926ab204049edeadb370c17a1168d9d79ee5747d8d832f73cfddf1c74f3961\",\r\n \"tx_hex\": \"0400008085202f8902875f5e5428c8ecfeb58c558dce6353f5127ef2a06a497453d7d888da4dbe070c010000006a4730440220416059356dc6dde0ddbee206e456698d7e54c3afa92132ecbf332e8c937e5383022068a41d9c208e8812204d4b0d21749b2684d0eea513467295e359e03c5132e719012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff46b98696761d5e8667ffd665b73e13a8400baab4b22230a7ede0e4708597ee9c010000006b483045022100a990c798d0f96fd5ff7029fd5318f3c742837400d9f09a002e7f5bb1aeaf4e5a0220517dbc16713411e5c99bb0172f295a54c97aaf4d64de145eb3c5fa0fc38b67ff012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff020084d7170000000017a9144d57b4930e6c86493034f17aa05464773625de1c877bd0de03010000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac8c3a835d000000000000000000000000000000\"\r\n },\r\n \"type\": \"TakerPaymentSent\"\r\n },\r\n \"timestamp\": 1568881296904\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"secret\": \"fb968d5460399f20ffd09906dc8f65c21fbb5cb8077a8e6d7126d0526586ca96\",\r\n \"transaction\": {\r\n \"tx_hash\": \"68f5ec617bd9a4a24d7af0ce9762d87f7baadc13a66739fd4a2575630ecc1827\",\r\n \"tx_hex\": \"0400008085202f890161394fc7f1ddcf732f838d7d74e59ed7d968117ac170b3adde9e0404b26a929500000000d8483045022100a33d976cf509d6f9e66c297db30c0f44cced2241ee9c01c5ec8d3cbbf3d41172022039a6e02c3a3c85e3861ab1d2f13ba52677a3b1344483b2ae443723ba5bb1353f0120fb968d5460399f20ffd09906dc8f65c21fbb5cb8077a8e6d7126d0526586ca96004c6b63049858835db1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a914eba736c5cc9bb33dee15b4a9c855a7831a484d84882102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac68ffffffff011880d717000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac942c835d000000000000000000000000000000\"\r\n }\r\n },\r\n \"type\": \"TakerPaymentSpent\"\r\n },\r\n \"timestamp\": 1568881328643\r\n },\r\n {\r\n \"event\": {\r\n \"data\": {\r\n \"error\": \"taker_swap:798] utxo:950] utxo:950] error\"\r\n },\r\n \"type\": \"MakerPaymentSpendFailed\"\r\n },\r\n \"timestamp\": 1568881328645\r\n },\r\n {\r\n \"event\": {\r\n \"type\": \"Finished\"\r\n },\r\n \"timestamp\": 1568881328648\r\n }\r\n ],\r\n \"error_events\": [\r\n \"StartFailed\",\r\n \"NegotiateFailed\",\r\n \"TakerFeeSendFailed\",\r\n \"MakerPaymentValidateFailed\",\r\n \"TakerPaymentTransactionFailed\",\r\n \"TakerPaymentDataSendFailed\",\r\n \"TakerPaymentWaitForSpendFailed\",\r\n \"MakerPaymentSpendFailed\",\r\n \"TakerPaymentRefunded\",\r\n \"TakerPaymentRefundFailed\"\r\n ],\r\n \"success_events\": [\r\n \"Started\",\r\n \"Negotiated\",\r\n \"TakerFeeSent\",\r\n \"MakerPaymentReceived\",\r\n \"MakerPaymentWaitConfirmStarted\",\r\n \"MakerPaymentValidatedAndConfirmed\",\r\n \"TakerPaymentSent\",\r\n \"TakerPaymentSpent\",\r\n \"MakerPaymentSpent\",\r\n \"Finished\"\r\n ]\r\n // \"type\": , // Accepted values: \"Maker\", \"Taker\"\r\n // \"my_order_uuid\": null, // Accepted values: Strings\r\n // \"taker_amount\": null, // Accepted values: Decimals\r\n // \"taker_coin\": null, // Accepted values: Strings\r\n // \"taker_coin_usd_price\": null, // Accepted values: Decimals\r\n // \"maker_amount\": null, // Accepted values: Decimals\r\n // \"maker_coin\": null, // Accepted values: Strings\r\n // \"maker_coin_usd_price\": null, // Accepted values: Decimals\r\n // \"gui\": null, // Accepted values: Strings\r\n // \"mm_version\": null // Accepted values: Strings\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "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}", + "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": "8979" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:11:47 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"swaps\": [\n {\n \"swap_type\": \"TakerV1\",\n \"swap_data\": {\n \"uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"my_order_uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"events\": [\n {\n \"timestamp\": 1725849334423,\n \"event\": {\n \"type\": \"Started\",\n \"data\": {\n \"taker_coin\": \"MARTY\",\n \"maker_coin\": \"DOC\",\n \"maker\": \"15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"my_persistent_pub\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"lock_duration\": 7800,\n \"maker_amount\": \"2.4\",\n \"taker_amount\": \"2.4\",\n \"maker_payment_confirmations\": 1,\n \"maker_payment_requires_nota\": false,\n \"taker_payment_confirmations\": 1,\n \"taker_payment_requires_nota\": false,\n \"taker_payment_lock\": 1725857133,\n \"uuid\": \"0a3859ba-0e28-49de-b015-641c050a6409\",\n \"started_at\": 1725849333,\n \"maker_payment_wait\": 1725852453,\n \"maker_coin_start_block\": 724378,\n \"taker_coin_start_block\": 738955,\n \"fee_to_send_taker_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": false\n },\n \"taker_payment_trade_fee\": {\n \"coin\": \"MARTY\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": false\n },\n \"maker_payment_spend_trade_fee\": {\n \"coin\": \"DOC\",\n \"amount\": \"0.00001\",\n \"paid_from_trading_vol\": true\n },\n \"maker_coin_htlc_pubkey\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"taker_coin_htlc_pubkey\": \"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\",\n \"p2p_privkey\": null\n }\n }\n },\n {\n \"timestamp\": 1725849338425,\n \"event\": {\n \"type\": \"Negotiated\",\n \"data\": {\n \"maker_payment_locktime\": 1725864931,\n \"maker_pubkey\": \"000000000000000000000000000000000000000000000000000000000000000000\",\n \"secret_hash\": \"91ddaac214398b0b728d652af8d86f2e06fbbb34\",\n \"maker_coin_swap_contract_addr\": null,\n \"taker_coin_swap_contract_addr\": null,\n \"maker_coin_htlc_pubkey\": \"0315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"taker_coin_htlc_pubkey\": \"0315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\"\n }\n }\n },\n {\n \"timestamp\": 1725849339829,\n \"event\": {\n \"type\": \"TakerFeeSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f890101280d9a0703a25cdd553babd5430708f303fe3d446cd79555a53619c987d7b3000000006a47304402205805ecb3fad4c69e27061a35197c470e6a72a2b762269d3ef6b249c835396cd5022046b710dd5b6bdda75cc32a2cb9511ca51c754e4f2bcac8cd0f2757728a1671c6012103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ffffffff0290b60400000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88aca0e4dc11000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88acfb5ede66000000000000000000000000000000\",\n \"tx_hash\": \"614d3b1ef3666799d71f54ea242f2cb839646be3bfc81d8f1cfce26747cb9892\"\n }\n }\n },\n {\n \"timestamp\": 1725849341830,\n \"event\": {\n \"type\": \"TakerPaymentInstructionsReceived\",\n \"data\": null\n }\n },\n {\n \"timestamp\": 1725849341831,\n \"event\": {\n \"type\": \"MakerPaymentReceived\",\n \"data\": {\n \"tx_hex\": \"0400008085202f8901175391f3922ffcf7dc8929b9795c2fec8d82ed1649e0f3926e04709993dc35a6020000006a4730440220363ea815a237b46c5dd305809fcc103793bb4f620325c12caccb0c88f320e81c02205df417a4b806f3c3d50aa058c4d6a30203868ba786f2a1bd3b3b12917b3882ff01210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff03001c4e0e0000000017a914944cf7300280e31374b3994422a252bce1fcbd10870000000000000000166a1491ddaac214398b0b728d652af8d86f2e06fbbb34083d6aff050000001976a9141462c3dd3f936d595c9af55978003b27c250441f88acfc5ede66000000000000000000000000000000\",\n \"tx_hash\": \"70f6078b9d3312f14dff45fc1e56e503b01d33e22cac8ebd195e4951d468dca6\"\n }\n }\n },\n {\n \"timestamp\": 1725849341832,\n \"event\": {\n \"type\": \"MakerPaymentWaitConfirmStarted\"\n }\n },\n {\n \"timestamp\": 1725849465809,\n \"event\": {\n \"type\": \"MakerPaymentValidatedAndConfirmed\"\n }\n },\n {\n \"timestamp\": 1725849469603,\n \"event\": {\n \"type\": \"TakerPaymentSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f89019298cb4767e2fc1c8f1dc8bfe36b6439b82c2f24ea541fd7996766f31e3b4d61010000006a4730440220526bd1e2114642b2624cb283bada8dbeb734d3fae9184f6833e0eca87b20fffe0220554a3b38ecde2b8a521b681f5ac3e3940e08f45cc35a2fc19eeaeae513368a6c012103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ffffffff03001c4e0e0000000017a9141036c1fcbdf2b3e2d8b65913c78ab7412422cf17870000000000000000166a1491ddaac214398b0b728d652af8d86f2e06fbbb34b8c48e03000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ac7a5fde66000000000000000000000000000000\",\n \"tx_hash\": \"ffe2fe025d470996c3057dc561bd79d0a09f2aa5a14b25fb8e444b49394e5ad8\"\n }\n }\n },\n {\n \"timestamp\": 1725849469604,\n \"event\": {\n \"type\": \"WatcherMessageSent\",\n \"data\": [\n [\n 4,\n 0,\n 0,\n 128,\n 133,\n 32,\n 47,\n 137,\n 1,\n 166,\n 220,\n 104,\n 212,\n 81,\n 73,\n 94,\n 25,\n 189,\n 142,\n 172,\n 44,\n 226,\n 51,\n 29,\n 176,\n 3,\n 229,\n 86,\n 30,\n 252,\n 69,\n 255,\n 77,\n 241,\n 18,\n 51,\n 157,\n 139,\n 7,\n 246,\n 112,\n 0,\n 0,\n 0,\n 0,\n 181,\n 71,\n 48,\n 68,\n 2,\n 32,\n 40,\n 110,\n 97,\n 180,\n 1,\n 177,\n 181,\n 123,\n 77,\n 223,\n 147,\n 41,\n 76,\n 88,\n 138,\n 70,\n 20,\n 231,\n 85,\n 84,\n 145,\n 104,\n 231,\n 60,\n 146,\n 36,\n 2,\n 236,\n 230,\n 82,\n 217,\n 131,\n 2,\n 32,\n 82,\n 28,\n 127,\n 29,\n 240,\n 203,\n 202,\n 207,\n 41,\n 245,\n 94,\n 58,\n 9,\n 242,\n 51,\n 42,\n 111,\n 255,\n 37,\n 131,\n 73,\n 23,\n 48,\n 125,\n 185,\n 16,\n 114,\n 218,\n 143,\n 121,\n 59,\n 3,\n 1,\n 76,\n 107,\n 99,\n 4,\n 227,\n 155,\n 222,\n 102,\n 177,\n 117,\n 33,\n 3,\n 21,\n 217,\n 197,\n 28,\n 101,\n 122,\n 177,\n 190,\n 74,\n 233,\n 211,\n 171,\n 110,\n 118,\n 166,\n 25,\n 211,\n 188,\n 207,\n 232,\n 48,\n 213,\n 54,\n 63,\n 161,\n 104,\n 66,\n 76,\n 13,\n 4,\n 71,\n 50,\n 172,\n 103,\n 130,\n 1,\n 32,\n 136,\n 169,\n 20,\n 145,\n 221,\n 170,\n 194,\n 20,\n 57,\n 139,\n 11,\n 114,\n 141,\n 101,\n 42,\n 248,\n 216,\n 111,\n 46,\n 6,\n 251,\n 187,\n 52,\n 136,\n 33,\n 3,\n 216,\n 6,\n 78,\n 236,\n 228,\n 250,\n 92,\n 15,\n 141,\n 192,\n 38,\n 127,\n 104,\n 206,\n 233,\n 189,\n 213,\n 39,\n 249,\n 232,\n 143,\n 53,\n 148,\n 163,\n 35,\n 66,\n 135,\n 24,\n 195,\n 145,\n 236,\n 194,\n 172,\n 104,\n 255,\n 255,\n 255,\n 255,\n 1,\n 24,\n 24,\n 78,\n 14,\n 0,\n 0,\n 0,\n 0,\n 25,\n 118,\n 169,\n 20,\n 211,\n 70,\n 6,\n 126,\n 60,\n 60,\n 57,\n 100,\n 195,\n 149,\n 254,\n 226,\n 8,\n 89,\n 71,\n 144,\n 226,\n 158,\n 222,\n 93,\n 136,\n 172,\n 227,\n 155,\n 222,\n 102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 4,\n 0,\n 0,\n 128,\n 133,\n 32,\n 47,\n 137,\n 1,\n 216,\n 90,\n 78,\n 57,\n 73,\n 75,\n 68,\n 142,\n 251,\n 37,\n 75,\n 161,\n 165,\n 42,\n 159,\n 160,\n 208,\n 121,\n 189,\n 97,\n 197,\n 125,\n 5,\n 195,\n 150,\n 9,\n 71,\n 93,\n 2,\n 254,\n 226,\n 255,\n 0,\n 0,\n 0,\n 0,\n 182,\n 71,\n 48,\n 68,\n 2,\n 32,\n 12,\n 137,\n 103,\n 65,\n 18,\n 108,\n 213,\n 157,\n 224,\n 139,\n 187,\n 163,\n 116,\n 52,\n 231,\n 214,\n 185,\n 167,\n 227,\n 252,\n 3,\n 217,\n 92,\n 49,\n 170,\n 72,\n 112,\n 76,\n 45,\n 193,\n 15,\n 83,\n 2,\n 32,\n 28,\n 190,\n 47,\n 213,\n 129,\n 180,\n 189,\n 228,\n 165,\n 105,\n 157,\n 230,\n 180,\n 175,\n 68,\n 109,\n 152,\n 255,\n 38,\n 88,\n 66,\n 40,\n 253,\n 7,\n 79,\n 86,\n 118,\n 91,\n 107,\n 20,\n 242,\n 219,\n 1,\n 81,\n 76,\n 107,\n 99,\n 4,\n 109,\n 125,\n 222,\n 102,\n 177,\n 117,\n 33,\n 3,\n 216,\n 6,\n 78,\n 236,\n 228,\n 250,\n 92,\n 15,\n 141,\n 192,\n 38,\n 127,\n 104,\n 206,\n 233,\n 189,\n 213,\n 39,\n 249,\n 232,\n 143,\n 53,\n 148,\n 163,\n 35,\n 66,\n 135,\n 24,\n 195,\n 145,\n 236,\n 194,\n 172,\n 103,\n 130,\n 1,\n 32,\n 136,\n 169,\n 20,\n 145,\n 221,\n 170,\n 194,\n 20,\n 57,\n 139,\n 11,\n 114,\n 141,\n 101,\n 42,\n 248,\n 216,\n 111,\n 46,\n 6,\n 251,\n 187,\n 52,\n 136,\n 33,\n 3,\n 21,\n 217,\n 197,\n 28,\n 101,\n 122,\n 177,\n 190,\n 74,\n 233,\n 211,\n 171,\n 110,\n 118,\n 166,\n 25,\n 211,\n 188,\n 207,\n 232,\n 48,\n 213,\n 54,\n 63,\n 161,\n 104,\n 66,\n 76,\n 13,\n 4,\n 71,\n 50,\n 172,\n 104,\n 254,\n 255,\n 255,\n 255,\n 1,\n 24,\n 24,\n 78,\n 14,\n 0,\n 0,\n 0,\n 0,\n 25,\n 118,\n 169,\n 20,\n 211,\n 70,\n 6,\n 126,\n 60,\n 60,\n 57,\n 100,\n 195,\n 149,\n 254,\n 226,\n 8,\n 89,\n 71,\n 144,\n 226,\n 158,\n 222,\n 93,\n 136,\n 172,\n 109,\n 125,\n 222,\n 102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n ]\n }\n },\n {\n \"timestamp\": 1725849486567,\n \"event\": {\n \"type\": \"TakerPaymentSpent\",\n \"data\": {\n \"transaction\": {\n \"tx_hex\": \"0400008085202f8901d85a4e39494b448efb254ba1a52a9fa0d079bd61c57d05c39609475d02fee2ff00000000d74730440220544c5a2eec1e3fb7a2c71e3b6bf3c612300a9c5375ca5c7131742f0afc8a6e8f02206df5b042ec1ff359bf7209269ce3b59d09f5f2340842d5e0a253875624bbce120120d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5004c6b63046d7dde66b1752103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ac6782012088a91491ddaac214398b0b728d652af8d86f2e06fbbb3488210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ac68ffffffff0118184e0e000000001976a9141462c3dd3f936d595c9af55978003b27c250441f88ac6d7dde66000000000000000000000000000000\",\n \"tx_hash\": \"58813eb1037e40425d56146c2f6bfbe70b8bcc18e45b752b51c726503ad4f8df\"\n },\n \"secret\": \"d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5\"\n }\n }\n },\n {\n \"timestamp\": 1725849488871,\n \"event\": {\n \"type\": \"MakerPaymentSpent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f8901a6dc68d451495e19bd8eac2ce2331db003e5561efc45ff4df112339d8b07f67000000000d74730440220286e61b401b1b57b4ddf93294c588a4614e755549168e73c922402ece652d9830220521c7f1df0cbcacf29f55e3a09f2332a6fff25834917307db91072da8f793b030120d178a7c8f88a2f6e496a36ff8d7220c2d48903b45a365b80d59fcfafbf694cb5004c6b6304e39bde66b175210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ac6782012088a91491ddaac214398b0b728d652af8d86f2e06fbbb34882103d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2ac68ffffffff0118184e0e000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ace39bde66000000000000000000000000000000\",\n \"tx_hash\": \"60f83a68e5851ff93308758763ce30c643bd94ae89f4ae43fe7e02dc88d61642\"\n }\n }\n },\n {\n \"timestamp\": 1725849488872,\n \"event\": {\n \"type\": \"Finished\"\n }\n }\n ],\n \"maker_amount\": \"2.4\",\n \"maker_coin\": \"DOC\",\n \"maker_coin_usd_price\": \"0.0000001\",\n \"taker_amount\": \"2.4\",\n \"taker_coin\": \"MARTY\",\n \"taker_coin_usd_price\": \"0.00000005\",\n \"gui\": \"mm2_777\",\n \"mm_version\": \"2.2.0-beta_2bdee4f\",\n \"success_events\": [\n \"Started\",\n \"Negotiated\",\n \"TakerFeeSent\",\n \"TakerPaymentInstructionsReceived\",\n \"MakerPaymentReceived\",\n \"MakerPaymentWaitConfirmStarted\",\n \"MakerPaymentValidatedAndConfirmed\",\n \"TakerPaymentSent\",\n \"WatcherMessageSent\",\n \"TakerPaymentSpent\",\n \"MakerPaymentSpent\",\n \"MakerPaymentSpentByWatcher\",\n \"Finished\"\n ],\n \"error_events\": [\n \"StartFailed\",\n \"NegotiateFailed\",\n \"TakerFeeSendFailed\",\n \"MakerPaymentValidateFailed\",\n \"MakerPaymentWaitConfirmFailed\",\n \"TakerPaymentTransactionFailed\",\n \"TakerPaymentWaitConfirmFailed\",\n \"TakerPaymentDataSendFailed\",\n \"TakerPaymentWaitForSpendFailed\",\n \"MakerPaymentSpendFailed\",\n \"TakerPaymentWaitRefundStarted\",\n \"TakerPaymentRefundStarted\",\n \"TakerPaymentRefunded\",\n \"TakerPaymentRefundedByWatcher\",\n \"TakerPaymentRefundFailed\",\n \"TakerPaymentRefundFinished\"\n ]\n }\n }\n ],\n \"from_uuid\": null,\n \"skipped\": 0,\n \"limit\": 10,\n \"total\": 1,\n \"page_number\": 1,\n \"total_pages\": 1,\n \"found_records\": 1\n },\n \"id\": null\n}" } - }, - "response": [] + ] } ] }, @@ -5622,67 +8148,267 @@ "type": "text" } ], - "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}" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [] + "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}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [] + }, + { + "name": "send_payment", + "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::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}}", + "host": [ + "{{address}}" + ] + } + }, + "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}}" + ] + } + }, + "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": [ { - "name": "send_payment", - "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\": \"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}}", - "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 \"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": "Stats", + "name": "Utility", "item": [ { - "name": "add_node_to_version_stat", + "name": "get_current_mtp", "event": [ { "listen": "prerequest", @@ -5709,7 +8435,7 @@ ], "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" + "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}}", @@ -5718,10 +8444,53 @@ ] } }, - "response": [] + "response": [ + { + "name": "get_current_mtp", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"get_current_mtp\",\n \"params\": {\n \"coin\": \"MARTY\"\n }\n // \"id\": null // Accepted values: Integers\n}\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": "Tue, 10 Sep 2024 10:22:24 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"mtp\":1725963536},\"id\":null}" + } + ] }, { - "name": "remove_node_from_version_stat", + "name": "start_eth_fee_estimator", "event": [ { "listen": "prerequest", @@ -5733,7 +8502,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -5748,7 +8518,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": "{\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}}", @@ -5760,7 +8530,7 @@ "response": [] }, { - "name": "start_version_stat_collection", + "name": "get_eth_estimated_fee_per_gas", "event": [ { "listen": "prerequest", @@ -5772,7 +8542,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -5787,7 +8558,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": "{\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}}", @@ -5796,10 +8567,109 @@ ] } }, - "response": [] + "response": [ + { + "name": "Error: CoinNotSupported", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "188" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:58:16 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Gas fee estimation not supported for this coin\",\n \"error_path\": \"get_estimated_fees\",\n \"error_trace\": \"get_estimated_fees:206]\",\n \"error_type\": \"CoinNotSupported\",\n \"id\": null\n}" + }, + { + "name": "Error: NoSuchCoin", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"DOGE\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "204" + }, + { + "key": "date", + "value": "Mon, 09 Sep 2024 05:59:38 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such coin DOGE\",\n \"error_path\": \"get_estimated_fees.lp_coins\",\n \"error_trace\": \"get_estimated_fees:244] lp_coins:4767]\",\n \"error_type\": \"NoSuchCoin\",\n \"error_data\": {\n \"coin\": \"DOGE\"\n },\n \"id\": null\n}" + } + ] }, { - "name": "stop_version_stat_collection", + "name": "get_public_key", "event": [ { "listen": "prerequest", @@ -5826,7 +8696,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_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5838,7 +8708,7 @@ "response": [] }, { - "name": "update_version_stat_collection", + "name": "get_public_key_hash", "event": [ { "listen": "prerequest", @@ -5865,7 +8735,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}}", @@ -5877,123 +8747,6 @@ "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": [] } ] }, @@ -7923,5 +10676,11 @@ } ] } + ], + "variable": [ + { + "key": "userpass", + "value": "" + } ] } \ No newline at end of file From b3e06d3e8e9ad77531b8133150163ecf3068d704 Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 13 Sep 2024 08:37:39 +0000 Subject: [PATCH 4/4] [Bot] File and author data updated, validated and updated internal links, formatted md content, checked presence of file and dirs based on sidebar, checked presence of h1 in every file, update Komodo DeFi Framework methods table, adds/updates preview images when base is main --- .../api/v20/enable_eth_with_tokens/index.mdx | 2 +- .../tutorials/listing-a-new-coin/index.mdx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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 02a1988a..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 `Default`. Can be set to `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 diff --git a/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx b/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx index 554d85db..c59a30e8 100644 --- a/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx +++ b/src/pages/komodo-defi-framework/tutorials/listing-a-new-coin/index.mdx @@ -125,14 +125,14 @@ The token's contract **must** have `approve` and `transferFrom` methods. Additio * Protocol `"type"` field: `"ETH"` or `"ERC20"` * Protocol `"protocol_data"` field (ERC20 only): `"platform"` - `"ETH"`, `"ETC"` or other Ethereum forks. `"contract_address"` - ERC20 token [checksummed](https://coincodex.com/article/2078/ethereum-address-checksum-explained/) smart contract address. -| Parameter | Type | Description | -| ----------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| chain\_id | integer | To find the EVM chain ID, see [Chainlist](https://chainlist.org/) | +| Parameter | Type | Description | +| ----------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| chain\_id | integer | To find the EVM chain ID, see [Chainlist](https://chainlist.org/) | | gas\_limit | object | Optional, required for tokens only. Defines more precise gas prices for swap or transaction operations. Some tokens are called over proxy contracts which often require more gas, though users may be able to choose higher/lower values than the default where required. See the `Gas Limit Options` table below for more information. | -| protocol.type | string | Platform / protocol - e.g `ETH` for Ethereum, `ERC20` for ERC20 tokens on the Ethereum network | -| protocol.protocol\_data | object | Required for tokens only. | -| protocol.protocol\_data.platform | string | The parent coin of the token's platform - e.g `MATIC` for PLG20 tokens | -| protocol.protocol\_data.contract\_address | string | **Must be mixed case** The identifying hex string for the token's contract. Can be found on sites like [EthScan](https://etherscan.io/), [BscScan](https://bscscan.com/) & [PolygonScan](https://polygonscan.com/) | +| protocol.type | string | Platform / protocol - e.g `ETH` for Ethereum, `ERC20` for ERC20 tokens on the Ethereum network | +| protocol.protocol\_data | object | Required for tokens only. | +| protocol.protocol\_data.platform | string | The parent coin of the token's platform - e.g `MATIC` for PLG20 tokens | +| protocol.protocol\_data.contract\_address | string | **Must be mixed case** The identifying hex string for the token's contract. Can be found on sites like [EthScan](https://etherscan.io/), [BscScan](https://bscscan.com/) & [PolygonScan](https://polygonscan.com/) | ### Gas Limit Options