From 9e4b44651b79910e59726ee1708195af43c0c9c2 Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Thu, 18 Jul 2024 11:56:59 +0200 Subject: [PATCH 01/29] Added documentation for Gas Fee Estimator RPC methods Added docs for: 1. start_gas_fee_estimator 2. stop_gas_fee_estimator 3. get_eth_estimated_fee_per_gas --- .../get_eth_estimated_fee_per_gas/index.mdx | 59 +++++++++++++++++++ .../v20-dev/start_gas_fee_estimator/index.mdx | 38 ++++++++++++ .../v20-dev/stop_gas_fee_estimator/index.mdx | 37 ++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx create mode 100644 src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx create mode 100644 src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx new file mode 100644 index 00000000..4feeb3ff --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -0,0 +1,59 @@ +export const title = "Komodo DeFi Framework Method: Get ETH Estimated Fee per Gas"; +export const description = + "The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_gas_fee_estimator') for an active coin of your choice."; + +# get\_eth\_estimated\_fee\_per\_gas + +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator(/komodo-defi-framework/api/v20/start_gas_fee_estimator) method. + +| parameter | Type | Description | +| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "get_eth_estimated_fee_per_gas", + "mmrpc": "2.0", + "params": { + "coin": "ETH", + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "base_fee": "10.890879158", + "low": { + "max_priority_fee_per_gas": "0.1101", + "max_fee_per_gas": "11.949818698", + "min_wait_time": null, + "max_wait_time": null + }, + "medium": { + "max_priority_fee_per_gas": "1.258084291", + "max_fee_per_gas": "13.905056537", + "min_wait_time": null, + "max_wait_time": null + }, + "high": { + "max_priority_fee_per_gas": "2.495532249", + "max_fee_per_gas": "15.949758042", + "min_wait_time": null, + "max_wait_time": null + }, + "source": "simple", + "base_fee_trend": "", + "priority_fee_trend": "", + "units": "Gwei" + }, + "id": null +} + +``` \ No newline at end of file diff --git a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx new file mode 100644 index 00000000..a019c512 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx @@ -0,0 +1,38 @@ +export const title = "Komodo DeFi Framework Method: Start Gas Fee Estimator"; +export const description = + "The start_gas_fee_estimator method allows you to start the gas priority fee estimator loop for an active coin of your choice."; + +# start\_gas\_fee\_estimator + +The `start_gas_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "gas_fee_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). + + +| parameter | Type | Description | +| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "start_gas_fee_estimator", + "mmrpc": "2.0", + "params": { + "coin": "ETH", + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "result": "Success" + } + "id": null +} +``` + diff --git a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx new file mode 100644 index 00000000..c8797b64 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx @@ -0,0 +1,37 @@ +export const title = "Komodo DeFi Framework Method: Stop Gas Fee Estimator"; +export const description = + "The start_gas_fee_estimator method allows you to stop the gas priority fee estimator loop for an active coin of your choice."; + +# stop\_gas\_fee\_estimator + +The `stop_gas_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. + +| parameter | Type | Description | +| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "stop_gas_fee_estimator", + "mmrpc": "2.0", + "params": { + "coin": "ETH", + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "result": "Success" + } + "id": null +} + +``` \ No newline at end of file From 07c3a09bb229117aa3f6c025fd3d9ca429f29a96 Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 14:59:02 +0200 Subject: [PATCH 02/29] . --- 2 | 6 + src/pages/komodo-defi-framework/api/index.mdx | 253 +++++------ .../api/v20/my_recent_swaps_v2/index.mdx | 392 ++++++++++++++++++ 3 files changed, 526 insertions(+), 125 deletions(-) create mode 100644 2 create mode 100644 src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx diff --git a/2 b/2 new file mode 100644 index 00000000..aacff487 --- /dev/null +++ b/2 @@ -0,0 +1,6 @@ +Merge branch 'dev' into add/new_swap_rpcs +# Please enter a commit message to explain why this merge is necessary, +# especially if it merges an updated upstream into a topic branch. +# +# Lines starting with '#' will be ignored, and an empty message aborts +# the commit. diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 6037b269..83f5237a 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,128 +10,131 @@ To test the methods in v2.0 (Dev), you will need to [build the Komodo DeFi Frame Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: -| Legacy | v2.0 (release) | v2.0 (dev) | -| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | -| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | -| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | -| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | -| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | -| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | -| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | -| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | -| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | -| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | -| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | -| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | -| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | -| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | -| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | -| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | -| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | -| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | -| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | -| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | -| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | -| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | -| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | -| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | -| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | -| | | [get\_current\_mtp](/komodo-defi-framework/api/v20-dev/get_current_mtp/#get-current-mtp) | -| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | -| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | -| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | -| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | -| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | -| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | -| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | -| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | -| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | -| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | -| [get\_peers\_info](/komodo-defi-framework/api/legacy/get_peers_info/#get-peers-info) | | | -| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | -| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | -| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | -| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | -| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | -| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | -| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | -| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | -| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | -| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | -| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | -| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | -| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | -| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | -| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | -| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | -| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | -| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | -| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | -| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | -| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | -| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | -| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | -| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | -| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | | | -| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | -| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | -| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | -| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | -| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | -| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | -| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | -| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | -| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | -| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | -| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | -| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | -| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | -| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | -| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | -| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | -| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | -| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | -| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | -| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | -| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | -| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | -| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | -| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | -| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | -| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | -| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | -| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | -| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | -| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | -| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | -| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | -| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | -| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | -| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | -| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | -| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | -| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | -| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | -| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | -| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | -| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | -| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | -| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | -| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | -| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | -| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | -| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | -| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | -| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | -| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | -| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | -| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | -| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | -| [version](/komodo-defi-framework/api/legacy/version/#version) | | | -| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | -| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | -| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | +| Legacy | v2.0 (release) | v2.0 (dev) | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| [active_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | +| | [add_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | +| | [add_node_to_version_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | +| [all_swaps_uuids_by_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | +| [ban_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | +| [best_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | +| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | +| [cancel_all_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | +| [cancel_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | +| | | [clear_nft_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | +| | | [close_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | +| [coins_needed_for_kick_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | +| [convert_utxo_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | +| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | +| [disable_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | +| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | +| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | +| | [enable_bch_with_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | +| | [enable_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | +| | [enable_eth_with_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | +| | [enable_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | +| | [enable_tendermint_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | +| | [enable_tendermint_with_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | +| | | [get_channel_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | +| | | [get_claimable_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | +| | | [get_current_mtp](/komodo-defi-framework/api/v20-dev/get_current_mtp/#get-current-mtp) | +| [get_enabled_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | +| | | [get_eth_estimated_fee_per_gas](/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | +| [get_gossip_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | +| [get_gossip_peer_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | +| [get_gossip_topic_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | +| | | [get_locked_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| [get_my_peer_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | +| | | [get_new_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | +| | | [get_nft_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | +| | | [get_nft_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | +| | | [get_nft_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | +| [get_peers_info](/komodo-defi-framework/api/legacy/get_peers_info/#get-peers-info) | | | +| | [get_public_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | +| | [get_public_key_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | +| | [get_raw_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | +| [get_relay_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | +| | [get_staking_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | +| [get_trade_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| [import_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | +| [kmd_rewards_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | +| | | [lightning::nodes::add_trusted_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | +| | | [lightning::nodes::connect_to_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | +| | | [lightning::nodes::list_trusted_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | +| | | [lightning::nodes::remove_trusted_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | +| | | [lightning::payments::generate_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | +| | | [lightning::payments::get_payment_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | +| | | [lightning::payments::list_payments_by_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | +| | | [lightning::payments::send_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | +| [list_banned_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | +| | | [list_closed_channels_by_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | +| | | [list_open_channels_by_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | +| | | [max_maker_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | +| [max_taker_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | +| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | +| [min_trading_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | +| [my_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | +| [my_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | +| [my_recent_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my_recent_swaps](/komodo-defi-framework/api/v20/my_recent_swaps_v2/#my-recent-swaps) | | +| [my_swap_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | +| [my_tx_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my_tx_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | +| | | [open_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | +| [order_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | +| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | +| [orderbook_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | +| [orders_history_by_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | +| [recover_funds_of_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | +| | [recreate_swap_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | +| | | [refresh_nft_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | +| | [remove_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | +| | [remove_node_from_version_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | +| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | +| [send_raw_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | +| [set_required_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | +| [set_requires_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | +| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | +| [show_priv_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | +| | [sign_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | +| | [sign_raw_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | +| | | [start_gas_fee_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/#start-gas-fee-estimator) | +| | [start_simple_market_maker_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | +| | [start_version_stat_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | +| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | +| | | [stop_gas_fee_estimator](/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/#stop-gas-fee-estimator) | +| | [stop_simple_market_maker_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | +| | [stop_version_stat_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | +| | | [task::account_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | +| | | [task::account_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | +| | | [task::account_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | +| | | [task::create_new_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | +| | | [task::enable_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | +| | | [task::enable_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | +| | | [task::enable_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | +| | | [task::enable_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | +| | | [task::enable_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | +| | | [task::enable_qtum::user_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | +| | | [task::enable_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | +| | | [task::enable_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | +| | | [task::enable_utxo::user_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | +| | | [task::enable_z_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | +| | | [task::enable_z_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | +| | | [task::enable_z_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | +| | | [task::init_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | +| | | [task::init_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | +| | | [task::init_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | +| | | [task::init_trezor::user_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | +| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | +| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | +| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | +| [trade_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | +| [unban_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | +| | | [update_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | +| [update_maker_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | +| | | [update_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | +| | [update_version_stat_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | +| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | +| | [verify_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | +| [version](/komodo-defi-framework/api/legacy/version/#version) | | | +| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | +| | | [withdraw_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | +| | | [z_coin_tx_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | diff --git a/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx b/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx new file mode 100644 index 00000000..e279a5b2 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx @@ -0,0 +1,392 @@ +export const title = "Komodo DeFi Framework Method: My Recent Swaps V2"; +export const description = "The my_recent_swaps method returns the data of the most recent atomic swaps executed by the Komodo DeFi Framework API node."; + +# my\_recent\_swaps + +**my\_recent\_swaps (from\_uuid page\_number=1 limit=10 my\_coin other\_coin from\_timestamp to\_timestamp)** + +The `my_recent_swaps` method returns the data of the most recent atomic swaps executed by the Komodo DeFi Framework API node. Please note that all filters (my\_coin, from\_timestamp, etc.) are combined using logical AND. + +## Arguments + +| Structure | Type | Description | +| --------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| filter | Object | [FilterCriteria](/komodo-defi-framework/api/common_structures/#FilterCriteria) containing all the filtering criteria for the swaps | +| paging\_options | Object | [PagingOptionsObject](/komodo-defi-framework/api/common_structures/#PagingOptions) containing all the paging options for the request. | + + +#### Response + +| Structure | Type | Description | +| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| swaps | array of objects | A list of standard [SwapStatus](/komodo-defi-framework/api/common_structures/swaps/#swap-status) objects | +| from\_uuid | string | the from\_uuid that was set in the request; this value is null if nothing was set | +| skipped | number | the number of skipped records (i.e. the position of `from_uuid` in the list + 1 or `(page_number - 1) * limit`; the value is 0 if `from_uuid` or `page_number` were not set or `page_number` is 1) | +| limit | number | the limit that was set in the request; note that the actual number of swaps can differ from the specified limit (e.g. on the last page) | +| total | number | total number of swaps available with the selected filters | +| page\_number | number | the page\_number that was set in the request; if both `page_number` and `from_uuid` are not set in request it will default to `1`; if `from_uuid` is present in request this value will be always null | +| total\_pages | number | total pages available with the selected filters and limit | +| found\_records | number | the number of returned swaps | + +#### 📌 Example + +#### Command + + +```json +{ + "mmrpc": "2.0", + "userpass": "Aa12345678987654321!", + "method": "my_recent_swaps", + "params": { + "filter": { + "status": "completed", + "date_from": "2024-01-01T00:00:00Z", + "date_to": "2024-07-01T00:00:00Z", + "my_coin": "BTC", + "other_coin": "ETH", + "from_timestamp": 1672531200, + "to_timestamp": 1704067200 + }, + "paging_options": { + "from_uuid": null, + "limit": 10, + "page_number": 1 + } + } +} +``` + + + + + #### Response (success) + + ```json + { + "result": { + "from_uuid": "e299c6ece7a7ddc42444eda64d46b163eaa992da65ce6de24eb812d715184e4c", + "limit": 2, + "skipped": 1, + "total": 49, + "found_records": 2, + "page_number": null, + "total_pages": 25, + "swaps": [ + { + "error_events": [ + "StartFailed", + "NegotiateFailed", + "TakerFeeValidateFailed", + "MakerPaymentTransactionFailed", + "MakerPaymentDataSendFailed", + "MakerPaymentWaitConfirmFailed", + "TakerPaymentValidateFailed", + "TakerPaymentWaitConfirmFailed", + "TakerPaymentSpendFailed", + "TakerPaymentSpendConfirmFailed", + "MakerPaymentWaitRefundStarted", + "MakerPaymentRefunded", + "MakerPaymentRefundFailed" + ], + "events": [ + { + "event": { + "data": { + "lock_duration": 7800, + "maker_amount": "1", + "maker_coin": "BEER", + "maker_coin_start_block": 154221, + "maker_payment_confirmations": 1, + "maker_payment_requires_nota": false, + "maker_payment_lock": 1561545442, + "my_persistent_pub": "02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3", + "secret": "ea774bc94dce44c138920c6e9255e31d5645e60c0b64e9a059ab025f1dd2fdc6", + "started_at": 1561529842, + "taker": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12", + "taker_amount": "1", + "taker_coin": "PIZZA", + "taker_coin_start_block": 141363, + "taker_payment_confirmations": 1, + "taker_payment_requires_nota": true, + "uuid": "6bf6e313-e610-4a9a-ba8c-57fc34a124aa" + }, + "type": "Started" + }, + "timestamp": 1561529842866 + }, + { + "event": { + "data": { + "taker_payment_locktime": 1561537641, + "taker_pubkey": "02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640" + }, + "type": "Negotiated" + }, + "timestamp": 1561529883208 + }, + { + "event": { + "data": { + "tx_hash": "a91469546211cc910fbe4a1f4668ab0353765d3d0cb03f4a67bff9326991f682", + "tx_hex": "0400008085202f89021c7eeec33f8eb5ff2ed6c3d09e40e04b05a9674ea2feefcc12de3f9dcc16aff8000000006b483045022100e18e3d1afa8a24ecec82c92bfc05c119bfacdbb71b5f5663a4b96cc2a41ab269022017a79a1a1f6e0220d8fa1d2cf3b1c9788272f1ad18e4987b8f1cd4418acaa5b0012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff6a0d321eb52c3c7165adf80f83b15b7a5caa3a0dfa87746239021600d47fb43e000000006b483045022100937ed900e084d57d5e3341499fc66c5574884ca71cd4331fa696c8b7a517591b02201f5f851f94c3ca0ffb4789f1af22cb95dc83564e127ed7d23f1129eb2b981a2f012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff02bcf60100000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac9c120100000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac2f0e135d000000000000000000000000000000" + }, + "type": "TakerFeeValidated" + }, + "timestamp": 1561529927879 + }, + { + "event": { + "data": { + "tx_hash": "efa90a2918e6793c8a2725c06ee34d0fa76c43bc85e680be195414e7aee36154", + "tx_hex": "0400008085202f890cdcd071edda0d5f489b0be9c8b521ad608bb6d7f43f6e7a491843e7a4d0078f85000000006b483045022100fbc3bd09f8e1821ed671d1b1d2ed355833fb42c0bc435fef2da5c5b0a980b9a002204ef92b35576069d640ca0ac08f46645e5ade36afd5f19fb6aad19cfc9fb221fb012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffe6ae2a3ce221a6612d9e640bdbe10a2e477b3bc68a1aeee4a6784cb18648a785010000006a47304402202000a7e60ae2ce1529247875623ef2c5b42448dcaeac8de0f8f0e2f8e5bd8a6b0220426321a004b793172014f522efbca77a3dc92e86ce0a75330d8ceb83072ad4e7012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff9335553edcbac9559cae517a3e25b880a48fabf661c4ac338394972eef4572da000000006b4830450221008ded7230f2fb37a42b94f96174ec192baf4cd9e9e68fb9b6cf0463a36a6093e00220538de51ceda1617f3964a2350802377940fdfa018cc1043d77c66081b1cab0c4012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3fffffffff91b5d3733877f84108de77fec46bee156766e1a6837fa7b580ccbc3905acb14000000006b483045022100d07cf1fd20e07aafdc942ba56f6b45baee61b93145a2bdba391e2cdb8024bf15022056ea8183990703ef05018df2fe8bd5ec678ec0f9207b0283292b2cdafc5e1e0c012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff147870387ca938b2b6e7daa96ba2496014f125c0e4e576273ef36ee8186c415a000000006a47304402204c5b15b641d7e34444456d2ea6663bdc8bd8216e309a7220814474f346b8425e0220634d1dd943b416b7a807704d7f7a3d46a60d88ef4e20734588a0b302c55fa82d012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffd2b954ae9b4a61fad9f7bc956d24e38d7b6fe313da824bd3bd91287d5a6b49d9000000006b483045022100a7387d9ab7b2c92d3cbce525e96ffac5ae3ef14f848661741ada0db17715c4a002202c1417d5e3e04b1a2d1774a83bb8d5aa1c0536c100138123089fa69921b5d976012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff28792a2e26d9d7be0467fac52b12ece67410b23eea845008257979bd87d083e3000000006a473044022027c40517c33cd3202d4310cfd2c75f38e6d7804b255fc3838a32ea26e5a3cb0002202b4399e1d7e655b64f699318f2bfbdced49f064ee54e9d6a678668fce51caf96012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffa8bf797bacd213b74a9977ae1b956afe3af33a1ee94324e010a16db891a07441000000006a473044022004cbb1d970b9f02c578b5c1d7de33361581eebc19c3cd8d2e50b0211ca4ef13702200c93b9fe5428055b6274dc8e52073c3e87f5b5e4206134d745928ccfc9393919012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff2b6fd82c9a68111b67ad85a614a6ecb50f7b6eac3d21d8ebefd9a6065cdf5729000000006b483045022100fdff16c595c7b4a9b4fc1e445b565f7b29fe5b7a08f79291b0ff585c7b72ac2902200c694aa124013bd419ce2349f15d10435827868d35db939b9d3c344d16e78420012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff6a5468dd8c83553dc51022f2a2fb772cf91c8607dc2ca1b8f203ac534612ab29000000006b483045022100ba7cc79e7ae3720238bfc5caa225dc8017d6a0d1cb1ec66abaf724fd20b3b7ab02206e8c942756604af0f63b74af495a9b3b7f4a44c489267f69a14cf2b1b953f46e012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff5f9f48a91d343fd5aef1d85f00850070931459ab256697afb728d1c81c1fa1d2000000006a47304402200ec85fc66f963e7504eb27361a4b4bb17de60e459da414fdc3962476de636134022056b62c15cf7f9b4e7d4e11c03e4e541dd348919b8c55efa4f1927e2fdd5ae8ea012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffee1f455924d3167e7f7abf452c1856e9abdcfe27dc889942dd249cb376169d38000000006b48304502210089274eed807c5d23d819f6dfa8a358a9748e56f2080be4396ef77bb19d91b17402207fc7b22c879534fffe0eeaaec8fc284e22c2756f380c05ea57b881a96b09f3af012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0200e1f5050000000017a9144eb3a361d8a15d7f6a8ef9d1cf44962a90c44d548702912b00000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac490e135d000000000000000000000000000000" + }, + "type": "MakerPaymentSent" + }, + "timestamp": 1561529938879 + }, + { + "event": { + "data": { + "tx_hash": "7e0e38e31dbe80792ef320b8c0a7cb9259127427ef8c2fca1d796f24484046a5", + "tx_hex": "0400008085202f892082f6916932f9bf674a3fb00c3d5d765303ab68461f4abe0f91cc1162546914a9010000006b483045022100999b8bb0224476b5c344a466d0051ec7a8c312574ad8956a4177a42625cb86e302205a6664396bff3f2e6fe57adb7e082a26d1b8da9ee77b3fc24aa4148fdd5c84db012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffcad29a146b81bcaa44744efbec5149b6e3ca32bace140f75ad5794288d5bff6c000000006b483045022100b4dbfe88561c201fb8fbaf5bbf5bc0985893c909429c579425da84b02d23cc12022075f1e1e3eba38d167a6e84aac23faee5a2eb0799511e647213cee168529d4e5d012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffa13eeacd04b3e26ae3f41530b560c615dafa0fd4235cc5b22d48ab97e7c3399c000000006a47304402201158306fe668cbf56ad3f586dc83c1cda9efab44cef46da6bc0fe242292c85ed02201d622fe283410320e760233ae81dc53df65406b09fd07f8649f1775689219c35012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff4352b9f1f01dde4209b9e91076a3cfcabdaa23d9d5a313abfe7edb67ee4273e3000000006b483045022100825242fb3c6d460580016e93718ae1f43917e53abcc1558a64a6ab6f406763dd0220543936ce4c725e5e9f03831274a8475b535171bb29e1919fcf52ba2a9c85a553012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffcc0fa94b5973c893e61d470ae3982b0bedfd29cb0da2c60a362de438598f108c000000006b4830450221008c70a8e10ca37819e5a4d9783366e729e690d78f2fdd8a1f4812ddc14ec7d6ad022035ba8cb4d4e50684107f8af5c184582687b5d7dfda5d9be1bd45e45749c77f08012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffb0bd3bb9fedb7bbf49ca1612c955ba6095202186cef5be6952aed3dd32da4268000000006a4730440220592216d63c199faa587a4a6cbe11ca26027368a116b50818ce30eced59ca887202201bcafcf88f9f2632151596732f839d77cbe2f2243822c8551faffecc90b5dc19012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff65cf2831fc200e55aaacbe0881ad0edfb298ee6d4421b08b048aecc151716bd1000000006a47304402202032eb1ccebc3be4b94bae343d1d168e87040d2d20977c47d073d6bf490ef6c00220067656e00c4b8930167c54078609925cec7b893a52bcb9304e6b2602f564413e012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffeaf67880bee214acecc74b12f648c1014d6394c4abf99832d408981bb460e999000000006b483045022100b9ae1cc824149220ac517298e6f21c26939485b31d0ae19d97d986c5f8f34e4502200a90578cf2c1835dbea00484af1f225711c255f1d0a3208f2e4f1154f0db2c9a012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffad089c3fe7987a44f150f34b7ac66972de76dd84c739bdeddf360ab029dfd4d6000000006a473044022015f0386ed67a61626fbe5ae79e0d39d38e7b4072b648e8a26e23adadc0a8e5bc02202398188fa2feb26994e5c1e7e758788de3d5f0f0096f956a0cd58804710bea6a012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffd6c66730546c62dd003b5af1f1e5ecfd339c62db0169c1d499584e09a8a9b288000000006b4830450221008d4c73f0e3c9d913ba32fd864167649242e3e891412ab80bdd3f7ff43a238ee20220602738e98008b146256b51d0df99e222aa165f2ce351241ebc23d8a098e2b0db012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff12d9eff354f46cbd4446a0bff27a6a635ff5b1dc8a5dd8b0178bb5f89c9ec080000000006b48304502210098d3349ba9b13560748949933d2704663a5ab52cdc804afa1ac4da3e5992e0a002201525d7ad8466ad260219f3873fb7781addbd363f91e8063bfa86c7ed4e385b84012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff69e16767806ea5f069b7d46674f7aa747fcc6e541189ce7fcf92edcfd7642ff4000000006b4830450221008a5ebfe904c87f21947a44d8418190be5893993a683fde0f96df8a9487923da002205be1bbd8b518ba2f303cae23bc20806e84ffbba6a03f032385b15edb8df107f4012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640fffffffff4fbabd508178f553e676d67ce325796b03aa249b41a23c681c1ad9dedb45ae7000000006a47304402207cea6824abe1ce35e18954b858d45243e2cb57d27d782adc5b6b07ebd21a02d7022007ba0469b298c4b1a7c4a148fa16bae93d28593b34e197c10ac0d1faf9cc1bfa012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff14867aa59932d895be607fb7398f5594e39d9fa2e1c7daaed7b1390dbfdddcab000000006b4830450221009fb6e1885a3658c593809f95ecd2049f8ef9e00379686ac236b17312c9613d4c0220709fc50c9a920a19254389944db366c354708c19885d2479d9968fda0848f9f7012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff75777c692daaa21d216a1a2a7059203becfcdcf6793aa1259cdd7aadec957ab6000000006a47304402202945019860abf9b80e71f340320d114846efa4d2780ce12513e3983fb4d3f15b022019be008fb7368e3f1f022924dc7af1138b94041f46084dd27768bc8cacd1529f012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffca037b85742e93df4eef8e8ac3b8531321c8a8e21a4a941360866ea57a973665000000006a4730440220760283a7828edcc53671fc73e29c30cdc64d60d300292761d39730f0d09f94c202201e026293e3891a6fe46e40cd21778a41e21641a261a7fbf3bf75b034d9c788d9012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffa68edd030b4307ad87bfeff96a6db5b3ddd1a0901c488a4fe4d2093531896d75000000006b48304502210091a41e16b2c27d7ef6077e8de9df692b6013e61d72798ff9f7eba7fc983cdb65022034de29a0fb22a339e8044349913915444ab420772ab0ab423e44cfe073cb4e70012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff8c952791181993a7512e48d098a06e6197c993b83241a4bf1330c0e95f2c304d000000006b483045022100fa14b9301feb056f6e6b10446a660525cc1ff3e191b0c45f9e12dcd4f142422c02203f4a94f2a9d3ec0b74fac2156dd9b1addb8fa5b9a1cfc9e34b0802e88b1cbfa3012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff32bc4d014542abf328fecff29b9f4c243c3dd295fe42524b20bf591a3ddc26a1000000006a47304402206f92c4da6651c8959f7aed61608d26b9e46f5c1d69f4fc6e592b1f552b6067f102201c8cc221eac731867d15d483cc83322dba2f14f31d3efb26be937a68ad772394012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffbb3877248c26b23023d7dbb83a5f8293c65c5bff4ac47935a4a31248cefffd91000000006a47304402205bab19ad082a1918e18ccb6462edc263196fb88c8fdfd6bd07a0cf031a4637810220371a621c1bdc6b957db2447a92dcf87b0309653a2db480c9ed623f34a6e6d8a9012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff6415b7356c94609b9a7a7eb06e4c306896767abbc11399779f952fb9ae197059000000006b483045022100e2d038dbb9a873f5a58ec7901d6a7e79f1b404afea3d852056f4d0746cfb821102207fb274947b10d467cd71aa948e9a50f5f4430b661b27afc347efd9d6cc409d9c012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff1aeefdf80ec8a07d657ca64a2c0aa465f58e6284755c9a263c5a807be43b4b81000000006a47304402206e7ff765ba47a8785008f64f49c8e73232d582b2b2d0a49be0880c2557de8f8602206448423a6a37ad9740eb316513b31f73599ae14f65623709fb5443ae609f3e2e012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff3c091681df17b46f280bc9d8011c1bb31397637ce945b393f70380f8cd0a8b0d010000006a47304402206ca8717000f3086d364318f56d52e2369c40b88a1cb86455a8db262b4816698a02206711caf453bfda6b1b3542e27e68c3180f92f0548326d74e30b3ed18cd2c2353012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff91f32d98b581def165495aff6b69530e1f3de7f68fabfeb93730cf9793bbcd2a000000006a47304402200a8cd5e29ee7ff136772ea1789a39a027eaa1cd92f90f9d57fd8cf77202251f402203dd2bc282a838a5730e840a0d22b4f0edbe3cb2da00466c66bc2b5c66fc8b032012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff854d9226c28a1f5fe440e08f41000f3547f304ecf9cc010d0b5bc845ef1f039a000000006b483045022100fe6cce49975cc78af1c394bc02d995710833ba08cf7f8dd5f99add2cc7db26c40220793491309c215d8314a1c142bef7ec6b9a397249bec1c00a0a5ab47dfc1208b6012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff593bc907aa71f3b0f7aa8c48bb5f650595e65a5a733a9601a8374ed978eec9a7000000006a47304402206362ae3c4cf1a19ba0e43424b03af542077b49761172c1ad26d802f54b1b6ca602206bc7edb655bb0024c0e48c1f4c18c8864f8d1ce59ae55cd81dc0bd1234430691012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff3b9da8c5ab0c0cd6b40f602ea6ed8e36a48034b182b9d1a77ffebd15fe203b94000000006b483045022100f8610eae25899663cb5fa9a4575d937da57cdfd41958794bbb4c02f8bed75da40220262d40e019ec3a57b252f4150d509cce6f8a2dbd83184a9fc2ed56aba8018b15012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0897c8a57e15e7f3893b195d65cf6c6001b29c8c9734213d7a3131f57b9eca2e000000006b483045022100c485cbd6408cf0759bcf23c4154249882934b522a93c6b49e62412305bf7646902201cc4b668af4bb22fe57c32c4d34e822bceb12f6bd6923afdabf4894752a56ec3012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffffdc7000f7c45b62960623fa3a277e8a55348a4fe4936fef1224b6953434a249000000006b4830450221008a51a9c26f475d5c0838afe9d51524f95adfb21a9b0a02eae31cb01dc0a31fab022071c5492fbc7270731d4a4947a69398bf99dd28c65bb69d19910bf53a515274c8012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff10ec2af7e31ca28e27177215904d9a59abf80f0652b24e3f749f14fb7b2264ec000000006b483045022100fe4269f8f5ca53ebcff6fb782142a6228f0e50498a531b7a9c0d54768af9854102207cc740a9ea359569b49d69a94215ce3e23aeda5779cebc434ad3d608e1752990012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff5e3830c088dd6ea412d778b0a700ef27c183cf03e19f3d6f71bc5eaf53b2c22e000000006b4830450221009788a7e7f2407ba2f7c504091fbdf8f8498367781e8a357616d68e2a6770b4e70220518c92f5fb21e6bfd7d870a783b2a5572ce003f2dbb237ec59df419c9a148966012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff51630ccb0ad32b24cc7ae1b3602950ba518dca6aa65ef560e57f08c23eed8d80000000006a47304402201aa556153ffeb13aa674353bf88c04a7af15c7eb32e1a835464e4b613c31dc2802200395858c29a46e9108de1f90b401ee26c296388b4073143b63f849b2cce461af012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0200e1f5050000000017a914ab802c4d644be63fd1a72834ff63b650d6b5353987bb7e1e00000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac680e135d000000000000000000000000000000" + }, + "type": "TakerPaymentReceived" + }, + "timestamp": 1561529998938 + }, + { + "event": { + "type": "TakerPaymentWaitConfirmStarted" + }, + "timestamp": 1561529998941 + }, + { + "event": { + "type": "TakerPaymentValidatedAndConfirmed" + }, + "timestamp": 1561530000859 + }, + { + "event": { + "data": { + "tx_hash": "235f8e7ab3c9515a17fe8ee721ef971bbee273eb90baf70788edda7b73138c86", + "tx_hex": "0400008085202f8901a5464048246f791dca2f8cef2774125992cba7c0b820f32e7980be1de3380e7e00000000d8483045022100beca668a946fcad98da64cc56fa04edd58b4c239aa1362b4453857cc2e0042c90220606afb6272ef0773185ade247775103e715e85797816fbc204ec5128ac10a4b90120ea774bc94dce44c138920c6e9255e31d5645e60c0b64e9a059ab025f1dd2fdc6004c6b6304692c135db1752102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac6782012088a914eb78e2f0cf001ed7dc69276afd37b25c4d6bb491882102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac68ffffffff0118ddf505000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac8000135d000000000000000000000000000000" + }, + "type": "TakerPaymentSpent" + }, + "timestamp": 1561530003429 + }, + { + "event": { + "type": "TakerPaymentSpendConfirmStarted" + }, + "timestamp": 1561530003430 + }, + { + "event": { + "type": "TakerPaymentSpendConfirmed" + }, + "timestamp": 1561530003522 + }, + { + "event": { + "type": "Finished" + }, + "timestamp": 1561530003525 + } + ], + "my_info": { + "my_amount": "1", + "my_coin": "BEER", + "other_amount": "1", + "other_coin": "PIZZA", + "started_at": 1561529842 + }, + "maker_coin": "BEER", + "maker_amount": "1", + "taker_coin": "PIZZA", + "taker_amount": "1", + "gui": null, + "mm_version": "unknown", + "success_events": [ + "Started", + "Negotiated", + "TakerFeeValidated", + "MakerPaymentSent", + "TakerPaymentReceived", + "TakerPaymentWaitConfirmStarted", + "TakerPaymentValidatedAndConfirmed", + "TakerPaymentSpent", + "TakerPaymentSpendConfirmStarted", + "TakerPaymentSpendConfirmed", + "Finished" + ], + "type": "Maker", + "uuid": "6bf6e313-e610-4a9a-ba8c-57fc34a124aa", + "my_order_uuid": "3447b727-fe93-4357-8e5a-8cf2699b7e86" + }, + { + "error_events": [ + "StartFailed", + "NegotiateFailed", + "TakerFeeSendFailed", + "MakerPaymentValidateFailed", + "MakerPaymentWaitConfirmFailed", + "TakerPaymentTransactionFailed", + "TakerPaymentWaitConfirmFailed", + "TakerPaymentDataSendFailed", + "TakerPaymentWaitForSpendFailed", + "MakerPaymentSpendFailed", + "TakerPaymentWaitRefundStarted", + "TakerPaymentRefunded", + "TakerPaymentRefundFailed" + ], + "events": [ + { + "event": { + "data": { + "lock_duration": 31200, + "maker": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12", + "maker_amount": "0.01", + "maker_coin": "BEER", + "maker_coin_start_block": 154187, + "maker_payment_confirmations": 1, + "maker_payment_wait": 1561492367, + "my_persistent_pub": "02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3", + "started_at": 1561481967, + "taker_amount": "0.01", + "taker_coin": "BCH", + "taker_coin_start_block": 588576, + "taker_payment_confirmations": 1, + "taker_payment_lock": 1561513167, + "uuid": "491df802-43c3-4c73-85ef-1c4c49315ac6" + }, + "type": "Started" + }, + "timestamp": 1561481968393 + }, + { + "event": { + "data": { + "maker_payment_locktime": 1561544367, + "maker_pubkey": "02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640", + "secret_hash": "ba5128bcca5a2f7d2310054fb8ec51b80f352ef3" + }, + "type": "Negotiated" + }, + "timestamp": 1561482029079 + }, + { + "event": { + "data": { + "tx_hash": "9dd7c0c8124315d7884fb0c7bf8dbfd3f3bd185c62a2ee42dfbc1e3b74f21a0e", + "tx_hex": "0100000001f1beda7feba9fa5c52aa38027587db50b6428bbbcc053cd4ab17461fb00b89d1000000006a473044022004ad0330210e20dea416c3ff442e50dc59970c5d1a8b4d0a7d5cc61a2edc701602204459e1ee6774f1ba8258322fff72e1e1acddeb7aed2f75657458aa3deecc9465412102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0207050000000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac64b61700000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac2d53125d" + }, + "type": "TakerFeeSent" + }, + "timestamp": 1561482032294 + }, + { + "event": { + "data": { + "tx_hash": "ba36c890785e3e9d4b853310ad4d79ce8175e7c4184a398128b37339321672f4", + "tx_hex": "0400008085202f890197f703d245127e5b88471791f2820d29152046f4be133907afa8ac5542911190000000006b48304502210090e1c52aa2eba12b7c71fceab83b77f1456830a3dee1b956a831ecee5b5b353602205353a48c0129eae44b7c06a1f1651b9ceb8642374a1d5224a1e907240a978ad2012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0240420f000000000017a914192f34528c6c8cd11eefebec27f195f3894eb11187f096e605000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac4353125d000000000000000000000000000000" + }, + "type": "MakerPaymentReceived" + }, + "timestamp": 1561482073479 + }, + { + "event": { + "type": "MakerPaymentWaitConfirmStarted" + }, + "timestamp": 1561482073482 + }, + { + "event": { + "type": "MakerPaymentValidatedAndConfirmed" + }, + "timestamp": 1561482074296 + }, + { + "event": { + "data": { + "tx_hash": "bc98def88d93c270ae3cdb8a098d1b939ca499bf98f7a22b97be36bca13cdbc7", + "tx_hex": "01000000010e1af2743b1ebcdf42eea2625c18bdf3d3bf8dbfc7b04f88d7154312c8c0d79d010000006a4730440220030266d6d6435a4772cce2cebd91b6d4afffb920e23e9bc761434f105349cda002202335a050e2f28e4ca28862868141d3d7b553f3d30bceb83724ad70a32d04b0bd412102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0240420f000000000017a9140094798ed4100852f10a9ad85990f19b364f4c2d873c700800000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac5a53125d" + }, + "type": "TakerPaymentSent" + }, + "timestamp": 1561482078908 + }, + { + "event": { + "data": { + "secret": "66ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3", + "transaction": { + "tx_hash": "eec643315d4495aa5feb5062344fe2474223dc0f231b610afd336f908ae99ebc", + "tx_hex": "0100000001c7db3ca1bc36be972ba2f798bf99a49c931b8d098adb3cae70c2938df8de98bc00000000d747304402202e344f8c61f2f49f4d620d687d02448cfba631a8ce8c0f8ee774da177230a75902201f4a175e7fa40f26896f522b5c51c7c0485e0ad18d3221c885e8b96b52ed1cab412066ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3004c6b6304cfcc125db1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a914ba5128bcca5a2f7d2310054fb8ec51b80f352ef3882102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac68ffffffff01583e0f00000000001976a91464ae8510aac9546d5e7704e31ce177451386455588acfd49125d" + } + }, + "type": "TakerPaymentSpent" + }, + "timestamp": 1561483355081 + }, + { + "event": { + "data": { + "tx_hash": "858f07d0a4e74318497a6e3ff4d7b68b60ad21b5c8e90b9b485f0ddaed71d0dc", + "tx_hex": "0400008085202f8901f47216323973b32881394a18c4e77581ce794dad1033854b9d3e5e7890c836ba00000000d8483045022100847a65faed4bea33c5cbccff2bee7c1292871a3b130bd2f23e696bd80c07365f02202039ea02b4463afd4f1e2b20b348d64b40aaea165f8dfb483293e2b368d536fe012066ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3004c6b6304af46135db1752102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac6782012088a914ba5128bcca5a2f7d2310054fb8ec51b80f352ef3882102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac68ffffffff01583e0f00000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac4b4a125d000000000000000000000000000000" + }, + "type": "MakerPaymentSpent" + }, + "timestamp": 1561483358319 + }, + { + "event": { + "type": "Finished" + }, + "timestamp": 1561483358321 + } + ], + "my_info": { + "my_amount": "0.01", + "my_coin": "BCH", + "other_amount": "0.01", + "other_coin": "BEER", + "started_at": 1561481967 + }, + "maker_coin": "BEER", + "maker_amount": "0.01", + "taker_coin": "BCH", + "taker_amount": "0.01", + "gui": null, + "mm_version": "unknown", + "success_events": [ + "Started", + "Negotiated", + "TakerFeeSent", + "MakerPaymentReceived", + "MakerPaymentWaitConfirmStarted", + "MakerPaymentValidatedAndConfirmed", + "TakerPaymentSent", + "TakerPaymentSpent", + "MakerPaymentSpent", + "Finished" + ], + "type": "Taker", + "uuid": "491df802-43c3-4c73-85ef-1c4c49315ac6" + } + ] + } + } + ``` + + Response (error) + + ```json + { + "error": "lp_swap:1454] from_uuid e299c6ece7a7ddc42444eda64d46b163eaa992da65ce6de24eb812d715184e41 swap is not found" + } + ``` + From 9e51768d84fea00d92cfc74f6e5984b2dc9b504f Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 17:01:21 +0200 Subject: [PATCH 03/29] example subheading set --- .../api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index 4feeb3ff..1f730c63 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -11,6 +11,7 @@ The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas p | coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +## Request ```json { "userpass": "RPC_UserP@SSW0RD", From c6d055ad8748934f89cd774e4fdd5f646eb4b48b Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 17:09:29 +0200 Subject: [PATCH 04/29] fixed common structures --- .../api/common_structures/index.mdx | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/pages/komodo-defi-framework/api/common_structures/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/index.mdx index 22ddff47..512f8508 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/index.mdx @@ -395,3 +395,59 @@ The `WithdrawFee` object varies depending on the coin or token type. Refer to th } ``` + +### FilterCriteria + +The 'FilterCriteria' object allows you to filter the results based on specific parameters. + +| Parameter | Type | Description | +| --------------- | ------ | ---------------------------------------------- | +| status | string | Status of the transactions (e.g., "completed") | +| date\_from | string | \`Start date in ISO 8601 format | +| date\_to | string | End date in ISO 8601 format | +| my\_coin | string | Coin being used by you for the swap/trade. | +| other\_coin | string | Coin you are trading against | +| from\_timestamp | number | Start timestamp in UNIX format | +| to\_timestamp | number | End timestamp in UNIX format | + + + #### Example + + ```json + { + "filter": { + "status": "completed", + "date_from": "2024-01-01T00:00:00Z", + "date_to": "2024-07-01T00:00:00Z", + "my_coin": "BTC", + "other_coin": "ETH", + "from_timestamp": 1672531200, + "to_timestamp": 1704067200 + } + } + ``` + + +### PagingOptions + +The PagingOptions object allows you to specify pagination details for the results. + +| Parameter | Type | Description | +| ------------ | ---------------- | --------------------------------------------- | +| from\_uuid | string (or null) | The UUID from which to start fetching results | +| limit | number | The UUID from which to start fetching results | +| page\_number | number | End date in ISO 8601 format | + + + #### Example + + ```json + { + "paging_options": { + "from_uuid": null, + "limit": 10, + "page_number": 1 + } + } + ``` + \ No newline at end of file From af9242abc62c7d5cd731f48c0a391693fc8a930e Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 17:15:20 +0200 Subject: [PATCH 05/29] fixed trailing comma in json request --- .../api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index 1f730c63..2d9e0f81 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -18,7 +18,7 @@ The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas p "method": "get_eth_estimated_fee_per_gas", "mmrpc": "2.0", "params": { - "coin": "ETH", + "coin": "ETH" } } ``` From 9bec386f81537d1a0943cc353490e9c1aefd6271 Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 17:20:43 +0200 Subject: [PATCH 06/29] link to star_gas_fee_estimator fixed --- .../api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index 2d9e0f81..e1fea4a8 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -4,7 +4,7 @@ export const description = # get\_eth\_estimated\_fee\_per\_gas -The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator(/komodo-defi-framework/api/v20/start_gas_fee_estimator) method. +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20/start_gas_fee_estimator) method. | parameter | Type | Description | | ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | From 3424c3a3656782a0a4276b05798926778fbbe4e0 Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Mon, 22 Jul 2024 17:24:06 +0200 Subject: [PATCH 07/29] fixed url x2 --- .../api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index e1fea4a8..bcfe89ff 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -4,7 +4,7 @@ export const description = # get\_eth\_estimated\_fee\_per\_gas -The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20/start_gas_fee_estimator) method. +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20/start_gas_fee_estimator/index.mdx) method. | parameter | Type | Description | | ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | From ee5304d6ac86ceb48a9727e6508fa71ad1b1c5b6 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 9 Sep 2024 13:51:38 +0800 Subject: [PATCH 08/29] linting --- 2 | 6 - filepathSlugs.json | 27 +- .../api/common_structures/index.mdx | 2 +- src/pages/komodo-defi-framework/api/index.mdx | 256 +++++++++--------- .../api/v20/my_recent_swaps_v2/index.mdx | 48 ++-- 5 files changed, 178 insertions(+), 161 deletions(-) delete mode 100644 2 diff --git a/2 b/2 deleted file mode 100644 index aacff487..00000000 --- a/2 +++ /dev/null @@ -1,6 +0,0 @@ -Merge branch 'dev' into add/new_swap_rpcs -# Please enter a commit message to explain why this merge is necessary, -# especially if it merges an updated upstream into a topic branch. -# -# Lines starting with '#' will be ignored, and an empty message aborts -# the commit. diff --git a/filepathSlugs.json b/filepathSlugs.json index f70cc4aa..38023182 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2043,7 +2043,11 @@ "example-of-eth-type", "example-of-qrc20-type", "example-of-tendermint-type", - "example-of-utxo-type" + "example-of-utxo-type", + "filter-criteria", + "example-4", + "paging-options", + "example-5" ], "src/pages/komodo-defi-framework/api/common_structures/lightning/index.mdx": [ "lightning-network-structures", @@ -2932,6 +2936,14 @@ "response-not-valid", "error-types-2" ], + "src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx": [ + "my-recent-swaps", + "arguments", + "response", + "example", + "command", + "response-success" + ], "src/pages/komodo-defi-framework/api/v20/my_tx_history/index.mdx": [ "my-tx-history", "arguments", @@ -3103,6 +3115,11 @@ "command", "response-success" ], + "src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx": [ + "get-eth-estimated-fee-per-gas", + "request", + "response" + ], "src/pages/komodo-defi-framework/api/v20-dev/get_locked_amount/index.mdx": [ "get-locked-amount", "arguments", @@ -3382,6 +3399,14 @@ "transport-error-unable-to-estimate-gas", "not-enough-nfts-amount-trying-to-send-more-nfts-than-you-have" ], + "src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx": [ + "start-gas-fee-estimator", + "response" + ], + "src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx": [ + "stop-gas-fee-estimator", + "response" + ], "src/pages/komodo-defi-framework/api/v20-dev/task_account_balance/index.mdx": [ "account-balance-tasks", "init", diff --git a/src/pages/komodo-defi-framework/api/common_structures/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/index.mdx index 512f8508..42092ed6 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/index.mdx @@ -450,4 +450,4 @@ The PagingOptions object allows you to specify pagination details for the result } } ``` - \ No newline at end of file + diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 83f5237a..819c2759 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,131 +10,131 @@ To test the methods in v2.0 (Dev), you will need to [build the Komodo DeFi Frame Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: -| Legacy | v2.0 (release) | v2.0 (dev) | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| [active_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | -| | [add_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | -| | [add_node_to_version_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | -| [all_swaps_uuids_by_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | -| [ban_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | -| [best_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | -| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | -| [cancel_all_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | -| [cancel_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | -| | | [clear_nft_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | -| | | [close_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | -| [coins_needed_for_kick_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | -| [convert_utxo_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | -| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | -| [disable_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | -| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | -| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | -| | [enable_bch_with_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | -| | [enable_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | -| | [enable_eth_with_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | -| | [enable_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | -| | [enable_tendermint_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | -| | [enable_tendermint_with_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | -| | | [get_channel_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | -| | | [get_claimable_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | -| | | [get_current_mtp](/komodo-defi-framework/api/v20-dev/get_current_mtp/#get-current-mtp) | -| [get_enabled_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | -| | | [get_eth_estimated_fee_per_gas](/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | -| [get_gossip_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | -| [get_gossip_peer_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | -| [get_gossip_topic_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | -| | | [get_locked_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | -| [get_my_peer_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | -| | | [get_new_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | -| | | [get_nft_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | -| | | [get_nft_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | -| | | [get_nft_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | -| [get_peers_info](/komodo-defi-framework/api/legacy/get_peers_info/#get-peers-info) | | | -| | [get_public_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | -| | [get_public_key_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | -| | [get_raw_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | -| [get_relay_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | -| | [get_staking_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | -| [get_trade_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | -| [import_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | -| [kmd_rewards_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | -| | | [lightning::nodes::add_trusted_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | -| | | [lightning::nodes::connect_to_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | -| | | [lightning::nodes::list_trusted_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | -| | | [lightning::nodes::remove_trusted_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | -| | | [lightning::payments::generate_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | -| | | [lightning::payments::get_payment_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | -| | | [lightning::payments::list_payments_by_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | -| | | [lightning::payments::send_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | -| [list_banned_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | -| | | [list_closed_channels_by_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | -| | | [list_open_channels_by_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | -| | | [max_maker_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | -| [max_taker_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | -| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | -| [min_trading_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | -| [my_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | -| [my_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my_recent_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my_recent_swaps](/komodo-defi-framework/api/v20/my_recent_swaps_v2/#my-recent-swaps) | | -| [my_swap_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | -| [my_tx_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my_tx_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | -| | | [open_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | -| [order_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | -| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | -| [orderbook_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | -| [orders_history_by_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | -| [recover_funds_of_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | -| | [recreate_swap_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | -| | | [refresh_nft_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | -| | [remove_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | -| | [remove_node_from_version_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | -| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | -| [send_raw_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | -| [set_required_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | -| [set_requires_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | -| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | -| [show_priv_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | -| | [sign_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | -| | [sign_raw_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | | [start_gas_fee_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/#start-gas-fee-estimator) | -| | [start_simple_market_maker_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | -| | [start_version_stat_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | -| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | | [stop_gas_fee_estimator](/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/#stop-gas-fee-estimator) | -| | [stop_simple_market_maker_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | -| | [stop_version_stat_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | -| | | [task::account_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | -| | | [task::account_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | -| | | [task::account_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | -| | | [task::create_new_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | -| | | [task::enable_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | -| | | [task::enable_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | -| | | [task::enable_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | -| | | [task::enable_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | -| | | [task::enable_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | -| | | [task::enable_qtum::user_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | -| | | [task::enable_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | -| | | [task::enable_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | -| | | [task::enable_utxo::user_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | -| | | [task::enable_z_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | -| | | [task::enable_z_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | -| | | [task::enable_z_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | -| | | [task::init_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | -| | | [task::init_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | -| | | [task::init_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | -| | | [task::init_trezor::user_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | -| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | -| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | -| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | -| [trade_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | -| [unban_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | -| | | [update_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | -| [update_maker_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | -| | | [update_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | -| | [update_version_stat_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | -| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | -| | [verify_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | -| [version](/komodo-defi-framework/api/legacy/version/#version) | | | -| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | -| | | [withdraw_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | -| | | [z_coin_tx_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | +| Legacy | v2.0 (release) | v2.0 (dev) | +| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | +| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | +| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | +| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | +| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | +| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | +| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | +| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | +| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | +| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | +| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | +| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | +| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | +| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | +| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | +| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | +| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | +| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | +| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | +| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | +| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | +| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | +| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | +| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | +| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | +| | | [get\_current\_mtp](/komodo-defi-framework/api/v20-dev/get_current_mtp/#get-current-mtp) | +| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | +| | | [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | +| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | +| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | +| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | +| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | +| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | +| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | +| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | +| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | +| [get\_peers\_info](/komodo-defi-framework/api/legacy/get_peers_info/#get-peers-info) | | | +| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | +| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | +| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | +| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | +| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | +| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | +| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | +| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | +| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | +| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | +| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | +| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | +| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | +| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | +| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | +| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | +| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | +| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | +| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | +| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | +| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | +| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | +| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | +| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | +| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps_v2/#my-recent-swaps) | | +| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | +| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | +| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | +| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | +| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | +| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | +| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | +| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | +| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | +| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | +| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | +| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | +| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | +| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | +| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | +| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | +| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | +| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | +| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | +| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | +| | | [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/#start-gas-fee-estimator) | +| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | +| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | +| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | +| | | [stop\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/#stop-gas-fee-estimator) | +| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | +| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | +| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | +| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | +| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | +| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | +| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | +| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | +| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | +| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | +| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | +| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | +| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | +| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | +| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | +| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | +| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | +| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | +| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | +| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | +| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | +| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | +| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | +| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | +| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | +| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | +| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | +| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | +| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | +| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | +| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | +| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | +| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | +| [version](/komodo-defi-framework/api/legacy/version/#version) | | | +| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | +| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | +| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | diff --git a/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx b/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx index e279a5b2..3021b76b 100644 --- a/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx @@ -9,11 +9,10 @@ The `my_recent_swaps` method returns the data of the most recent atomic swaps ex ## Arguments -| Structure | Type | Description | -| --------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| filter | Object | [FilterCriteria](/komodo-defi-framework/api/common_structures/#FilterCriteria) containing all the filtering criteria for the swaps | -| paging\_options | Object | [PagingOptionsObject](/komodo-defi-framework/api/common_structures/#PagingOptions) containing all the paging options for the request. | - +| Structure | Type | Description | +| --------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------- | +| filter | Object | [FilterCriteria](/komodo-defi-framework/api/common_structures/#filter-criteria) containing all the filtering criteria for the swaps | +| paging\_options | Object | [PagingOptionsObject](/komodo-defi-framework/api/common_structures/#paging-options) containing all the paging options for the request. | #### Response @@ -33,32 +32,31 @@ The `my_recent_swaps` method returns the data of the most recent atomic swaps ex #### Command -```json -{ + ```json + { "mmrpc": "2.0", - "userpass": "Aa12345678987654321!", + "userpass": "RPC_UserP@SSW0RD", "method": "my_recent_swaps", "params": { - "filter": { - "status": "completed", - "date_from": "2024-01-01T00:00:00Z", - "date_to": "2024-07-01T00:00:00Z", - "my_coin": "BTC", - "other_coin": "ETH", - "from_timestamp": 1672531200, - "to_timestamp": 1704067200 - }, - "paging_options": { - "from_uuid": null, - "limit": 10, - "page_number": 1 - } + "filter": { + "status": "completed", + "date_from": "2024-01-01T00:00:00Z", + "date_to": "2024-07-01T00:00:00Z", + "my_coin": "BTC", + "other_coin": "ETH", + "from_timestamp": 1672531200, + "to_timestamp": 1704067200 + }, + "paging_options": { + "from_uuid": null, + "limit": 10, + "page_number": 1 + } } -} -``` + } + ``` - #### Response (success) From 5db1c3b31a2cadd174fa4ccf01fdb2f8f6ee7e58 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 9 Sep 2024 14:46:53 +0800 Subject: [PATCH 09/29] linting --- filepathSlugs.json | 8 - src/data/sidebar.json | 12 + src/pages/komodo-defi-framework/api/index.mdx | 2 +- .../get_eth_estimated_fee_per_gas/index.mdx | 13 +- .../api/v20/my_recent_swaps_v2/index.mdx | 390 ------------------ 5 files changed, 20 insertions(+), 405 deletions(-) delete mode 100644 src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx diff --git a/filepathSlugs.json b/filepathSlugs.json index 38023182..c2f8453d 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2936,14 +2936,6 @@ "response-not-valid", "error-types-2" ], - "src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx": [ - "my-recent-swaps", - "arguments", - "response", - "example", - "command", - "response-success" - ], "src/pages/komodo-defi-framework/api/v20/my_tx_history/index.mdx": [ "my-tx-history", "arguments", diff --git a/src/data/sidebar.json b/src/data/sidebar.json index de81ee63..e7e2de7a 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -444,6 +444,18 @@ { "title": "Utility", "links": [ + { + "title": "get_eth_estimated_fee_per_gas", + "href": "/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/" + }, + { + "title": "stop_gas_fee_estimator", + "href": "/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/" + }, + { + "title": "start_gas_fee_estimator", + "href": "/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/" + }, { "title": "get_current_mtp", "href": "/komodo-defi-framework/api/v20-dev/get_current_mtp/" diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 819c2759..35acf3f7 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -75,7 +75,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | | [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | | [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps_v2/#my-recent-swaps) | | +| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | | | | [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | | [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | | | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index bcfe89ff..24999696 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -4,14 +4,15 @@ export const description = # get\_eth\_estimated\_fee\_per\_gas -The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20/start_gas_fee_estimator/index.mdx) method. +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/) method. -| parameter | Type | Description | -| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - ## Request + + ```json { "userpass": "RPC_UserP@SSW0RD", @@ -57,4 +58,4 @@ The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas p "id": null } -``` \ No newline at end of file +``` diff --git a/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx b/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx deleted file mode 100644 index 3021b76b..00000000 --- a/src/pages/komodo-defi-framework/api/v20/my_recent_swaps_v2/index.mdx +++ /dev/null @@ -1,390 +0,0 @@ -export const title = "Komodo DeFi Framework Method: My Recent Swaps V2"; -export const description = "The my_recent_swaps method returns the data of the most recent atomic swaps executed by the Komodo DeFi Framework API node."; - -# my\_recent\_swaps - -**my\_recent\_swaps (from\_uuid page\_number=1 limit=10 my\_coin other\_coin from\_timestamp to\_timestamp)** - -The `my_recent_swaps` method returns the data of the most recent atomic swaps executed by the Komodo DeFi Framework API node. Please note that all filters (my\_coin, from\_timestamp, etc.) are combined using logical AND. - -## Arguments - -| Structure | Type | Description | -| --------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------- | -| filter | Object | [FilterCriteria](/komodo-defi-framework/api/common_structures/#filter-criteria) containing all the filtering criteria for the swaps | -| paging\_options | Object | [PagingOptionsObject](/komodo-defi-framework/api/common_structures/#paging-options) containing all the paging options for the request. | - -#### Response - -| Structure | Type | Description | -| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| swaps | array of objects | A list of standard [SwapStatus](/komodo-defi-framework/api/common_structures/swaps/#swap-status) objects | -| from\_uuid | string | the from\_uuid that was set in the request; this value is null if nothing was set | -| skipped | number | the number of skipped records (i.e. the position of `from_uuid` in the list + 1 or `(page_number - 1) * limit`; the value is 0 if `from_uuid` or `page_number` were not set or `page_number` is 1) | -| limit | number | the limit that was set in the request; note that the actual number of swaps can differ from the specified limit (e.g. on the last page) | -| total | number | total number of swaps available with the selected filters | -| page\_number | number | the page\_number that was set in the request; if both `page_number` and `from_uuid` are not set in request it will default to `1`; if `from_uuid` is present in request this value will be always null | -| total\_pages | number | total pages available with the selected filters and limit | -| found\_records | number | the number of returned swaps | - -#### 📌 Example - -#### Command - - - ```json - { - "mmrpc": "2.0", - "userpass": "RPC_UserP@SSW0RD", - "method": "my_recent_swaps", - "params": { - "filter": { - "status": "completed", - "date_from": "2024-01-01T00:00:00Z", - "date_to": "2024-07-01T00:00:00Z", - "my_coin": "BTC", - "other_coin": "ETH", - "from_timestamp": 1672531200, - "to_timestamp": 1704067200 - }, - "paging_options": { - "from_uuid": null, - "limit": 10, - "page_number": 1 - } - } - } - ``` - - - - #### Response (success) - - ```json - { - "result": { - "from_uuid": "e299c6ece7a7ddc42444eda64d46b163eaa992da65ce6de24eb812d715184e4c", - "limit": 2, - "skipped": 1, - "total": 49, - "found_records": 2, - "page_number": null, - "total_pages": 25, - "swaps": [ - { - "error_events": [ - "StartFailed", - "NegotiateFailed", - "TakerFeeValidateFailed", - "MakerPaymentTransactionFailed", - "MakerPaymentDataSendFailed", - "MakerPaymentWaitConfirmFailed", - "TakerPaymentValidateFailed", - "TakerPaymentWaitConfirmFailed", - "TakerPaymentSpendFailed", - "TakerPaymentSpendConfirmFailed", - "MakerPaymentWaitRefundStarted", - "MakerPaymentRefunded", - "MakerPaymentRefundFailed" - ], - "events": [ - { - "event": { - "data": { - "lock_duration": 7800, - "maker_amount": "1", - "maker_coin": "BEER", - "maker_coin_start_block": 154221, - "maker_payment_confirmations": 1, - "maker_payment_requires_nota": false, - "maker_payment_lock": 1561545442, - "my_persistent_pub": "02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3", - "secret": "ea774bc94dce44c138920c6e9255e31d5645e60c0b64e9a059ab025f1dd2fdc6", - "started_at": 1561529842, - "taker": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12", - "taker_amount": "1", - "taker_coin": "PIZZA", - "taker_coin_start_block": 141363, - "taker_payment_confirmations": 1, - "taker_payment_requires_nota": true, - "uuid": "6bf6e313-e610-4a9a-ba8c-57fc34a124aa" - }, - "type": "Started" - }, - "timestamp": 1561529842866 - }, - { - "event": { - "data": { - "taker_payment_locktime": 1561537641, - "taker_pubkey": "02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640" - }, - "type": "Negotiated" - }, - "timestamp": 1561529883208 - }, - { - "event": { - "data": { - "tx_hash": "a91469546211cc910fbe4a1f4668ab0353765d3d0cb03f4a67bff9326991f682", - "tx_hex": "0400008085202f89021c7eeec33f8eb5ff2ed6c3d09e40e04b05a9674ea2feefcc12de3f9dcc16aff8000000006b483045022100e18e3d1afa8a24ecec82c92bfc05c119bfacdbb71b5f5663a4b96cc2a41ab269022017a79a1a1f6e0220d8fa1d2cf3b1c9788272f1ad18e4987b8f1cd4418acaa5b0012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff6a0d321eb52c3c7165adf80f83b15b7a5caa3a0dfa87746239021600d47fb43e000000006b483045022100937ed900e084d57d5e3341499fc66c5574884ca71cd4331fa696c8b7a517591b02201f5f851f94c3ca0ffb4789f1af22cb95dc83564e127ed7d23f1129eb2b981a2f012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff02bcf60100000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac9c120100000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac2f0e135d000000000000000000000000000000" - }, - "type": "TakerFeeValidated" - }, - "timestamp": 1561529927879 - }, - { - "event": { - "data": { - "tx_hash": "efa90a2918e6793c8a2725c06ee34d0fa76c43bc85e680be195414e7aee36154", - "tx_hex": "0400008085202f890cdcd071edda0d5f489b0be9c8b521ad608bb6d7f43f6e7a491843e7a4d0078f85000000006b483045022100fbc3bd09f8e1821ed671d1b1d2ed355833fb42c0bc435fef2da5c5b0a980b9a002204ef92b35576069d640ca0ac08f46645e5ade36afd5f19fb6aad19cfc9fb221fb012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffe6ae2a3ce221a6612d9e640bdbe10a2e477b3bc68a1aeee4a6784cb18648a785010000006a47304402202000a7e60ae2ce1529247875623ef2c5b42448dcaeac8de0f8f0e2f8e5bd8a6b0220426321a004b793172014f522efbca77a3dc92e86ce0a75330d8ceb83072ad4e7012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff9335553edcbac9559cae517a3e25b880a48fabf661c4ac338394972eef4572da000000006b4830450221008ded7230f2fb37a42b94f96174ec192baf4cd9e9e68fb9b6cf0463a36a6093e00220538de51ceda1617f3964a2350802377940fdfa018cc1043d77c66081b1cab0c4012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3fffffffff91b5d3733877f84108de77fec46bee156766e1a6837fa7b580ccbc3905acb14000000006b483045022100d07cf1fd20e07aafdc942ba56f6b45baee61b93145a2bdba391e2cdb8024bf15022056ea8183990703ef05018df2fe8bd5ec678ec0f9207b0283292b2cdafc5e1e0c012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff147870387ca938b2b6e7daa96ba2496014f125c0e4e576273ef36ee8186c415a000000006a47304402204c5b15b641d7e34444456d2ea6663bdc8bd8216e309a7220814474f346b8425e0220634d1dd943b416b7a807704d7f7a3d46a60d88ef4e20734588a0b302c55fa82d012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffd2b954ae9b4a61fad9f7bc956d24e38d7b6fe313da824bd3bd91287d5a6b49d9000000006b483045022100a7387d9ab7b2c92d3cbce525e96ffac5ae3ef14f848661741ada0db17715c4a002202c1417d5e3e04b1a2d1774a83bb8d5aa1c0536c100138123089fa69921b5d976012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff28792a2e26d9d7be0467fac52b12ece67410b23eea845008257979bd87d083e3000000006a473044022027c40517c33cd3202d4310cfd2c75f38e6d7804b255fc3838a32ea26e5a3cb0002202b4399e1d7e655b64f699318f2bfbdced49f064ee54e9d6a678668fce51caf96012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffa8bf797bacd213b74a9977ae1b956afe3af33a1ee94324e010a16db891a07441000000006a473044022004cbb1d970b9f02c578b5c1d7de33361581eebc19c3cd8d2e50b0211ca4ef13702200c93b9fe5428055b6274dc8e52073c3e87f5b5e4206134d745928ccfc9393919012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff2b6fd82c9a68111b67ad85a614a6ecb50f7b6eac3d21d8ebefd9a6065cdf5729000000006b483045022100fdff16c595c7b4a9b4fc1e445b565f7b29fe5b7a08f79291b0ff585c7b72ac2902200c694aa124013bd419ce2349f15d10435827868d35db939b9d3c344d16e78420012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff6a5468dd8c83553dc51022f2a2fb772cf91c8607dc2ca1b8f203ac534612ab29000000006b483045022100ba7cc79e7ae3720238bfc5caa225dc8017d6a0d1cb1ec66abaf724fd20b3b7ab02206e8c942756604af0f63b74af495a9b3b7f4a44c489267f69a14cf2b1b953f46e012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff5f9f48a91d343fd5aef1d85f00850070931459ab256697afb728d1c81c1fa1d2000000006a47304402200ec85fc66f963e7504eb27361a4b4bb17de60e459da414fdc3962476de636134022056b62c15cf7f9b4e7d4e11c03e4e541dd348919b8c55efa4f1927e2fdd5ae8ea012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffffee1f455924d3167e7f7abf452c1856e9abdcfe27dc889942dd249cb376169d38000000006b48304502210089274eed807c5d23d819f6dfa8a358a9748e56f2080be4396ef77bb19d91b17402207fc7b22c879534fffe0eeaaec8fc284e22c2756f380c05ea57b881a96b09f3af012102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0200e1f5050000000017a9144eb3a361d8a15d7f6a8ef9d1cf44962a90c44d548702912b00000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac490e135d000000000000000000000000000000" - }, - "type": "MakerPaymentSent" - }, - "timestamp": 1561529938879 - }, - { - "event": { - "data": { - "tx_hash": "7e0e38e31dbe80792ef320b8c0a7cb9259127427ef8c2fca1d796f24484046a5", - "tx_hex": "0400008085202f892082f6916932f9bf674a3fb00c3d5d765303ab68461f4abe0f91cc1162546914a9010000006b483045022100999b8bb0224476b5c344a466d0051ec7a8c312574ad8956a4177a42625cb86e302205a6664396bff3f2e6fe57adb7e082a26d1b8da9ee77b3fc24aa4148fdd5c84db012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffcad29a146b81bcaa44744efbec5149b6e3ca32bace140f75ad5794288d5bff6c000000006b483045022100b4dbfe88561c201fb8fbaf5bbf5bc0985893c909429c579425da84b02d23cc12022075f1e1e3eba38d167a6e84aac23faee5a2eb0799511e647213cee168529d4e5d012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffa13eeacd04b3e26ae3f41530b560c615dafa0fd4235cc5b22d48ab97e7c3399c000000006a47304402201158306fe668cbf56ad3f586dc83c1cda9efab44cef46da6bc0fe242292c85ed02201d622fe283410320e760233ae81dc53df65406b09fd07f8649f1775689219c35012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff4352b9f1f01dde4209b9e91076a3cfcabdaa23d9d5a313abfe7edb67ee4273e3000000006b483045022100825242fb3c6d460580016e93718ae1f43917e53abcc1558a64a6ab6f406763dd0220543936ce4c725e5e9f03831274a8475b535171bb29e1919fcf52ba2a9c85a553012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffcc0fa94b5973c893e61d470ae3982b0bedfd29cb0da2c60a362de438598f108c000000006b4830450221008c70a8e10ca37819e5a4d9783366e729e690d78f2fdd8a1f4812ddc14ec7d6ad022035ba8cb4d4e50684107f8af5c184582687b5d7dfda5d9be1bd45e45749c77f08012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffb0bd3bb9fedb7bbf49ca1612c955ba6095202186cef5be6952aed3dd32da4268000000006a4730440220592216d63c199faa587a4a6cbe11ca26027368a116b50818ce30eced59ca887202201bcafcf88f9f2632151596732f839d77cbe2f2243822c8551faffecc90b5dc19012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff65cf2831fc200e55aaacbe0881ad0edfb298ee6d4421b08b048aecc151716bd1000000006a47304402202032eb1ccebc3be4b94bae343d1d168e87040d2d20977c47d073d6bf490ef6c00220067656e00c4b8930167c54078609925cec7b893a52bcb9304e6b2602f564413e012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffeaf67880bee214acecc74b12f648c1014d6394c4abf99832d408981bb460e999000000006b483045022100b9ae1cc824149220ac517298e6f21c26939485b31d0ae19d97d986c5f8f34e4502200a90578cf2c1835dbea00484af1f225711c255f1d0a3208f2e4f1154f0db2c9a012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffad089c3fe7987a44f150f34b7ac66972de76dd84c739bdeddf360ab029dfd4d6000000006a473044022015f0386ed67a61626fbe5ae79e0d39d38e7b4072b648e8a26e23adadc0a8e5bc02202398188fa2feb26994e5c1e7e758788de3d5f0f0096f956a0cd58804710bea6a012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffd6c66730546c62dd003b5af1f1e5ecfd339c62db0169c1d499584e09a8a9b288000000006b4830450221008d4c73f0e3c9d913ba32fd864167649242e3e891412ab80bdd3f7ff43a238ee20220602738e98008b146256b51d0df99e222aa165f2ce351241ebc23d8a098e2b0db012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff12d9eff354f46cbd4446a0bff27a6a635ff5b1dc8a5dd8b0178bb5f89c9ec080000000006b48304502210098d3349ba9b13560748949933d2704663a5ab52cdc804afa1ac4da3e5992e0a002201525d7ad8466ad260219f3873fb7781addbd363f91e8063bfa86c7ed4e385b84012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff69e16767806ea5f069b7d46674f7aa747fcc6e541189ce7fcf92edcfd7642ff4000000006b4830450221008a5ebfe904c87f21947a44d8418190be5893993a683fde0f96df8a9487923da002205be1bbd8b518ba2f303cae23bc20806e84ffbba6a03f032385b15edb8df107f4012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640fffffffff4fbabd508178f553e676d67ce325796b03aa249b41a23c681c1ad9dedb45ae7000000006a47304402207cea6824abe1ce35e18954b858d45243e2cb57d27d782adc5b6b07ebd21a02d7022007ba0469b298c4b1a7c4a148fa16bae93d28593b34e197c10ac0d1faf9cc1bfa012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff14867aa59932d895be607fb7398f5594e39d9fa2e1c7daaed7b1390dbfdddcab000000006b4830450221009fb6e1885a3658c593809f95ecd2049f8ef9e00379686ac236b17312c9613d4c0220709fc50c9a920a19254389944db366c354708c19885d2479d9968fda0848f9f7012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff75777c692daaa21d216a1a2a7059203becfcdcf6793aa1259cdd7aadec957ab6000000006a47304402202945019860abf9b80e71f340320d114846efa4d2780ce12513e3983fb4d3f15b022019be008fb7368e3f1f022924dc7af1138b94041f46084dd27768bc8cacd1529f012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffca037b85742e93df4eef8e8ac3b8531321c8a8e21a4a941360866ea57a973665000000006a4730440220760283a7828edcc53671fc73e29c30cdc64d60d300292761d39730f0d09f94c202201e026293e3891a6fe46e40cd21778a41e21641a261a7fbf3bf75b034d9c788d9012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffa68edd030b4307ad87bfeff96a6db5b3ddd1a0901c488a4fe4d2093531896d75000000006b48304502210091a41e16b2c27d7ef6077e8de9df692b6013e61d72798ff9f7eba7fc983cdb65022034de29a0fb22a339e8044349913915444ab420772ab0ab423e44cfe073cb4e70012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff8c952791181993a7512e48d098a06e6197c993b83241a4bf1330c0e95f2c304d000000006b483045022100fa14b9301feb056f6e6b10446a660525cc1ff3e191b0c45f9e12dcd4f142422c02203f4a94f2a9d3ec0b74fac2156dd9b1addb8fa5b9a1cfc9e34b0802e88b1cbfa3012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff32bc4d014542abf328fecff29b9f4c243c3dd295fe42524b20bf591a3ddc26a1000000006a47304402206f92c4da6651c8959f7aed61608d26b9e46f5c1d69f4fc6e592b1f552b6067f102201c8cc221eac731867d15d483cc83322dba2f14f31d3efb26be937a68ad772394012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffbb3877248c26b23023d7dbb83a5f8293c65c5bff4ac47935a4a31248cefffd91000000006a47304402205bab19ad082a1918e18ccb6462edc263196fb88c8fdfd6bd07a0cf031a4637810220371a621c1bdc6b957db2447a92dcf87b0309653a2db480c9ed623f34a6e6d8a9012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff6415b7356c94609b9a7a7eb06e4c306896767abbc11399779f952fb9ae197059000000006b483045022100e2d038dbb9a873f5a58ec7901d6a7e79f1b404afea3d852056f4d0746cfb821102207fb274947b10d467cd71aa948e9a50f5f4430b661b27afc347efd9d6cc409d9c012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff1aeefdf80ec8a07d657ca64a2c0aa465f58e6284755c9a263c5a807be43b4b81000000006a47304402206e7ff765ba47a8785008f64f49c8e73232d582b2b2d0a49be0880c2557de8f8602206448423a6a37ad9740eb316513b31f73599ae14f65623709fb5443ae609f3e2e012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff3c091681df17b46f280bc9d8011c1bb31397637ce945b393f70380f8cd0a8b0d010000006a47304402206ca8717000f3086d364318f56d52e2369c40b88a1cb86455a8db262b4816698a02206711caf453bfda6b1b3542e27e68c3180f92f0548326d74e30b3ed18cd2c2353012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff91f32d98b581def165495aff6b69530e1f3de7f68fabfeb93730cf9793bbcd2a000000006a47304402200a8cd5e29ee7ff136772ea1789a39a027eaa1cd92f90f9d57fd8cf77202251f402203dd2bc282a838a5730e840a0d22b4f0edbe3cb2da00466c66bc2b5c66fc8b032012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff854d9226c28a1f5fe440e08f41000f3547f304ecf9cc010d0b5bc845ef1f039a000000006b483045022100fe6cce49975cc78af1c394bc02d995710833ba08cf7f8dd5f99add2cc7db26c40220793491309c215d8314a1c142bef7ec6b9a397249bec1c00a0a5ab47dfc1208b6012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff593bc907aa71f3b0f7aa8c48bb5f650595e65a5a733a9601a8374ed978eec9a7000000006a47304402206362ae3c4cf1a19ba0e43424b03af542077b49761172c1ad26d802f54b1b6ca602206bc7edb655bb0024c0e48c1f4c18c8864f8d1ce59ae55cd81dc0bd1234430691012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff3b9da8c5ab0c0cd6b40f602ea6ed8e36a48034b182b9d1a77ffebd15fe203b94000000006b483045022100f8610eae25899663cb5fa9a4575d937da57cdfd41958794bbb4c02f8bed75da40220262d40e019ec3a57b252f4150d509cce6f8a2dbd83184a9fc2ed56aba8018b15012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0897c8a57e15e7f3893b195d65cf6c6001b29c8c9734213d7a3131f57b9eca2e000000006b483045022100c485cbd6408cf0759bcf23c4154249882934b522a93c6b49e62412305bf7646902201cc4b668af4bb22fe57c32c4d34e822bceb12f6bd6923afdabf4894752a56ec3012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffffffdc7000f7c45b62960623fa3a277e8a55348a4fe4936fef1224b6953434a249000000006b4830450221008a51a9c26f475d5c0838afe9d51524f95adfb21a9b0a02eae31cb01dc0a31fab022071c5492fbc7270731d4a4947a69398bf99dd28c65bb69d19910bf53a515274c8012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff10ec2af7e31ca28e27177215904d9a59abf80f0652b24e3f749f14fb7b2264ec000000006b483045022100fe4269f8f5ca53ebcff6fb782142a6228f0e50498a531b7a9c0d54768af9854102207cc740a9ea359569b49d69a94215ce3e23aeda5779cebc434ad3d608e1752990012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff5e3830c088dd6ea412d778b0a700ef27c183cf03e19f3d6f71bc5eaf53b2c22e000000006b4830450221009788a7e7f2407ba2f7c504091fbdf8f8498367781e8a357616d68e2a6770b4e70220518c92f5fb21e6bfd7d870a783b2a5572ce003f2dbb237ec59df419c9a148966012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff51630ccb0ad32b24cc7ae1b3602950ba518dca6aa65ef560e57f08c23eed8d80000000006a47304402201aa556153ffeb13aa674353bf88c04a7af15c7eb32e1a835464e4b613c31dc2802200395858c29a46e9108de1f90b401ee26c296388b4073143b63f849b2cce461af012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0200e1f5050000000017a914ab802c4d644be63fd1a72834ff63b650d6b5353987bb7e1e00000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac680e135d000000000000000000000000000000" - }, - "type": "TakerPaymentReceived" - }, - "timestamp": 1561529998938 - }, - { - "event": { - "type": "TakerPaymentWaitConfirmStarted" - }, - "timestamp": 1561529998941 - }, - { - "event": { - "type": "TakerPaymentValidatedAndConfirmed" - }, - "timestamp": 1561530000859 - }, - { - "event": { - "data": { - "tx_hash": "235f8e7ab3c9515a17fe8ee721ef971bbee273eb90baf70788edda7b73138c86", - "tx_hex": "0400008085202f8901a5464048246f791dca2f8cef2774125992cba7c0b820f32e7980be1de3380e7e00000000d8483045022100beca668a946fcad98da64cc56fa04edd58b4c239aa1362b4453857cc2e0042c90220606afb6272ef0773185ade247775103e715e85797816fbc204ec5128ac10a4b90120ea774bc94dce44c138920c6e9255e31d5645e60c0b64e9a059ab025f1dd2fdc6004c6b6304692c135db1752102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac6782012088a914eb78e2f0cf001ed7dc69276afd37b25c4d6bb491882102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac68ffffffff0118ddf505000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac8000135d000000000000000000000000000000" - }, - "type": "TakerPaymentSpent" - }, - "timestamp": 1561530003429 - }, - { - "event": { - "type": "TakerPaymentSpendConfirmStarted" - }, - "timestamp": 1561530003430 - }, - { - "event": { - "type": "TakerPaymentSpendConfirmed" - }, - "timestamp": 1561530003522 - }, - { - "event": { - "type": "Finished" - }, - "timestamp": 1561530003525 - } - ], - "my_info": { - "my_amount": "1", - "my_coin": "BEER", - "other_amount": "1", - "other_coin": "PIZZA", - "started_at": 1561529842 - }, - "maker_coin": "BEER", - "maker_amount": "1", - "taker_coin": "PIZZA", - "taker_amount": "1", - "gui": null, - "mm_version": "unknown", - "success_events": [ - "Started", - "Negotiated", - "TakerFeeValidated", - "MakerPaymentSent", - "TakerPaymentReceived", - "TakerPaymentWaitConfirmStarted", - "TakerPaymentValidatedAndConfirmed", - "TakerPaymentSpent", - "TakerPaymentSpendConfirmStarted", - "TakerPaymentSpendConfirmed", - "Finished" - ], - "type": "Maker", - "uuid": "6bf6e313-e610-4a9a-ba8c-57fc34a124aa", - "my_order_uuid": "3447b727-fe93-4357-8e5a-8cf2699b7e86" - }, - { - "error_events": [ - "StartFailed", - "NegotiateFailed", - "TakerFeeSendFailed", - "MakerPaymentValidateFailed", - "MakerPaymentWaitConfirmFailed", - "TakerPaymentTransactionFailed", - "TakerPaymentWaitConfirmFailed", - "TakerPaymentDataSendFailed", - "TakerPaymentWaitForSpendFailed", - "MakerPaymentSpendFailed", - "TakerPaymentWaitRefundStarted", - "TakerPaymentRefunded", - "TakerPaymentRefundFailed" - ], - "events": [ - { - "event": { - "data": { - "lock_duration": 31200, - "maker": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12", - "maker_amount": "0.01", - "maker_coin": "BEER", - "maker_coin_start_block": 154187, - "maker_payment_confirmations": 1, - "maker_payment_wait": 1561492367, - "my_persistent_pub": "02031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3", - "started_at": 1561481967, - "taker_amount": "0.01", - "taker_coin": "BCH", - "taker_coin_start_block": 588576, - "taker_payment_confirmations": 1, - "taker_payment_lock": 1561513167, - "uuid": "491df802-43c3-4c73-85ef-1c4c49315ac6" - }, - "type": "Started" - }, - "timestamp": 1561481968393 - }, - { - "event": { - "data": { - "maker_payment_locktime": 1561544367, - "maker_pubkey": "02631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640", - "secret_hash": "ba5128bcca5a2f7d2310054fb8ec51b80f352ef3" - }, - "type": "Negotiated" - }, - "timestamp": 1561482029079 - }, - { - "event": { - "data": { - "tx_hash": "9dd7c0c8124315d7884fb0c7bf8dbfd3f3bd185c62a2ee42dfbc1e3b74f21a0e", - "tx_hex": "0100000001f1beda7feba9fa5c52aa38027587db50b6428bbbcc053cd4ab17461fb00b89d1000000006a473044022004ad0330210e20dea416c3ff442e50dc59970c5d1a8b4d0a7d5cc61a2edc701602204459e1ee6774f1ba8258322fff72e1e1acddeb7aed2f75657458aa3deecc9465412102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0207050000000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac64b61700000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac2d53125d" - }, - "type": "TakerFeeSent" - }, - "timestamp": 1561482032294 - }, - { - "event": { - "data": { - "tx_hash": "ba36c890785e3e9d4b853310ad4d79ce8175e7c4184a398128b37339321672f4", - "tx_hex": "0400008085202f890197f703d245127e5b88471791f2820d29152046f4be133907afa8ac5542911190000000006b48304502210090e1c52aa2eba12b7c71fceab83b77f1456830a3dee1b956a831ecee5b5b353602205353a48c0129eae44b7c06a1f1651b9ceb8642374a1d5224a1e907240a978ad2012102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ffffffff0240420f000000000017a914192f34528c6c8cd11eefebec27f195f3894eb11187f096e605000000001976a91464ae8510aac9546d5e7704e31ce177451386455588ac4353125d000000000000000000000000000000" - }, - "type": "MakerPaymentReceived" - }, - "timestamp": 1561482073479 - }, - { - "event": { - "type": "MakerPaymentWaitConfirmStarted" - }, - "timestamp": 1561482073482 - }, - { - "event": { - "type": "MakerPaymentValidatedAndConfirmed" - }, - "timestamp": 1561482074296 - }, - { - "event": { - "data": { - "tx_hash": "bc98def88d93c270ae3cdb8a098d1b939ca499bf98f7a22b97be36bca13cdbc7", - "tx_hex": "01000000010e1af2743b1ebcdf42eea2625c18bdf3d3bf8dbfc7b04f88d7154312c8c0d79d010000006a4730440220030266d6d6435a4772cce2cebd91b6d4afffb920e23e9bc761434f105349cda002202335a050e2f28e4ca28862868141d3d7b553f3d30bceb83724ad70a32d04b0bd412102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ffffffff0240420f000000000017a9140094798ed4100852f10a9ad85990f19b364f4c2d873c700800000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac5a53125d" - }, - "type": "TakerPaymentSent" - }, - "timestamp": 1561482078908 - }, - { - "event": { - "data": { - "secret": "66ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3", - "transaction": { - "tx_hash": "eec643315d4495aa5feb5062344fe2474223dc0f231b610afd336f908ae99ebc", - "tx_hex": "0100000001c7db3ca1bc36be972ba2f798bf99a49c931b8d098adb3cae70c2938df8de98bc00000000d747304402202e344f8c61f2f49f4d620d687d02448cfba631a8ce8c0f8ee774da177230a75902201f4a175e7fa40f26896f522b5c51c7c0485e0ad18d3221c885e8b96b52ed1cab412066ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3004c6b6304cfcc125db1752102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac6782012088a914ba5128bcca5a2f7d2310054fb8ec51b80f352ef3882102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac68ffffffff01583e0f00000000001976a91464ae8510aac9546d5e7704e31ce177451386455588acfd49125d" - } - }, - "type": "TakerPaymentSpent" - }, - "timestamp": 1561483355081 - }, - { - "event": { - "data": { - "tx_hash": "858f07d0a4e74318497a6e3ff4d7b68b60ad21b5c8e90b9b485f0ddaed71d0dc", - "tx_hex": "0400008085202f8901f47216323973b32881394a18c4e77581ce794dad1033854b9d3e5e7890c836ba00000000d8483045022100847a65faed4bea33c5cbccff2bee7c1292871a3b130bd2f23e696bd80c07365f02202039ea02b4463afd4f1e2b20b348d64b40aaea165f8dfb483293e2b368d536fe012066ed6c24bbb4892634eac4ce1e1ad0627d6379da4443b8d656b64d49ef2aa7a3004c6b6304af46135db1752102631dcf1d4b1b693aa8c2751afc68e4794b1e5996566cfc701a663f8b7bbbe640ac6782012088a914ba5128bcca5a2f7d2310054fb8ec51b80f352ef3882102031d4256c4bc9f99ac88bf3dba21773132281f65f9bf23a59928bce08961e2f3ac68ffffffff01583e0f00000000001976a91405aab5342166f8594baf17a7d9bef5d56744332788ac4b4a125d000000000000000000000000000000" - }, - "type": "MakerPaymentSpent" - }, - "timestamp": 1561483358319 - }, - { - "event": { - "type": "Finished" - }, - "timestamp": 1561483358321 - } - ], - "my_info": { - "my_amount": "0.01", - "my_coin": "BCH", - "other_amount": "0.01", - "other_coin": "BEER", - "started_at": 1561481967 - }, - "maker_coin": "BEER", - "maker_amount": "0.01", - "taker_coin": "BCH", - "taker_amount": "0.01", - "gui": null, - "mm_version": "unknown", - "success_events": [ - "Started", - "Negotiated", - "TakerFeeSent", - "MakerPaymentReceived", - "MakerPaymentWaitConfirmStarted", - "MakerPaymentValidatedAndConfirmed", - "TakerPaymentSent", - "TakerPaymentSpent", - "MakerPaymentSpent", - "Finished" - ], - "type": "Taker", - "uuid": "491df802-43c3-4c73-85ef-1c4c49315ac6" - } - ] - } - } - ``` - - Response (error) - - ```json - { - "error": "lp_swap:1454] from_uuid e299c6ece7a7ddc42444eda64d46b163eaa992da65ce6de24eb812d715184e41 swap is not found" - } - ``` - From 1004ff2ab119ac0a6bd9ddfb7ba15f0aae982084 Mon Sep 17 00:00:00 2001 From: gcharang <21151592+gcharang@users.noreply.github.com> Date: Mon, 9 Sep 2024 17:04:26 +0530 Subject: [PATCH 10/29] fix commas in jsons --- .../api/v20-dev/start_gas_fee_estimator/index.mdx | 14 ++++++-------- .../api/v20-dev/stop_gas_fee_estimator/index.mdx | 12 ++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx index a019c512..687536ce 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx @@ -4,12 +4,11 @@ export const description = # start\_gas\_fee\_estimator -The `start_gas_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "gas_fee_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). +The `start_gas_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "gas\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). - -| parameter | Type | Description | -| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | ```json @@ -18,7 +17,7 @@ The `start_gas_fee_estimator` method allows you to to start the gas priority fee "method": "start_gas_fee_estimator", "mmrpc": "2.0", "params": { - "coin": "ETH", + "coin": "ETH" } } ``` @@ -31,8 +30,7 @@ The `start_gas_fee_estimator` method allows you to to start the gas priority fee "mmrpc": "2.0", "result": { "result": "Success" - } + }, "id": null } ``` - diff --git a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx index c8797b64..e704eafb 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx @@ -6,9 +6,9 @@ export const description = The `stop_gas_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. -| parameter | Type | Description | -| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | ```json @@ -17,7 +17,7 @@ The `stop_gas_fee_estimator` method allows you to to stop the gas priority fee e "method": "stop_gas_fee_estimator", "mmrpc": "2.0", "params": { - "coin": "ETH", + "coin": "ETH" } } ``` @@ -30,8 +30,8 @@ The `stop_gas_fee_estimator` method allows you to to stop the gas priority fee e "mmrpc": "2.0", "result": { "result": "Success" - } + }, "id": null } -``` \ No newline at end of file +``` From 6694a88dc3adbbf05b2d73a2226e1cff48f0c601 Mon Sep 17 00:00:00 2001 From: smk762 Date: Fri, 13 Sep 2024 16:09:11 +0800 Subject: [PATCH 11/29] gas estimate methods renamed --- filepathSlugs.json | 4 ++-- src/data/sidebar.json | 8 ++++---- src/pages/komodo-defi-framework/api/index.mdx | 4 ++-- .../v20-dev/get_eth_estimated_fee_per_gas/index.mdx | 4 ++-- .../api/v20-dev/start_gas_fee_estimator/index.mdx | 12 ++++++------ .../api/v20-dev/stop_gas_fee_estimator/index.mdx | 12 ++++++------ 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/filepathSlugs.json b/filepathSlugs.json index c2f8453d..f4abf588 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -3391,11 +3391,11 @@ "transport-error-unable-to-estimate-gas", "not-enough-nfts-amount-trying-to-send-more-nfts-than-you-have" ], - "src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx": [ + "src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx": [ "start-gas-fee-estimator", "response" ], - "src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx": [ + "src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx": [ "stop-gas-fee-estimator", "response" ], diff --git a/src/data/sidebar.json b/src/data/sidebar.json index e7e2de7a..fad3da85 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -449,12 +449,12 @@ "href": "/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/" }, { - "title": "stop_gas_fee_estimator", - "href": "/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/" + "title": "stop_eth_fee_estimator", + "href": "/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/" }, { - "title": "start_gas_fee_estimator", - "href": "/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/" + "title": "start_eth_fee_estimator", + "href": "/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/" }, { "title": "get_current_mtp", diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 35acf3f7..36c10ce8 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -96,11 +96,11 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | | | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | | | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | | [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/#start-gas-fee-estimator) | +| | | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/#start-gas-fee-estimator) | | | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | | | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | | | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | | [stop\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/#stop-gas-fee-estimator) | +| | | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/#stop-gas-fee-estimator) | | | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | | | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | | | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx index 24999696..54a0f079 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx @@ -1,10 +1,10 @@ export const title = "Komodo DeFi Framework Method: Get ETH Estimated Fee per Gas"; export const description = - "The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_gas_fee_estimator') for an active coin of your choice."; + "The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_eth_fee_estimator') for an active coin of your choice."; # get\_eth\_estimated\_fee\_per\_gas -The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_gas\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/) method. +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/) method. | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------------- | diff --git a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx index 687536ce..c4ebb2e8 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx @@ -1,20 +1,20 @@ -export const title = "Komodo DeFi Framework Method: Start Gas Fee Estimator"; +export const title = "Komodo DeFi Framework Method: Start ETH Fee Estimator"; export const description = - "The start_gas_fee_estimator method allows you to start the gas priority fee estimator loop for an active coin of your choice."; + "The start_eth_fee_estimator method allows you to start the gas priority fee estimator loop for an active coin of your choice."; -# start\_gas\_fee\_estimator +# start\_eth\_fee\_estimator -The `start_gas_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "gas\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). +The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "eth\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------------- | | coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - + ```json { "userpass": "RPC_UserP@SSW0RD", - "method": "start_gas_fee_estimator", + "method": "start_eth_fee_estimator", "mmrpc": "2.0", "params": { "coin": "ETH" diff --git a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx index e704eafb..5db9f905 100644 --- a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx @@ -1,20 +1,20 @@ -export const title = "Komodo DeFi Framework Method: Stop Gas Fee Estimator"; +export const title = "Komodo DeFi Framework Method: Stop ETH Fee Estimator"; export const description = - "The start_gas_fee_estimator method allows you to stop the gas priority fee estimator loop for an active coin of your choice."; + "The start_eth_fee_estimator method allows you to stop the gas priority fee estimator loop for an active coin of your choice."; -# stop\_gas\_fee\_estimator +# stop\_eth\_fee\_estimator -The `stop_gas_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. +The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------------- | | coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - + ```json { "userpass": "RPC_UserP@SSW0RD", - "method": "stop_gas_fee_estimator", + "method": "stop_eth_fee_estimator", "mmrpc": "2.0", "params": { "coin": "ETH" From f38819efb7671ce71f92752c9c40e61fc62b8f55 Mon Sep 17 00:00:00 2001 From: smk762 Date: Wed, 16 Oct 2024 23:13:57 +0800 Subject: [PATCH 12/29] rename methods, fix lint errors --- filepathSlugs.json | 4 ++-- src/data/sidebar.json | 8 ++++---- src/pages/komodo-defi-framework/api/index.mdx | 4 ++-- .../index.mdx | 0 .../index.mdx | 0 5 files changed, 8 insertions(+), 8 deletions(-) rename src/pages/komodo-defi-framework/api/v20-dev/{start_gas_fee_estimator => start_eth_fee_estimator}/index.mdx (100%) rename src/pages/komodo-defi-framework/api/v20-dev/{stop_gas_fee_estimator => stop_eth_fee_estimator}/index.mdx (100%) diff --git a/filepathSlugs.json b/filepathSlugs.json index 627117bd..0a51f8b7 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -3404,11 +3404,11 @@ "not-enough-nfts-amount-trying-to-send-more-nfts-than-you-have" ], "src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx": [ - "start-gas-fee-estimator", + "start-eth-fee-estimator", "response" ], "src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx": [ - "stop-gas-fee-estimator", + "stop-eth-fee-estimator", "response" ], "src/pages/komodo-defi-framework/api/v20-dev/task_account_balance/index.mdx": [ diff --git a/src/data/sidebar.json b/src/data/sidebar.json index c2f6ae91..a2bdc225 100644 --- a/src/data/sidebar.json +++ b/src/data/sidebar.json @@ -517,14 +517,14 @@ "title": "get_eth_estimated_fee_per_gas", "href": "/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/" }, - { - "title": "stop_eth_fee_estimator", - "href": "/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/" - }, { "title": "start_eth_fee_estimator", "href": "/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/" }, + { + "title": "stop_eth_fee_estimator", + "href": "/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/" + }, { "title": "get_current_mtp", "href": "/komodo-defi-framework/api/v20-dev/get_current_mtp/" diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 0154f79e..e723bfb7 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -96,11 +96,11 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | | | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | | | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/#start-eth-fee-estimator) | +| | | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/#start-eth-fee-estimator) | | | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | | | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | | | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/#stop-eth-fee-estimator) | +| | | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/#stop-eth-fee-estimator) | | | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | | | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | | | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | diff --git a/src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx similarity index 100% rename from src/pages/komodo-defi-framework/api/v20-dev/start_gas_fee_estimator/index.mdx rename to src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx similarity index 100% rename from src/pages/komodo-defi-framework/api/v20-dev/stop_gas_fee_estimator/index.mdx rename to src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx From bf75b9988e0bf6dfb5dc303f1348b845cdd03bda Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 11:02:02 +0800 Subject: [PATCH 13/29] Add notes from KDF PR 2051 --- filepathSlugs.json | 3 +- .../api/common_structures/wallet/index.mdx | 59 ++++++++++++++++--- src/pages/komodo-defi-framework/api/index.mdx | 1 + 3 files changed, 54 insertions(+), 9 deletions(-) diff --git a/filepathSlugs.json b/filepathSlugs.json index 407f154a..3b733155 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2158,7 +2158,8 @@ "src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx": [ "wallet-operations-structures", "raw-tx-info", - "input-txns" + "input-txns", + "pay-for-gas" ], "src/pages/komodo-defi-framework/api/index.mdx": [ "komodo-de-fi-framework-rpc-methods" diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index a4ab83a2..111a9e87 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -7,13 +7,14 @@ export const description = "Starting with version beta-2.1.3434, the Komodo DeFi The `RawTxInfo` object includes the following items: -| Parameter | Type | Description | -| ---------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| tx\_hex | string | UTXO only. The raw unsigned hex of a proposed transaction. | -| prev\_txns | list | UTXO only. A list of standard [InputTxns objects](/komodo-defi-framework/api/common_structures/wallet/#input-txns). | -| to | string | ETH/EVM only. A destination address to send the funds to. | -| value | string | ETH/EVM only. The amount of funds to be sent as a string with a `0x` prefix, in [wei](https://ethereum.stackexchange.com/questions/253/the-ether-denominations-are-called-finney-szabo-and-wei-what-who-are-these-na) units. | -| gas\_limit | string | ETH/EVM only. The maximum gas to be used for sending the transaction, in [gwei](https://eth-converter.com/) units. | +| Parameter | Type | Description | +| ------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| tx\_hex | string | UTXO only. The raw unsigned hex of a proposed transaction. | +| prev\_txns | list | UTXO only. A list of standard [InputTxns objects](/komodo-defi-framework/api/common_structures/wallet/#input-txns). | +| to | string | ETH/EVM only. A destination address to send the funds to. | +| value | string | ETH/EVM only. The amount of funds to be sent as a string with a `0x` prefix, in [wei](https://ethereum.stackexchange.com/questions/253/the-ether-denominations-are-called-finney-szabo-and-wei-what-who-are-these-na) units. | +| gas\_limit | string | ETH/EVM only. The maximum gas to be used for sending the transaction, in [gwei](https://eth-converter.com/) units. | +| pay\_for\_gas | object | Optional, ETH/EVM only. Used for EIP-1559 fee policy config. A standard [PayForGas](/komodo-defi-framework/api/common_structures/wallet/#pay-for-gas) object. | TODO: Confirm units used in ETH/EVM transactions. @@ -50,7 +51,7 @@ The `InputTxns` object includes the following items: | index | integer | The \[output index([https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for](https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for))] of this unspent transaction output. | | script\_pub\_key | string | The [scriptpubkey](https://learnmeabitcoin.com/technical/scriptPubKey) of this unspent transaction output. | | amount | float | The value of this unspent transaction output. | -| amount | | | + ```json @@ -62,3 +63,45 @@ The `InputTxns` object includes the following items: } ``` + +### PayForGas + +The `PayForGas` object includes the following items: + +| Parameter | Type | Description | +| ---------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| tx\_type | string | ERC20-like coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | +| max\_fee\_per\_gas | decimal | Only used if tx_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | +| max\_priority\_fee\_per\_gas | decimal | Only used if tx_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | +| gas\_price | float | Only used if tx_type is `Legacy`. The gas price for the transaction. | + + +[Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an [EVM network(https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/)], refer to (https://chainlist.org/)[https://chainlist.org/]. There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. + + By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providors [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). + + Use the [start_eth_fee_estimator](/komodo-defi-framework/api/v20/swaps/start_eth_fee_estimator) method to begin tracking the fee market for a coin (and its tokens). You can stop tracking the fee market with [stop_eth_fee_estimator](/komodo-defi-framework/api/v20/swaps/stop_eth_fee_estimator). + + To set or view the current swap transaction fee policy, use the [get_swap_transaction_fee_policy](/komodo-defi-framework/api/v20/swaps/get_swap_transaction_fee_policy) and [set_swap_transaction_fee_policy](/komodo-defi-framework/api/v20/swaps/set_swap_transaction_fee_policy) methods. + + For more information about EIP1559, refer to [https://www.blocknative.com/blog/eip-1559-fees](https://www.blocknative.com/blog/eip-1559-fees) + + + + ```json + { + "tx_type": "Legacy", + "gas_price": "1234.567" + } + ``` + + + + ```json + { + "tx_type": "Eip1559", + "max_fee_per_gas": "1234.567", + "max_priority_fee_per_gas": "1.2" + } + ``` + diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index a9255fb0..742f3c10 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -55,6 +55,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: | [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | | | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | | [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | | [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | | [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | | | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | From fc38f951927747e19715d29697229d31ae97eb24 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 14:02:45 +0800 Subject: [PATCH 14/29] add pay_for_gas object --- .../api/common_structures/wallet/index.mdx | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 111a9e87..46fb933f 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -14,7 +14,7 @@ The `RawTxInfo` object includes the following items: | to | string | ETH/EVM only. A destination address to send the funds to. | | value | string | ETH/EVM only. The amount of funds to be sent as a string with a `0x` prefix, in [wei](https://ethereum.stackexchange.com/questions/253/the-ether-denominations-are-called-finney-szabo-and-wei-what-who-are-these-na) units. | | gas\_limit | string | ETH/EVM only. The maximum gas to be used for sending the transaction, in [gwei](https://eth-converter.com/) units. | -| pay\_for\_gas | object | Optional, ETH/EVM only. Used for EIP-1559 fee policy config. A standard [PayForGas](/komodo-defi-framework/api/common_structures/wallet/#pay-for-gas) object. | +| pay\_for\_gas | object | Optional, ETH/EVM only. Used for EIP-1559 fee policy config. A standard [PayForGas](/komodo-defi-framework/api/common_structures/wallet/#pay-for-gas) object. | TODO: Confirm units used in ETH/EVM transactions. @@ -52,7 +52,6 @@ The `InputTxns` object includes the following items: | script\_pub\_key | string | The [scriptpubkey](https://learnmeabitcoin.com/technical/scriptPubKey) of this unspent transaction output. | | amount | float | The value of this unspent transaction output. | - ```json { @@ -68,21 +67,21 @@ The `InputTxns` object includes the following items: The `PayForGas` object includes the following items: -| Parameter | Type | Description | -| ---------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| tx\_type | string | ERC20-like coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | -| max\_fee\_per\_gas | decimal | Only used if tx_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | -| max\_priority\_fee\_per\_gas | decimal | Only used if tx_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | -| gas\_price | float | Only used if tx_type is `Legacy`. The gas price for the transaction. | +| Parameter | Type | Description | +| ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| tx\_type | string | ERC20-like coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | +| max\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | +| max\_priority\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | +| gas\_price | float | Only used if tx\_type is `Legacy`. The gas price for the transaction. | -[Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an [EVM network(https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/)], refer to (https://chainlist.org/)[https://chainlist.org/]. There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. + [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to ([https://chainlist.org/)\[https://chainlist.org/](https://chainlist.org/\)\[https://chainlist.org/)]. There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providors [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). - Use the [start_eth_fee_estimator](/komodo-defi-framework/api/v20/swaps/start_eth_fee_estimator) method to begin tracking the fee market for a coin (and its tokens). You can stop tracking the fee market with [stop_eth_fee_estimator](/komodo-defi-framework/api/v20/swaps/stop_eth_fee_estimator). + Use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/) method to begin tracking the fee market for a coin (and its tokens). You can stop tracking the fee market with [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/). - To set or view the current swap transaction fee policy, use the [get_swap_transaction_fee_policy](/komodo-defi-framework/api/v20/swaps/get_swap_transaction_fee_policy) and [set_swap_transaction_fee_policy](/komodo-defi-framework/api/v20/swaps/set_swap_transaction_fee_policy) methods. + To set or view the current swap transaction fee policy, use the [get\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/) and [set\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/) methods. For more information about EIP1559, refer to [https://www.blocknative.com/blog/eip-1559-fees](https://www.blocknative.com/blog/eip-1559-fees) From fd529a4a15a1780f8f77218910cdc8ef11a2a6a9 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 14:03:31 +0800 Subject: [PATCH 15/29] move fee methods into new folder --- .../get_eth_estimated_fee_per_gas/index.mdx | 61 +++++++++++++++++++ .../start_eth_fee_estimator/index.mdx | 36 +++++++++++ .../stop_eth_fee_estimator/index.mdx | 37 +++++++++++ 3 files changed, 134 insertions(+) create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/index.mdx create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/index.mdx new file mode 100644 index 00000000..10e37b87 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/index.mdx @@ -0,0 +1,61 @@ +export const title = "Komodo DeFi Framework Method: Get ETH Estimated Fee per Gas"; +export const description = + "The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_eth_fee_estimator') for an active coin of your choice."; + +# get\_eth\_estimated\_fee\_per\_gas + +The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/) method. + +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + +## Request + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "get_eth_estimated_fee_per_gas", + "mmrpc": "2.0", + "params": { + "coin": "ETH" + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "base_fee": "10.890879158", + "low": { + "max_priority_fee_per_gas": "0.1101", + "max_fee_per_gas": "11.949818698", + "min_wait_time": null, + "max_wait_time": null + }, + "medium": { + "max_priority_fee_per_gas": "1.258084291", + "max_fee_per_gas": "13.905056537", + "min_wait_time": null, + "max_wait_time": null + }, + "high": { + "max_priority_fee_per_gas": "2.495532249", + "max_fee_per_gas": "15.949758042", + "min_wait_time": null, + "max_wait_time": null + }, + "source": "simple", + "base_fee_trend": "", + "priority_fee_trend": "", + "units": "Gwei" + }, + "id": null +} + +``` diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx new file mode 100644 index 00000000..c4ebb2e8 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx @@ -0,0 +1,36 @@ +export const title = "Komodo DeFi Framework Method: Start ETH Fee Estimator"; +export const description = + "The start_eth_fee_estimator method allows you to start the gas priority fee estimator loop for an active coin of your choice."; + +# start\_eth\_fee\_estimator + +The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "eth\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). + +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "start_eth_fee_estimator", + "mmrpc": "2.0", + "params": { + "coin": "ETH" + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "result": "Success" + }, + "id": null +} +``` diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx new file mode 100644 index 00000000..5db9f905 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx @@ -0,0 +1,37 @@ +export const title = "Komodo DeFi Framework Method: Stop ETH Fee Estimator"; +export const description = + "The start_eth_fee_estimator method allows you to stop the gas priority fee estimator loop for an active coin of your choice."; + +# stop\_eth\_fee\_estimator + +The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. + +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "stop_eth_fee_estimator", + "mmrpc": "2.0", + "params": { + "coin": "ETH" + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": { + "result": "Success" + }, + "id": null +} + +``` From 87a11d9c8fc6ca9de379827e9c2b1589f15b5c92 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 14:03:46 +0800 Subject: [PATCH 16/29] rm old folder files --- .../get_eth_estimated_fee_per_gas/index.mdx | 61 ------------------- .../v20-dev/start_eth_fee_estimator/index.mdx | 36 ----------- .../v20-dev/stop_eth_fee_estimator/index.mdx | 37 ----------- 3 files changed, 134 deletions(-) delete mode 100644 src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx delete mode 100644 src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx delete mode 100644 src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx deleted file mode 100644 index 54a0f079..00000000 --- a/src/pages/komodo-defi-framework/api/v20-dev/get_eth_estimated_fee_per_gas/index.mdx +++ /dev/null @@ -1,61 +0,0 @@ -export const title = "Komodo DeFi Framework Method: Get ETH Estimated Fee per Gas"; -export const description = - "The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_eth_fee_estimator') for an active coin of your choice."; - -# get\_eth\_estimated\_fee\_per\_gas - -The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/) method. - -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - -## Request - - - ```json - { - "userpass": "RPC_UserP@SSW0RD", - "method": "get_eth_estimated_fee_per_gas", - "mmrpc": "2.0", - "params": { - "coin": "ETH" - } - } - ``` - - -## Response - -```json -{ - "mmrpc": "2.0", - "result": { - "base_fee": "10.890879158", - "low": { - "max_priority_fee_per_gas": "0.1101", - "max_fee_per_gas": "11.949818698", - "min_wait_time": null, - "max_wait_time": null - }, - "medium": { - "max_priority_fee_per_gas": "1.258084291", - "max_fee_per_gas": "13.905056537", - "min_wait_time": null, - "max_wait_time": null - }, - "high": { - "max_priority_fee_per_gas": "2.495532249", - "max_fee_per_gas": "15.949758042", - "min_wait_time": null, - "max_wait_time": null - }, - "source": "simple", - "base_fee_trend": "", - "priority_fee_trend": "", - "units": "Gwei" - }, - "id": null -} - -``` diff --git a/src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx deleted file mode 100644 index c4ebb2e8..00000000 --- a/src/pages/komodo-defi-framework/api/v20-dev/start_eth_fee_estimator/index.mdx +++ /dev/null @@ -1,36 +0,0 @@ -export const title = "Komodo DeFi Framework Method: Start ETH Fee Estimator"; -export const description = - "The start_eth_fee_estimator method allows you to start the gas priority fee estimator loop for an active coin of your choice."; - -# start\_eth\_fee\_estimator - -The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "eth\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). - -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - - - ```json - { - "userpass": "RPC_UserP@SSW0RD", - "method": "start_eth_fee_estimator", - "mmrpc": "2.0", - "params": { - "coin": "ETH" - } - } - ``` - - -## Response - -```json -{ - "mmrpc": "2.0", - "result": { - "result": "Success" - }, - "id": null -} -``` diff --git a/src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx deleted file mode 100644 index 5db9f905..00000000 --- a/src/pages/komodo-defi-framework/api/v20-dev/stop_eth_fee_estimator/index.mdx +++ /dev/null @@ -1,37 +0,0 @@ -export const title = "Komodo DeFi Framework Method: Stop ETH Fee Estimator"; -export const description = - "The start_eth_fee_estimator method allows you to stop the gas priority fee estimator loop for an active coin of your choice."; - -# stop\_eth\_fee\_estimator - -The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. - -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | - - - ```json - { - "userpass": "RPC_UserP@SSW0RD", - "method": "stop_eth_fee_estimator", - "mmrpc": "2.0", - "params": { - "coin": "ETH" - } - } - ``` - - -## Response - -```json -{ - "mmrpc": "2.0", - "result": { - "result": "Success" - }, - "id": null -} - -``` From bce576aaeb227f9e4cd263cf2e67d3449274209c Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 15:37:05 +0800 Subject: [PATCH 17/29] adds `gas_api` param to MM2.json config doc --- .../setup/configure-mm2-json/index.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx index 7fdbfb56..eded4d08 100644 --- a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx +++ b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx @@ -26,6 +26,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas | i\_am\_seed | boolean | Optional, defaults to `false`. Runs Komodo DeFi Framework API as a seed node mode (acting as a relay for Komodo DeFi Framework API clients). Use of this mode is not reccomended on the main network (8762) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other Komodo DeFi Framework API clients using the same netID. | | seednodes | list of strings | Optional. If operating on a test or private netID, the IP address of at least one seed node is required (on the main network, these are already hardcoded) | | enable\_hd | boolean | Optional. If `true`, the Komodo DeFi-API will work in only the [HD mode](/komodo-defi-framework/api/v20-dev/hd_wallets_overview/), and coins will need to have a coin derivation path entry in the `coins` file for activation. Defaults to `false`. | +| gas\_api | object | Optional, Used for [EVM gas fee management](/komodo-defi-framework/api/v20/fee_management/). Contains fields for `provider` and `url` to source third party fee market information. | | message\_service\_cfg | object | Optional. This data is used to configure [Telegram](https://telegram.org/) messenger alerts for swap events when running using the [makerbot functionality](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/). For more information check out the [telegram alerts guide](/komodo-defi-framework/api/v20/telegram_alerts/) | | metrics | integer | Optional, defaults to `300`. The interval in seconds which metrics are logged. Set to `0` to disable metrics. | | prometheusport | integer | Optional. Only used if you are logging metrics in [Prometheus](https://prometheus.io/) and [Grafana](https://grafana.com/). For more information check out the [Komodo DeFi metrics guide](/komodo-defi-framework/tutorials/api-metrics/) | @@ -59,6 +60,20 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas "dbdir": "/path/to/DB/folder" } ``` +#### Example (using gas api): + +```json +{ + "gui": "DEVDOCS_CLI", + "netid": 8762, + "rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd", + "passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU", + "gas_api": { + "provider": "infura", + "url": https://your-provider-url.com + } +} +``` #### Example (WSS with certificates): From ec34e41dd9c8fcd90270dd8de8172cf7cf19fcf3 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 16:58:22 +0800 Subject: [PATCH 18/29] add gas_fee_estimator field to listing guide --- .../tutorials/listing-a-new-coin/index.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 44d6d459..562fc7f1 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 @@ -60,7 +60,7 @@ sendrawtransaction | txfee | integer | The default transaction fee (in satoshi). Komodo DeFi Framework uses this as the default transaction fee value when making atomic swap transactions. If set to `0`, Komodo DeFi Framework will use a dynamic fee based on output from `estimatesmartfee`. | | overwintered | integer | Must be `1` if Overwinter upgrade was activated for the coin. Defaults to `0`. | | taddr | integer | Optional. Is only relevant for coins that forked the Zcash protocol and have both transparent addresses and z-addresses. The value to be set for this key can be found from the file `src/chainparams.cpp` of the coin's source code and it is the first value present in both `base58Prefixes[PUBKEY_ADDRESS]` and `base58Prefixes[SCRIPT_ADDRESS]`. But it has to be converted to decimal from HEX. So if `base58Prefixes[PUBKEY_ADDRESS]` = `{0x1C,0xB8}` , the `taddr` is `0x1C` coverted to decimal. As 0x1C in HEX = 28 in decimal, the entry in the json would be `"taddr" : 28` | -| force\_min\_relay\_fee | boolean | If `true` for coins with dynamic fees, when a new transaction is generated, Komodo DeFi Framework will check whether the total fee set (`sat * tx size`) is lower than relay fee and will use the relay fee instead. Defaults to `false` | +| force\_min\_relay\_fee | boolean | If `true` for coins with dynamic fees, when a new transaction is generated, Komodo DeFi Framework will check whether the total fee set (`sat * tx size`) is lower than relay fee and will use the relay fee instead. Defaults to `false`. | | mtp\_block\_count | integer | Optional. Number of blocks to be used for the calculation of `median time past`. Must be greater than `0`. Default value is `11`. While this parameter is applicable only in the case of KMD reward calculation for now, it will be used for calculating locktimes to be set for the atomic swap refund transactions. | | estimate\_fee\_mode | string | Sets the fee mode for the `estimatesmartfee` call. Supported values are: `ECONOMICAL`,`CONSERVATIVE`, `UNSET`. Please note that some coins may not support some of these modes. Makes no effect for coins that do not have the `estimatesmartfee` RPC. | | address\_format | object | Optional. Overwrites the address format from coins file, if set. A standard [AddressFormat](/komodo-defi-framework/api/common_structures/#address-format) object. | @@ -69,6 +69,7 @@ sendrawtransaction | version\_group\_id | integer | Optional, used by Zcash (and its forks') transactions. | | consensus\_branch\_id | integer | Optional, used in Zcash (and its forks') transactions' signature hash calculation. | | mature\_confirmations | integer | Number of blockchain confirmations required for coinbase output to be considered mature (spendable). | +| gas\_fee\_estimator | string | Optional. Set as `provider` to source fee market information via [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). Set to `simple` to source fee information from native nodes on the network. Refer to the [EVM fee mManagement](/komodo-defi-framework/api/v20/fee_management/) section for more information. | ### UTXO coin example @@ -168,6 +169,7 @@ The token's contract **must** have `approve` and `transferFrom` methods. Additio "contract_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" } }, + "gas_fee_estimator": "provider", "gas_limit": { "eth_send_coins": 21000, "eth_send_erc20": 65000, From 7ae819df4b32ac5d777f0ea249c236efd75c6f8e Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 17:00:06 +0800 Subject: [PATCH 19/29] add min_wait_time and max_wait_time for gas fee estimation --- .../api/common_structures/wallet/index.mdx | 6 ++++-- .../setup/configure-mm2-json/index.mdx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 46fb933f..f5a16f3b 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -70,12 +70,14 @@ The `PayForGas` object includes the following items: | Parameter | Type | Description | | ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | tx\_type | string | ERC20-like coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | +| gas\_price | decimal | Values are in Gwei. The base gas price for the transaction. | | max\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | | max\_priority\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | -| gas\_price | float | Only used if tx\_type is `Legacy`. The gas price for the transaction. | +| min\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated minimum transaction wait time in mempool (in ms) for this priority level. | +| max\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated mxnimum transaction wait time in mempool (in ms) for this priority level. | - [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to ([https://chainlist.org/)\[https://chainlist.org/](https://chainlist.org/\)\[https://chainlist.org/)]. There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. + [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to [chainlist.org](https://chainlist.org). There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providors [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). diff --git a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx index eded4d08..ee3f1456 100644 --- a/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx +++ b/src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx @@ -26,7 +26,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas | i\_am\_seed | boolean | Optional, defaults to `false`. Runs Komodo DeFi Framework API as a seed node mode (acting as a relay for Komodo DeFi Framework API clients). Use of this mode is not reccomended on the main network (8762) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other Komodo DeFi Framework API clients using the same netID. | | seednodes | list of strings | Optional. If operating on a test or private netID, the IP address of at least one seed node is required (on the main network, these are already hardcoded) | | enable\_hd | boolean | Optional. If `true`, the Komodo DeFi-API will work in only the [HD mode](/komodo-defi-framework/api/v20-dev/hd_wallets_overview/), and coins will need to have a coin derivation path entry in the `coins` file for activation. Defaults to `false`. | -| gas\_api | object | Optional, Used for [EVM gas fee management](/komodo-defi-framework/api/v20/fee_management/). Contains fields for `provider` and `url` to source third party fee market information. | +| gas\_api | object | Optional, Used for [EVM gas fee management](/komodo-defi-framework/api/v20/fee_management/). Contains fields for `provider` and `url` to source third party fee market information. | | message\_service\_cfg | object | Optional. This data is used to configure [Telegram](https://telegram.org/) messenger alerts for swap events when running using the [makerbot functionality](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/). For more information check out the [telegram alerts guide](/komodo-defi-framework/api/v20/telegram_alerts/) | | metrics | integer | Optional, defaults to `300`. The interval in seconds which metrics are logged. Set to `0` to disable metrics. | | prometheusport | integer | Optional. Only used if you are logging metrics in [Prometheus](https://prometheus.io/) and [Grafana](https://grafana.com/). For more information check out the [Komodo DeFi metrics guide](/komodo-defi-framework/tutorials/api-metrics/) | @@ -60,6 +60,7 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas "dbdir": "/path/to/DB/folder" } ``` + #### Example (using gas api): ```json From 544ae2e8beafe9b844e39a87b26563adb7ea44b2 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 17:22:01 +0800 Subject: [PATCH 20/29] add start/stop eth fee estimator --- .../api/v20/fee_management/start_eth_fee_estimator/index.mdx | 4 ++-- .../api/v20/fee_management/stop_eth_fee_estimator/index.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx index c4ebb2e8..8cd5a2c6 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx @@ -4,11 +4,11 @@ export const description = # start\_eth\_fee\_estimator -The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to add the "eth\_fee\_estimator" parameter in the configurations of the coin you want to run the estimator for in your coins file (the possible values for the parameter are "provider" or "simple"). +The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to [configure your MM2.json and coins files](/komodo-defi-framework/api/v20/fee_management/#fee-management-configuration) with some extra parameters. | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | ```json diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx index 5db9f905..d8a33cb1 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx @@ -4,11 +4,11 @@ export const description = # stop\_eth\_fee\_estimator -The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. +The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator) method. | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | +| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | ```json From ef079fb7e39f6d84a555575a7ab3cb11813d5b55 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 20:01:16 +0800 Subject: [PATCH 21/29] add get/set fee policy methods --- .../get_swap_transaction_fee_policy/index.mdx | 37 ++++++++++++++++++ .../set_swap_transaction_fee_policy/index.mdx | 38 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx new file mode 100644 index 00000000..f5b8536f --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx @@ -0,0 +1,37 @@ +export const title = "Komodo DeFi Framework Method: Get Swap Transaction Fee Policy"; +export const description = + "The get_swap_transaction_fee_policy method allows you to get the current gas fees policy used when estimating swap transaction fees."; + +# get\_swap\_transaction\_fee\_policy + +The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees. + +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to view the fee policy for. | + +## Request + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "get_swap_transaction_fee_policy", + "mmrpc": "2.0", + "params": { + "coin": "ETH" + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": "High", + "id": null +} + +``` diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx new file mode 100644 index 00000000..d8472369 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx @@ -0,0 +1,38 @@ +export const title = "Komodo DeFi Framework Method: Set Swap Transaction Fee Policy"; +export const description = + "The set_swap_transaction_fee_policy method allows you to set the gas fee policy used when estimating swap transaction fees."; + +# set\_swap\_transaction\_fee\_policy + +The `set_swap_transaction_fee_policy` method allows you to set the gas fee policy used when estimating swap transaction fees. + +| parameter | Type | Description | +| --------------------- | ------ | --------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to set the fee policy for. | +| swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. | + +## Request + + + ```json + { + "userpass": "RPC_UserP@SSW0RD", + "method": "set_swap_transaction_fee_policy", + "mmrpc": "2.0", + "params": { + "coin": "ETH", + "swap_tx_fee_policy": "High" + } + } + ``` + + +## Response + +```json +{ + "mmrpc": "2.0", + "result": "High", + "id": null +} +``` From 006e39c1a9cfd790b8c7db19cf7ce8fc1f26f502 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 20:02:31 +0800 Subject: [PATCH 22/29] Add overview page for fee management --- .../api/v20/fee_management/index.mdx | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 src/pages/komodo-defi-framework/api/v20/fee_management/index.mdx diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/index.mdx new file mode 100644 index 00000000..42fbe0f0 --- /dev/null +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/index.mdx @@ -0,0 +1,89 @@ +export const title = "Komodo DeFi Framework Method: EVM Fee Management"; +export const description = + "This document describes all the available methods for the EVM Network Fee Management on the Komodo DeFi Framework."; + +# EVM Network Fee Management + +[Ethereum Improvement Proposal 1559 (EIP-1559)](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md) was introduced to enhance Ethereum's transaction fee structure, aiming to stabilize transaction costs and improve network efficiency. Implemented as part of the London Hard Fork in August 2021, EIP-1559 revamped the traditional auction-style gas fee model, replacing it with a base fee mechanism that adjusts dynamically based on network demand. This base fee is burned (removed from circulation), reducing ETH supply and introducing a deflationary effect, while an optional "tip" incentivizes miners. + +For decentralized finance (DeFi) software, EIP-1559 has provided more predictable transaction fees, improving user experience and enabling more efficient budgeting for gas costs across DeFi protocols. This update is instrumental in reducing fee volatility, encouraging broader adoption, and laying groundwork for Ethereum's scalability roadmap. + +The Komodo Defi Framework allows users to benefit from this improvement with cheaper fees on EMV networks like Ethereum and Polygon. + + + For more information about EIP1559, refer to [https://www.blocknative.com/blog/eip-1559-fees](https://www.blocknative.com/blog/eip-1559-fees) + + +## Fee Management Methods + +* Get estimated fee per gas for an EVM coin/token [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/). + +* Get swap transaction fee policy for an EVM coin/token [get\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/). + +* Set swap transaction fee policy for an EVM coin/token [set\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/). + +* Start tracking the fee market for an EVM coin/token [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/). + +* Stop tracking the fee market for an EVM coin/token [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/). + +## Fee Management Configuration + +There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. + +By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providers [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). + +### In the coins file + +Below is an example of the information required in EVM token configurations in your [`coins` file](/komodo-defi-framework/tutorials/listing-a-new-coin/#erc-20-token-example). + +```json +{ + "coin": "1INCH-BEP20", + "name": "1inch_bep20", + "fname": "1Inch", + "rpcport": 80, + "mm2": 1, + "chain_id": 56, + "avg_blocktime": 3, + "required_confirmations": 3, + "protocol": { + "type": "ERC20", + "protocol_data": { + "platform": "BNB", + "contract_address": "0x111111111117dC0aa78b770fA6A738034120C302" + } + }, + "derivation_path": "m/44'/60'", + "use_access_list": true, + "max_eth_tx_type": 2, + "gas_fee_estimator": "provider", + "gas_limit": { + "eth_send_erc20": 60000, + "erc20_payment": 110000, + "erc20_receiver_spend": 85000, + "erc20_sender_refund": 85000 + } +} +``` + +For EIP1559 features, a coin/token's config needs to include the `chain_id` (sourced from [chainlist.org](https://chainlist.org)) and `max_eth_tx_type` (set to `2` if compatible) fields. + +The [`gas_limit` object](/komodo-defi-framework/tutorials/listing-a-new-coin/) values in your `coins` file will set the default limits in both `Legacy` and `Eip1559` fee configs. + +### In the MM2.json file + +If `gas_fee_estimator` is set to `provider`, you'll also need to add the `gas_api` parameter to your [MM2.json configuration file](/komodo-defi-framework/setup/configure-mm2-json/): + +```json +{ + "netid": 8762, + "rpcport": 8777, + ... + "gas_api": { + "provider": "blocknative", + "url": https://your-provider-url.com + } +} +``` + +The currently available third party providers [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). From aab8d8b6bd9dcacdc06750a60ac682a1cb6fe955 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 20:02:45 +0800 Subject: [PATCH 23/29] linting --- filepathSlugs.json | 10 +- .../api/common_structures/wallet/index.mdx | 2 +- src/pages/komodo-defi-framework/api/index.mdx | 262 +++++++++--------- .../start_eth_fee_estimator/index.mdx | 6 +- .../stop_eth_fee_estimator/index.mdx | 8 +- .../tutorials/listing-a-new-coin/index.mdx | 2 +- 6 files changed, 148 insertions(+), 142 deletions(-) diff --git a/filepathSlugs.json b/filepathSlugs.json index 15e9fefd..2e6fc75b 100644 --- a/filepathSlugs.json +++ b/filepathSlugs.json @@ -2821,16 +2821,19 @@ "response" ], "src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx": [ - "get-eth-estimated-fee-per-gas", + "get-swap-transaction-fee-policy", "request", "response" ], "src/pages/komodo-defi-framework/api/v20/fee_management/index.mdx": [ "evm-network-fee-management", - "fee-management-methods" + "fee-management-methods", + "fee-management-configuration", + "in-the-coins-file", + "in-the-mm-2-json-file" ], "src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx": [ - "get-eth-estimated-fee-per-gas", + "set-swap-transaction-fee-policy", "request", "response" ], @@ -3676,6 +3679,7 @@ "configuration-parameters", "example-allowing-weak-password", "example-not-allowing-weak-password", + "example-using-gas-api", "example-wss-with-certificates", "example-for-hd-wallets", "coins-file-configuration", diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index f5a16f3b..944a5066 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -79,7 +79,7 @@ The `PayForGas` object includes the following items: [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to [chainlist.org](https://chainlist.org). There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. - By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providors [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). + By default, `simple` gas fee estimation suggests a fee based on fee history. If set `gas_fee_estimator` is set to `provider`, users must set the `gas_api` setting in their [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/) to source recommended fee values from third party providers [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). Use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/) method to begin tracking the fee market for a coin (and its tokens). You can stop tracking the fee market with [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/). diff --git a/src/pages/komodo-defi-framework/api/index.mdx b/src/pages/komodo-defi-framework/api/index.mdx index 7c1af29b..ff29c476 100644 --- a/src/pages/komodo-defi-framework/api/index.mdx +++ b/src/pages/komodo-defi-framework/api/index.mdx @@ -10,133 +10,135 @@ To test the methods in v2.0 (Dev), you will need to [build the Komodo DeFi Frame Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods: -| Legacy | v2.0 (release) | v2.0 (dev) | -| ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | -| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | -| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | -| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | -| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | -| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | -| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | -| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | -| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | -| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | -| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | -| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | -| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | -| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | -| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | -| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | -| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | -| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | -| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | -| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | -| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | -| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | -| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | -| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | -| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | -| | [get\_current\_mtp](/komodo-defi-framework/api/v20/get_current_mtp/#get-current-mtp) | | -| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | -| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | -| | [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/#get-eth-estimated-fee-per-gas) | | -| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | -| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | -| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | -| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | -| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | -| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | -| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | -| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | -| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | -| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | -| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | -| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | -| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | -| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | -| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | -| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | -| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | -| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | -| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | -| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | -| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | -| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | -| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | -| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | -| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | -| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | -| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | -| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | -| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | -| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | -| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | -| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | -| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | -| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | -| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | -| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | -| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | -| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | -| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | -| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | -| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | -| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | -| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | -| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/peer_connection_healthcheck/#peer-connection-healthcheck) | | -| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | -| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | -| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | -| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | -| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | -| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | -| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | -| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | -| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | -| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | -| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | -| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | -| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | -| | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/#start-eth-fee-estimator) | | -| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | -| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | -| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | -| | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/#stop-eth-fee-estimator) | | -| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | -| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | -| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | -| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | -| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | -| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | -| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | -| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | -| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | -| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | -| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | -| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | -| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | -| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | -| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | -| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | -| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | -| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | -| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | -| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | -| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | -| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | -| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | -| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | -| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | -| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | -| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | -| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | -| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | -| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | -| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | -| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | -| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | -| [version](/komodo-defi-framework/api/legacy/version/#version) | | | -| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | -| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | -| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | +| Legacy | v2.0 (release) | v2.0 (dev) | +| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| [active\_swaps](/komodo-defi-framework/api/legacy/active_swaps/#active-swaps) | | | +| | [add\_delegation](/komodo-defi-framework/api/v20/add_delegation/#add-delegation) | | +| | [add\_node\_to\_version\_stat](/komodo-defi-framework/api/v20/add_node_to_version_stat/#add-node-to-version-stat) | | +| [all\_swaps\_uuids\_by\_filter](/komodo-defi-framework/api/legacy/all_swaps_uuids_by_filter/#all-swaps-uuids-by-filter) | | | +| [ban\_pubkey](/komodo-defi-framework/api/legacy/ban_pubkey/#ban-pubkey) | | | +| [best\_orders](/komodo-defi-framework/api/legacy/best_orders/#best-orders) | [best\_orders](/komodo-defi-framework/api/v20/best_orders/#best-orders) | | +| [buy](/komodo-defi-framework/api/legacy/buy/#buy) | | | +| [cancel\_all\_orders](/komodo-defi-framework/api/legacy/cancel_all_orders/#cancel-all-orders) | | | +| [cancel\_order](/komodo-defi-framework/api/legacy/cancel_order/#cancel-order) | | | +| | | [clear\_nft\_db](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/clear_nft_db/#clear-nft-database) | +| | | [close\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#close-channel) | +| [coins\_needed\_for\_kick\_start](/komodo-defi-framework/api/legacy/coins_needed_for_kick_start/#coins-needed-for-kick-start) | | | +| [convert\_utxo\_address](/komodo-defi-framework/api/legacy/convert_utxo_address/#convert-utxo-address) | | | +| [convertaddress](/komodo-defi-framework/api/legacy/convertaddress/#convertaddress) | | | +| [disable\_coin](/komodo-defi-framework/api/legacy/disable_coin/#disable-coin) | | | +| [electrum](/komodo-defi-framework/api/legacy/coin_activation/#electrum-method) | | | +| [enable](/komodo-defi-framework/api/legacy/coin_activation/#enable-method) | | | +| | [enable\_bch\_with\_tokens](/komodo-defi-framework/api/v20/enable_bch_with_tokens/#enable-bch-with-tokens) | | +| | [enable\_erc20](/komodo-defi-framework/api/v20/enable_erc20/#enable-erc20) | | +| | [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/#enable-eth-with-tokens) | | +| | [enable\_slp](/komodo-defi-framework/api/v20/enable_slp/#enable-slp) | | +| | [enable\_tendermint\_token](/komodo-defi-framework/api/v20/enable_tendermint_token/#enable-tendermint-token) | | +| | [enable\_tendermint\_with\_assets](/komodo-defi-framework/api/v20/enable_tendermint_with_assets/#enable-tendermint-with-assets) | | +| | | [get\_channel\_details](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-channel-details) | +| | | [get\_claimable\_balances](/komodo-defi-framework/api/v20-dev/lightning/channels/#get-claimable-balances) | +| | [get\_current\_mtp](/komodo-defi-framework/api/v20/get_current_mtp/#get-current-mtp) | | +| [get\_directly\_connected\_peers](/komodo-defi-framework/api/legacy/get_directly_connected_peers/#get-directly-connected-peers) | | | +| [get\_enabled\_coins](/komodo-defi-framework/api/legacy/get_enabled_coins/#get-enabled-coins) | | | +| | [get\_eth\_estimated\_fee\_per\_gas](/komodo-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/#get-eth-estimated-fee-per-gas) | | +| [get\_gossip\_mesh](/komodo-defi-framework/api/legacy/get_gossip_mesh/#get-gossip-mesh) | | | +| [get\_gossip\_peer\_topics](/komodo-defi-framework/api/legacy/get_gossip_peer_topics/#get-gossip-peer-topics) | | | +| [get\_gossip\_topic\_peers](/komodo-defi-framework/api/legacy/get_gossip_topic_peers/#get-gossip-topic-peers) | | | +| | | [get\_locked\_amount](/komodo-defi-framework/api/v20-dev/get_locked_amount/#get-locked-amount) | +| [get\_my\_peer\_id](/komodo-defi-framework/api/legacy/get_my_peer_id/#get-my-peer-id) | | | +| | | [get\_new\_address](/komodo-defi-framework/api/v20-dev/hd_address_management/#get-new-address) | +| | | [get\_nft\_list](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_list/#get-a-list-of-nfts) | +| | | [get\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_metadata/#get-nft-metadata) | +| | | [get\_nft\_transfers](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/get_nft_transfers/#get-a-list-of-nft-transfers) | +| | [get\_public\_key](/komodo-defi-framework/api/v20/get_public_key/#get-public-key) | | +| | [get\_public\_key\_hash](/komodo-defi-framework/api/v20/get_public_key_hash/#get-public-key-hash) | | +| | [get\_raw\_transaction](/komodo-defi-framework/api/v20/get_raw_transaction/#get-raw-transaction) | | +| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | | +| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | | +| | [get\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/#get-swap-transaction-fee-policy) | | +| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | | +| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | | +| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | | +| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | | +| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) | +| | | [lightning::nodes::connect\_to\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#connect-to-node) | +| | | [lightning::nodes::list\_trusted\_nodes](/komodo-defi-framework/api/v20-dev/lightning/nodes/#list-trusted-nodes) | +| | | [lightning::nodes::remove\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#remove-trusted-node) | +| | | [lightning::payments::generate\_invoice](/komodo-defi-framework/api/v20-dev/lightning/payments/#generate-invoice) | +| | | [lightning::payments::get\_payment\_details](/komodo-defi-framework/api/v20-dev/lightning/payments/#get-payment-details) | +| | | [lightning::payments::list\_payments\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/payments/#list-payments-by-filter) | +| | | [lightning::payments::send\_payment](/komodo-defi-framework/api/v20-dev/lightning/payments/#send-payment) | +| [list\_banned\_pubkeys](/komodo-defi-framework/api/legacy/list_banned_pubkeys/#list-banned-pubkeys) | | | +| | | [list\_closed\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-closed-channels-by-filter) | +| | | [list\_open\_channels\_by\_filter](/komodo-defi-framework/api/v20-dev/lightning/channels/#list-open-channels-by-filter) | +| | | [max\_maker\_vol](/komodo-defi-framework/api/v20-dev/max_maker_vol/#max-maker-vol) | +| [max\_taker\_vol](/komodo-defi-framework/api/legacy/max_taker_vol/#max-taker-vol) | | | +| [metrics](/komodo-defi-framework/api/legacy/metrics/#metrics) | | | +| [min\_trading\_vol](/komodo-defi-framework/api/legacy/min_trading_vol/#min-trading-vol) | | | +| [my\_balance](/komodo-defi-framework/api/legacy/my_balance/#my-balance) | | | +| [my\_orders](/komodo-defi-framework/api/legacy/my_orders/#my-orders) | | | +| [my\_recent\_swaps](/komodo-defi-framework/api/legacy/my_recent_swaps/#my-recent-swaps) | [my\_recent\_swaps](/komodo-defi-framework/api/v20/my_recent_swaps/#my-recent-swaps) | | +| [my\_swap\_status](/komodo-defi-framework/api/legacy/my_swap_status/#my-swap-status) | | | +| [my\_tx\_history](/komodo-defi-framework/api/legacy/my_tx_history/#my-tx-history) | [my\_tx\_history](/komodo-defi-framework/api/v20/my_tx_history/#my-tx-history) | | +| | | [open\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#open-channel) | +| [order\_status](/komodo-defi-framework/api/legacy/order_status/#order-status) | | | +| [orderbook](/komodo-defi-framework/api/legacy/orderbook/#orderbook) | [orderbook](/komodo-defi-framework/api/v20/orderbook/#orderbook) | | +| [orderbook\_depth](/komodo-defi-framework/api/legacy/orderbook_depth/#orderbook-depth) | | | +| [orders\_history\_by\_filter](/komodo-defi-framework/api/legacy/orders_history_by_filter/#orders-history-by-filter) | | | +| | [peer\_connection\_healthcheck](/komodo-defi-framework/api/v20/peer_connection_healthcheck/#peer-connection-healthcheck) | | +| [recover\_funds\_of\_swap](/komodo-defi-framework/api/legacy/recover_funds_of_swap/#recover-funds-of-swap) | | | +| | [recreate\_swap\_data](/komodo-defi-framework/api/v20/recreate_swap_data/#recreate-swap-data) | | +| | | [refresh\_nft\_metadata](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/refresh_nft_metadata/#refresh-nft-metadata) | +| | [remove\_delegation](/komodo-defi-framework/api/v20/remove_delegation/#remove-delegation) | | +| | [remove\_node\_from\_version\_stat](/komodo-defi-framework/api/v20/remove_node_from_version_stat/#remove-node-from-version-stat) | | +| [sell](/komodo-defi-framework/api/legacy/sell/#sell) | | | +| [send\_raw\_transaction](/komodo-defi-framework/api/legacy/send_raw_transaction/#send-raw-transaction) | | | +| [set\_required\_confirmations](/komodo-defi-framework/api/legacy/set_required_confirmations/#set-required-confirmations) | | | +| [set\_requires\_notarization](/komodo-defi-framework/api/legacy/set_requires_notarization/#set-requires-notarization) | | | +| | [set\_swap\_transaction\_fee\_policy](/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/#set-swap-transaction-fee-policy) | | +| [setprice](/komodo-defi-framework/api/legacy/setprice/#setprice) | | | +| [show\_priv\_key](/komodo-defi-framework/api/legacy/show_priv_key/#show-priv-key) | | | +| | [sign\_message](/komodo-defi-framework/api/v20/message_signing/#sign-message) | | +| | [sign\_raw\_transaction](/komodo-defi-framework/api/v20/sign_raw_transaction/#sign-raw-transaction) | | +| | [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/#start-eth-fee-estimator) | | +| | [start\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/start_simple_market_maker_bot/#start-simple-market-maker-bot) | | +| | [start\_version\_stat\_collection](/komodo-defi-framework/api/v20/start_version_stat_collection/#start-version-stat-collection) | | +| | | [status](/komodo-defi-framework/api/v20-dev/task_create_new_account/#status) | +| | [stop\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/#stop-eth-fee-estimator) | | +| | [stop\_simple\_market\_maker\_bot](/komodo-defi-framework/api/v20/stop_simple_market_maker_bot/#stop-simple-market-maker-bot) | | +| | [stop\_version\_stat\_collection](/komodo-defi-framework/api/v20/stop_version_stat_collection/#stop-version-stat-collection) | | +| | | [task::account\_balance::cancel](/komodo-defi-framework/api/v20-dev/task_account_balance/#cancel) | +| | | [task::account\_balance::init](/komodo-defi-framework/api/v20-dev/task_account_balance/#init) | +| | | [task::account\_balance::status](/komodo-defi-framework/api/v20-dev/task_account_balance/#status) | +| | | [task::create\_new\_account::init](/komodo-defi-framework/api/v20-dev/task_create_new_account/#init) | +| | | [task::enable\_lightning::cancel](/komodo-defi-framework/api/v20-dev/lightning/activation/#cancel-initialization) | +| | | [task::enable\_lightning::init](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialize-lightning) | +| | | [task::enable\_lightning::status](/komodo-defi-framework/api/v20-dev/lightning/activation/#initialization-status) | +| | | [task::enable\_qtum::init](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#init) | +| | | [task::enable\_qtum::status](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#status) | +| | | [task::enable\_qtum::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_qtum/#user-action) | +| | | [task::enable\_utxo::init](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#init) | +| | | [task::enable\_utxo::status](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#status) | +| | | [task::enable\_utxo::user\_action](/komodo-defi-framework/api/v20-dev/task_enable_utxo/#user-action) | +| | | [task::enable\_z\_coin::cancel](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#cancel-activation) | +| | | [task::enable\_z\_coin::init](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#initialize-zhtlc-coin-activation) | +| | | [task::enable\_z\_coin::status](/komodo-defi-framework/api/v20-dev/zhtlc_coins/activation/#activation-status) | +| | | [task::init\_trezor::cancel](/komodo-defi-framework/api/v20-dev/task_init_trezor/#cancel) | +| | | [task::init\_trezor::init](/komodo-defi-framework/api/v20-dev/task_init_trezor/#init) | +| | | [task::init\_trezor::status](/komodo-defi-framework/api/v20-dev/task_init_trezor/#status) | +| | | [task::init\_trezor::user\_action](/komodo-defi-framework/api/v20-dev/task_init_trezor/#user-action) | +| | | [task::withdraw::cancel](/komodo-defi-framework/api/v20-dev/task_withdraw/#cancel) | +| | | [task::withdraw::init](/komodo-defi-framework/api/v20-dev/task_withdraw/#init) | +| | | [task::withdraw::status](/komodo-defi-framework/api/v20-dev/task_withdraw/#status) | +| [trade\_preimage](/komodo-defi-framework/api/legacy/trade_preimage/#trade-preimage) | [trade\_preimage](/komodo-defi-framework/api/v20/trade_preimage/#trade-preimage) | | +| [unban\_pubkeys](/komodo-defi-framework/api/legacy/unban_pubkeys/#unban-pubkeys) | | | +| | | [update\_channel](/komodo-defi-framework/api/v20-dev/lightning/channels/#update-channel) | +| [update\_maker\_order](/komodo-defi-framework/api/legacy/update_maker_order/#update-maker-order) | | | +| | | [update\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/update_nft/#update-nft) | +| | [update\_version\_stat\_collection](/komodo-defi-framework/api/v20/update_version_stat_collection/#update-version-stat-collection) | | +| [validateaddress](/komodo-defi-framework/api/legacy/validateaddress/#validateaddress) | | | +| | [verify\_message](/komodo-defi-framework/api/v20/message_signing/#verify-message) | | +| [version](/komodo-defi-framework/api/legacy/version/#version) | | | +| [withdraw](/komodo-defi-framework/api/legacy/withdraw/#withdraw) | [withdraw](/komodo-defi-framework/api/v20/withdraw/#withdraw) | | +| | | [withdraw\_nft](/komodo-defi-framework/api/v20-dev/non_fungible_tokens/withdraw_nft/#withdraw-nfts) | +| | | [z\_coin\_tx\_history](/komodo-defi-framework/api/v20-dev/zhtlc_coins/transaction_history/#zhtlc-coin-transaction-history) | diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx index 8cd5a2c6..3e9f221a 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/index.mdx @@ -6,9 +6,9 @@ export const description = The `start_eth_fee_estimator` method allows you to to start the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/enable_eth_with_tokens/) method. For the gas fee estimator to work you also need to [configure your MM2.json and coins files](/komodo-defi-framework/api/v20/fee_management/#fee-management-configuration) with some extra parameters. -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | +| parameter | Type | Description | +| --------- | ------ | -------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | ```json diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx index d8a33cb1..7408f75c 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/stop_eth_fee_estimator/index.mdx @@ -4,11 +4,11 @@ export const description = # stop\_eth\_fee\_estimator -The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator) method. +The `stop_eth_fee_estimator` method allows you to to stop the gas priority fee estimator loop for an active coin of your choice. Before using this method, you first need to use the [enable\_eth\_with\_tokens](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/) method. -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | +| parameter | Type | Description | +| --------- | ------ | -------------------------------------------------------------------------- | +| coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. | ```json 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 562fc7f1..2aa2067c 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 @@ -69,7 +69,7 @@ sendrawtransaction | version\_group\_id | integer | Optional, used by Zcash (and its forks') transactions. | | consensus\_branch\_id | integer | Optional, used in Zcash (and its forks') transactions' signature hash calculation. | | mature\_confirmations | integer | Number of blockchain confirmations required for coinbase output to be considered mature (spendable). | -| gas\_fee\_estimator | string | Optional. Set as `provider` to source fee market information via [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). Set to `simple` to source fee information from native nodes on the network. Refer to the [EVM fee mManagement](/komodo-defi-framework/api/v20/fee_management/) section for more information. | +| gas\_fee\_estimator | string | Optional. Set as `provider` to source fee market information via [Infura](https://www.infura.io/) or [Blocknative](https://www.blocknative.com/). Set to `simple` to source fee information from native nodes on the network. Refer to the [EVM fee mManagement](/komodo-defi-framework/api/v20/fee_management/) section for more information. | ### UTXO coin example From 182d82b138eb0b705f66c35dcb7a844509833b20 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 20:11:07 +0800 Subject: [PATCH 24/29] update sign_raw_tx examples --- .../api/common_structures/wallet/index.mdx | 5 +++++ .../api/v20/sign_raw_transaction/index.mdx | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 944a5066..91885e7a 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -37,6 +37,11 @@ The `RawTxInfo` object includes the following items: "to": "0x927DaFDDa16F1742BeFcBEAE6798090354B294A9", "value": "0.85", "gas_limit": "21000" + "pay_for_gas": { + "tx_type": "Eip1559", + "max_fee_per_gas": "1234.567", + "max_priority_fee_per_gas": "1.2" + } } ``` diff --git a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx index 94c8a9f4..73ab5a69 100644 --- a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx @@ -120,8 +120,13 @@ The transaction can then be broadcasted to the network using the [`send_raw_tran "type": "ETH", "tx": { "to": "0x927DaFDDa16F1742BeFcBEAE6798090354B294A9", - "value": "1.4", + "value": "0.85", "gas_limit": "21000" + "pay_for_gas": { + "tx_type": "Eip1559", + "max_fee_per_gas": "1234.567", + "max_priority_fee_per_gas": "1.2" + } } } } From 04bc4e83bca4f4db3910d1e11cf54f27a6917775 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 4 Nov 2024 20:17:27 +0800 Subject: [PATCH 25/29] add sign_raw_transaction examples to postman --- .../komodo_defi.postman_collection.json | 2185 ++++++++++++++--- .../api/common_structures/wallet/index.mdx | 2 +- .../api/v20/sign_raw_transaction/index.mdx | 2 +- 3 files changed, 1904 insertions(+), 285 deletions(-) diff --git a/postman/collections/komodo_defi.postman_collection.json b/postman/collections/komodo_defi.postman_collection.json index 8f9d687e..92328a2a 100644 --- a/postman/collections/komodo_defi.postman_collection.json +++ b/postman/collections/komodo_defi.postman_collection.json @@ -46,7 +46,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ]\r\n // \"min_connected\": 1, // defaults to 1 when omitted\r\n // \"max_connected\": 3 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"KMD\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10001\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10001\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10001\"\r\n }\r\n ],\r\n \"min_connected\": 1, // defaults to 1 when omitted\r\n \"max_connected\": 3 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -69,7 +69,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ]\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 2 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -238,13 +238,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 1 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"electrum\",\r\n \"coin\": \"DOC\",\r\n \"servers\": [\r\n {\r\n \"url\": \"electrum1.cipig.net:10020\"\r\n // \"protocol\": \"TCP\" // Accepted values: \"TCP\", \"SSL\", \"WS\", \"WSS\"\r\n // \"disable_cert_verification\": false\r\n },\r\n {\r\n \"url\": \"electrum2.cipig.net:10020\"\r\n },\r\n {\r\n \"url\": \"electrum3.cipig.net:10020\"\r\n }\r\n ],\r\n \"min_connected\": 2, // defaults to 1 when omitted\r\n \"max_connected\": 1 // defaults to len(servers) when omitted\r\n // \"mm2\": null, // Required only if: Not in Coin Config // Accepted values: 0, 1\r\n // \"tx_history\": false,\r\n // \"required_confirmations\": 1, // Default: Coin Config\r\n // \"requires_notarization\": false, // Default: Coin Config\r\n // \"address_format\": {\r\n // \"format\": \"standard\" // Accepted values: \"standard\", \"segwit\", \"cashaddress\"\r\n // // \"network\": \"bchtest\" // Required only if: \"format\": \"cashaddress\"\r\n // }, // Default: Coin Config\r\n // \"utxo_merge_params\": null,\r\n // // \"utxo_merge_params\": {\r\n // // \"merge_at\":50\r\n // // // \"check_every\":10,\r\n // // // \"max_merge_at_once\":100\r\n // // },\r\n // \"check_utxo_maturity\": false,\r\n // \"priv_key_policy\": \"IguanaPrivKey\", // Accepted values: \"IguanaPrivKey\", \"Trezor\"\r\n // \"gap_limit\": 20, // used only if: \"priv_key_policy\": \"Trezor\"\r\n // \"scan_policy\": \"scan_if_new_wallet\" // Accepted values: \"do_not_scan\", \"scan_if_new_wallet\", \"scan\" // used only if: \"priv_key_policy\": \"Trezor\"\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -255,7 +261,7 @@ }, "status": "Internal Server Error", "code": 500, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -268,10 +274,17 @@ { "key": "date", "value": "Wed, 30 Oct 2024 10:45:41 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"error\":\"rpc:184] dispatcher_legacy:141] lp_commands_legacy:141] lp_coins:4462] utxo_standard:73] utxo_coin_builder:616] Internal error: manager:132] min_connected (2) must be <= max_connected (1)\"}" + "body": "{\n \"error\": \"rpc:184] dispatcher_legacy:141] lp_commands_legacy:141] lp_coins:4462] utxo_standard:73] utxo_coin_builder:616] Internal error: manager:132] min_connected (2) must be <= max_connected (1)\"\n}" }, { "name": "Error: min < 1", @@ -1340,7 +1353,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "my_tx_history", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"my_tx_history\",\r\n \"coin\": \"TSIA\"\r\n // \"from_id\": null, // Accepted values: Strings\r\n // \"max\": false,\r\n // \"limit\": 10,\r\n // \"page_number\": 1, // used only if: \"from_id\": null\r\n\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "172" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:46:46 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"transactions\":[],\"limit\":10,\"skipped\":0,\"from_id\":null,\"total\":0,\"current_block\":22780,\"sync_status\":{\"state\":\"NotEnabled\"},\"page_number\":null,\"total_pages\":0}}" + } + ] }, { "name": "send_raw_transaction", @@ -1824,7 +1880,50 @@ ] } }, - "response": [] + "response": [ + { + "name": "max_taker_vol", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"max_taker_vol\",\r\n \"coin\": \"TSIA\"\r\n // \"trade_with\": \"DOC\" // Default: \"coin\"\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "73" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:44:16 GMT" + } + ], + "cookie": [], + "body": "{\"result\":{\"numer\":\"85469222999997669\",\"denom\":\"77800000\"},\"coin\":\"TSIA\"}" + } + ] }, { "name": "min_trading_vol", @@ -2234,7 +2333,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -2249,7 +2349,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\"\r\n // \"include_status\": false\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\",\r\n \"include_status\": true\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -2258,7 +2358,106 @@ ] } }, - "response": [] + "response": [ + { + "name": "active_swaps (without status)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\"\r\n // \"include_status\": false\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": "66" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 11:36:39 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"uuids\": [\n \"7b60a494-f159-419c-8f41-02e10f897513\"\n ],\n \"statuses\": null\n}" + }, + { + "name": "active_swaps (with status)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\",\r\n \"include_status\": true\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": "2388" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 11:43:12 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"uuids\": [\n \"44798382-8c63-4047-b5d8-70a60fa2546b\"\n ],\n \"statuses\": {\n \"44798382-8c63-4047-b5d8-70a60fa2546b\": {\n \"type\": \"Taker\",\n \"uuid\": \"44798382-8c63-4047-b5d8-70a60fa2546b\",\n \"my_order_uuid\": \"44798382-8c63-4047-b5d8-70a60fa2546b\",\n \"events\": [\n {\n \"timestamp\": 1730634185287,\n \"event\": {\n \"type\": \"Started\",\n \"data\": {\n \"taker_coin\": \"MARTY\",\n \"maker_coin\": \"DOC\",\n \"maker\": \"15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"my_persistent_pub\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\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\": 1730641984,\n \"uuid\": \"44798382-8c63-4047-b5d8-70a60fa2546b\",\n \"started_at\": 1730634184,\n \"maker_payment_wait\": 1730637304,\n \"maker_coin_start_block\": 803893,\n \"taker_coin_start_block\": 818506,\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\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\n \"taker_coin_htlc_pubkey\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\n \"p2p_privkey\": null\n }\n }\n }\n ],\n \"maker_amount\": \"2.4\",\n \"maker_coin\": \"DOC\",\n \"maker_coin_usd_price\": null,\n \"taker_amount\": \"2.4\",\n \"taker_coin\": \"MARTY\",\n \"taker_coin_usd_price\": null,\n \"gui\": \"mm2_777\",\n \"mm_version\": \"2.2.0-beta_caf803b\",\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 \"MakerPaymentSpendConfirmed\",\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 \"MakerPaymentSpendConfirmFailed\",\n \"TakerPaymentWaitRefundStarted\",\n \"TakerPaymentRefundStarted\",\n \"TakerPaymentRefunded\",\n \"TakerPaymentRefundedByWatcher\",\n \"TakerPaymentRefundFailed\",\n \"TakerPaymentRefundFinished\"\n ]\n }\n }\n}" + } + ] }, { "name": "all_swaps_uuids_by_filter", @@ -4590,7 +4789,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"rpc_mode\": \"Default\", // Accepted values: Default, Metamask\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"rpc_mode\": \"Default\", // Accepted values: Default, Metamask\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n },\n {\n \"url\": \"https://node.komodo.earth:8080/polygon\",\n \"komodo_proxy\": true\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4612,7 +4811,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"gui_auth\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"gui_auth\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"gui_auth\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"ETH\",\n \"gas_station_url\": \"https://ethgasstation.info/json/ethgasAPI.json\",\n \"gas_station_decimals\": 8,\n \"gas_station_policy\": {\n \"policy\": \"MeanAverageFast\"\n },\n \"mm2\": 1,\n \"rpc_mode\": \"Default\",\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"priv_key_policy\": \"ContextPrivKey\",\n \"swap_contract_address\": \"0x24ABE4c71FC658C91313b6552cd40cD808b3Ea80\",\n \"fallback_swap_contract\": \"0x8500AFc0bc5214728082163326C2FF0C73f4a871\",\n \"nodes\": [\n {\n \"url\": \"https://eth1.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth2.cipig.net:18555\",\n \"komodo_proxy\": false\n },\n {\n \"url\": \"https://eth3.cipig.net:18555\",\n \"komodo_proxy\": false\n }\n ],\n \"tx_history\": true,\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"MINDS-ERC20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n}", "options": { "raw": { "language": "json" @@ -4701,7 +4900,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n },\n {\n \"url\": \"https://node.komodo.earth:8080/polygon\",\n \"komodo_proxy\": true\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4749,7 +4948,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"MATIC\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"gas_station_url\": \"https://gasstation-mainnet.matic.network/\",\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://polygon-rpc.com\"\n },\n {\n \"url\": \"https://electrum3.cipig.net:18755\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/matic\"\n }\n ],\n \"erc20_tokens_requests\": [\n {\n \"ticker\": \"PGX-PLG20\",\n \"required_confirmations\": 4\n },\n {\n \"ticker\": \"AAVE-PLG20\",\n \"required_confirmations\": 4\n }\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -4797,7 +4996,7 @@ "header": [], "body": { "mode": "raw", - "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"gui_auth\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", + "raw": "\n {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"enable_eth_with_tokens\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"ticker\": \"AVAX\",\n \"get_balances\": false,\n \"tx_history\": false,\n \"swap_contract_address\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"fallback_swap_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n \"swap_v2_contracts\": {\n\t \"maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"taker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\",\n\t \"nft_maker_swap_v2_contract\": \"0x9130b257D37A52E52F21054c4DA3450c72f595CE\"\n },\n \"nft_req\": {\n \"provider\": {\n \"type\": \"Moralis\",\n \"info\": {\n \"url\": \"https://moralis-proxy.komodo.earth\"\n }\n }\n },\n \"nodes\": [\n {\n \"url\": \"https://node.komodo.earth:8080/avalanche\",\n \"komodo_proxy\": true\n },\n {\n \"url\": \"https://api.avax.network/ext/bc/C/rpc\"\n },\n {\n \"url\": \"https://block-proxy.komodo.earth/rpc/avax\",\n \"ws_url\": \"wss://block-proxy.komodo.earth/rpc/avax/websocket\"\n }\n ],\n \"erc20_tokens_requests\": [\n ],\n \"required_confirmations\": 5,\n \"requires_notarization\": false\n }\n }", "options": { "raw": { "language": "json" @@ -5047,7 +5246,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"rpc_urls\": [\r\n \"https://iris.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ],\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ]\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ],\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ]\r\n }\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -5064,13 +5263,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\":[\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\":[\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5081,7 +5286,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5094,10 +5299,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 08:52:01 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591691,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26591691,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" }, { "name": "v2.2.0+", @@ -5106,13 +5318,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5123,7 +5341,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5136,10 +5354,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 09:23:10 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26591996,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26591996,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {\n \"ATOM-IBC_IRIS\": {\n \"spendable\": \"0.028306\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"id\": null\n}" }, { "name": "<= v2.1.0", @@ -5148,13 +5373,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"rpc_urls\": [\r\n \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"rpc_urls\": [\r\n \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"https://rpc.irishub-1.irisnet.org\"\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5165,7 +5396,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5178,10 +5409,17 @@ { "key": "date", "value": "Wed, 11 Sep 2024 09:26:35 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"IRIS\",\"address\":\"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\"current_block\":26592029,\"balance\":{\"spendable\":\"23.336616\",\"unspendable\":\"0\"},\"tokens_balances\":{\"ATOM-IBC_IRIS\":{\"spendable\":\"0.028306\",\"unspendable\":\"0\"}}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"IRIS\",\n \"address\": \"iaa16drqvl3u8sukfsu4lm3qsk28jr3fahja9vsv6k\",\n \"current_block\": 26592029,\n \"balance\": {\n \"spendable\": \"23.336616\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {\n \"ATOM-IBC_IRIS\": {\n \"spendable\": \"0.028306\",\n \"unspendable\": \"0\"\n }\n }\n },\n \"id\": null\n}" }, { "name": "enable_tendermint_with_assets", @@ -5190,13 +5428,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_auth\": false\r\n }\r\n ]\r\n }\r\n }" + "raw": "\r\n {\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"IRIS\",\r\n \"tokens_params\": [\r\n {\r\n \"ticker\": \"ATOM-IBC_IRIS\"\r\n }\r\n ],\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://iris-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://iris-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://iris-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://iris-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://rpc.irishub-1.irisnet.org\",\r\n \"komodo_proxy\": false\r\n }\r\n ]\r\n }\r\n }", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5239,13 +5483,19 @@ "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://cosmos-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://cosmos-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://cosmos-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://cosmos-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://cosmoshub.rpc.stakin-nodes.com/\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"ATOM\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://cosmos-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://cosmos-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://cosmos-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://cosmos-rpc.alpha.komodo.earth/websocket\"\r\n },\r\n {\r\n \"url\": \"https://cosmoshub.rpc.stakin-nodes.com/\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5256,7 +5506,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5269,25 +5519,38 @@ { "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", + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"ATOM\",\n \"address\": \"cosmos16drqvl3u8sukfsu4lm3qsk28jr3fahjaswsac8\",\n \"current_block\": 22148347,\n \"balance\": {\n \"spendable\": \"1.003381\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" + }, + { + "name": "Activate OSMO", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", + "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"OSMO\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://rpc.osmosis.zone/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis.rpc.stakin-nodes.com\"\r\n },\r\n {\r\n \"url\": \"https://rpc-osmosis-ia.cosmosia.notional.ventures/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://osmosis-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://osmosis-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://osmosis-rpc.alpha.komodo.earth/websocket\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"enable_tendermint_with_assets\",\r\n \"mmrpc\": \"2.0\",\r\n \"params\": {\r\n \"ticker\": \"OSMO\",\r\n \"tx_history\": true,\r\n \"get_balances\": true,\r\n \"nodes\": [\r\n {\r\n \"url\": \"https://rpc.osmosis.zone/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis.rpc.stakin-nodes.com\"\r\n },\r\n {\r\n \"url\": \"https://rpc-osmosis-ia.cosmosia.notional.ventures/\"\r\n },\r\n {\r\n \"url\": \"https://osmosis-rpc.alpha.komodo.earth/\",\r\n \"api_url\": \"https://osmosis-api.alpha.komodo.earth/\",\r\n \"grpc_url\": \"https://osmosis-grpc.alpha.komodo.earth/\",\r\n \"ws_url\": \"wss://osmosis-rpc.alpha.komodo.earth/websocket\"\r\n }\r\n ],\r\n \"tokens_params\": []\r\n }\r\n}\r\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -5298,7 +5561,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -5311,10 +5574,17 @@ { "key": "date", "value": "Thu, 12 Sep 2024 08:43:47 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"ticker\":\"OSMO\",\"address\":\"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\"current_block\":20733754,\"balance\":{\"spendable\":\"7.994016\",\"unspendable\":\"0\"},\"tokens_balances\":{}},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"ticker\": \"OSMO\",\n \"address\": \"osmo16drqvl3u8sukfsu4lm3qsk28jr3fahjac4rdw4\",\n \"current_block\": 20733754,\n \"balance\": {\n \"spendable\": \"7.994016\",\n \"unspendable\": \"0\"\n },\n \"tokens_balances\": {}\n },\n \"id\": null\n}" } ] } @@ -5344,7 +5614,49 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate TSIA", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"enable_sia\",\n \"params\": {\n \"ticker\": \"TSIA\",\n \"activation_params\": {\n \"client_conf\": {\n \"server_url\": \"https://sia-walletd.komodo.earth/\",\n \"password\": \"dummy\"\n }\n }\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "48" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"task_id\":0},\"id\":null}" + } + ] }, { "name": "Activate TSIA status", @@ -5367,7 +5679,49 @@ ] } }, - "response": [] + "response": [ + { + "name": "Activate TSIA status", + "originalRequest": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n\t\"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"task::enable_sia::status\",\n \"params\": {\n \"task_id\": 0\n }\n}\n", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "332" + }, + { + "key": "date", + "value": "Fri, 01 Nov 2024 03:50:14 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"status\":\"Ok\",\"details\":{\"ticker\":\"TSIA\",\"current_block\":22780,\"wallet_balance\":{\"wallet_type\":\"Iguana\",\"address\":\"addr:c67d77a585c13727dbba57cfc115995beb9b8737e9a8cb7bb0aa208744e646cdc0acc9c9fce2\",\"balance\":{\"spendable\":\"0.000000000000000000000000\",\"unspendable\":\"0.000000000000000000000000\"}}}},\"id\":null}" + } + ] } ] } @@ -7562,6 +7916,131 @@ } ] }, + { + "name": "sign_raw_transaction", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"id\": 0,\r\n \"method\": \"sign_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"MATIC\",\r\n \"type\": \"ETH\",\r\n \"tx\": {\r\n \"to\": \"0x927DaFDDa16F1742BeFcBEAE6798090354B294A9\",\r\n \"value\": \"0.85\",\r\n \"gas_limit\": \"21000\",\r\n \"pay_for_gas\": {\r\n \"tx_type\": \"Eip1559\",\r\n \"max_fee_per_gas\": \"1234.567\",\r\n \"max_priority_fee_per_gas\": \"1.2\"\r\n }\r\n }\r\n }\r\n }" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Success: ETH/EVM", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"id\": 0,\r\n \"method\": \"sign_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"MATIC\",\r\n \"type\": \"ETH\",\r\n \"tx\": {\r\n \"to\": \"0x927DaFDDa16F1742BeFcBEAE6798090354B294A9\",\r\n \"value\": \"0.85\",\r\n \"gas_limit\": \"21000\",\r\n \"pay_for_gas\": {\r\n \"tx_type\": \"Eip1559\",\r\n \"max_fee_per_gas\": \"1234.567\",\r\n \"max_priority_fee_per_gas\": \"1.2\"\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": "287" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 12:13:56 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"tx_hex\":\"02f8768189808447868c0086011f71ed6fc08302100094927dafdda16f1742befcbeae6798090354b294a9880bcbce7f1b15000080c001a0cd160bbf4aac7a9f1ac819305c58ac778afbb4df82fdb3f9ad3f7127b680c89aa07437537646a7e99a4a1e05854e0db699372a3ff4980d152fa950afeec4d3636c\"},\"id\":0}" + }, + { + "name": "Error: SigningError", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n {\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"sign_raw_transaction\",\r\n \"params\": {\r\n \"coin\": \"KMD\",\r\n \"type\": \"UTXO\",\r\n \"tx\": {\r\n \"tx_hex\": \"0400008085202f8901c8d6d8764e51bbadc0592b99f37b3b7d8c9719686d5a9bf63652a0802a1cd0360200000000feffffff0100dd96d8080000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ac46366665000000000000000000000000000000\"\r\n }\r\n },\r\n \"id\": 0\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": "785" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 12:15:55 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Signing error: with_key_pair:114] P2PKH script 'OP_DUP\\nOP_HASH160\\nOP_PUSHBYTES_20 0xd64ad24e655ba7221ea51c7931aad5b98da77f3c\\nOP_EQUALVERIFY\\nOP_CHECKSIG\\n' built from input key pair doesn't match expected prev script 'OP_DUP\\nOP_HASH160\\nOP_PUSHBYTES_20 0xd346067e3c3c3964c395fee208594790e29ede5d\\nOP_EQUALVERIFY\\nOP_CHECKSIG\\n'\",\"error_path\":\"utxo_common\",\"error_trace\":\"utxo_common:2835]\",\"error_type\":\"SigningError\",\"error_data\":\"with_key_pair:114] P2PKH script 'OP_DUP\\nOP_HASH160\\nOP_PUSHBYTES_20 0xd64ad24e655ba7221ea51c7931aad5b98da77f3c\\nOP_EQUALVERIFY\\nOP_CHECKSIG\\n' built from input key pair doesn't match expected prev script 'OP_DUP\\nOP_HASH160\\nOP_PUSHBYTES_20 0xd346067e3c3c3964c395fee208594790e29ede5d\\nOP_EQUALVERIFY\\nOP_CHECKSIG\\n'\",\"id\":0}" + } + ] + }, { "name": "verify_message", "event": [ @@ -7767,54 +8246,53 @@ ] } }, - "response": [] - } - ] - }, - { - "name": "Orders", - "item": [ - { - "name": "best_orders", - "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_wallet_names", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"best_orders\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"exclude_mine\": true, // Accepted values: \"true\", \"false\". Defaults to false.,\r\n \"action\": \"buy\", // Accepted values: \"buy\", \"sell\"\r\n \"request_by\": {\r\n \"type\": \"volume\", // Accepted values: \"volume\", \"number\"\r\n \"value\": 1.1 // Accepted values: Decimals if \"type\": \"volume\", Unsigned Integers if \"type\": \"number\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" - }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_wallet_names\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "128" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:28:27 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"wallet_names\":[\"Gringotts Retirement Fund\"],\"activated_wallet\":\"Gringotts Retirement Fund\"},\"id\":null}" } - }, - "response": [] + ] }, { - "name": "orderbook", + "name": "get_mnemonic", "event": [ { "listen": "prerequest", @@ -7826,7 +8304,8 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -7841,7 +8320,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"orderbook\",\r\n \"params\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" }, "url": { "raw": "{{address}}", @@ -7850,10 +8329,212 @@ ] } }, - "response": [] - }, + "response": [ + { + "name": "get_mnemonic (encrypted)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"encrypted\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "528" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:28:43 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"format\": \"encrypted\",\n \"encrypted_mnemonic_data\": {\n \"encryption_algorithm\": \"AES256CBC\",\n \"key_derivation_details\": {\n \"Argon2\": {\n \"params\": {\n \"algorithm\": \"Argon2id\",\n \"version\": \"0x13\",\n \"m_cost\": 65536,\n \"t_cost\": 2,\n \"p_cost\": 1\n },\n \"salt_aes\": \"CqkfcntVxFJNXqOKPHaG8w\",\n \"salt_hmac\": \"i63qgwjc+3oWMuHWC2XSJA\"\n }\n },\n \"iv\": \"mNjmbZLJqgLzulKFBDBuPA==\",\n \"ciphertext\": \"tP2vF0hRhllW00pGvYiKysBI0vl3acLj+aoocBViTTByXCpjpkLuaMWqe0Vs02cb1wvgPsVqZkE4MPg4sCQxbd18iS7Er6+BbVY3HQ2LSig=\",\n \"tag\": \"TwWXhIFQl1TSdR4cJpbkK2oNXd9zIEhJmO6pML1uc2E=\"\n }\n },\n \"id\": null\n}" + }, + { + "name": "get_wallet_names Copy", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\" // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n // \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "211" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:31:03 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Error parsing request: missing field `password`\",\n \"error_path\": \"dispatcher\",\n \"error_trace\": \"dispatcher:112]\",\n \"error_type\": \"InvalidRequest\",\n \"error_data\": \"missing field `password`\",\n \"id\": null\n}" + }, + { + "name": "Error: Wrong password", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\", // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n \"password\": \"password123\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "392" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:31:46 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"Wallets storage error: Error decrypting passphrase: Error decrypting mnemonic: HMAC error: MAC tag mismatch\",\n \"error_path\": \"lp_wallet.mnemonic.decrypt\",\n \"error_trace\": \"lp_wallet:494] lp_wallet:141] mnemonic:125] decrypt:56]\",\n \"error_type\": \"WalletsStorageError\",\n \"error_data\": \"Error decrypting passphrase: Error decrypting mnemonic: HMAC error: MAC tag mismatch\",\n \"id\": null\n}" + }, + { + "name": "get_mnemonic (plaintext)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_mnemonic\",\r\n \"params\": {\r\n \"format\": \"plaintext\", // `plaintext` or `encrypted`. If `plaintext`, `password` is required ,\r\n \"password\": \"test\" // The password used to encrypt the passphrase when the wallet was created\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "139" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 09:32:26 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"format\": \"plaintext\",\n \"mnemonic\": \"unique spy ugly child cup sad capital invest essay lunch doctor know\"\n },\n \"id\": null\n}" + } + ] + } + ] + }, + { + "name": "Orders", + "item": [ { - "name": "start_simple_market_maker_bot", + "name": "best_orders", "event": [ { "listen": "prerequest", @@ -7880,7 +8561,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"start_simple_market_maker_bot\",\r\n \"params\": {\r\n \"cfg\": {\r\n \"DOC/MARTY\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"spread\": \"1.025\",\r\n \"enable\": true\r\n // \"min_volume\": null,\r\n // // \"min_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"min_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max_volume\": null,\r\n // // \"max_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"max_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max\": false,\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 // \"price_elapsed_validity\": 300.0,\r\n // \"check_last_bidirectional_trade_thresh_hold\": false,\r\n // \"min_base_price\": null, // Accepted values: Decimals\r\n // \"min_rel_price\": null, // Accepted values: Decimals\r\n // \"min_pair_price\": null // Accepted values: Decimals\r\n },\r\n \"KMD-BEP20/BUSD-BEP20\": {\r\n \"base\": \"KMD-BEP20\",\r\n \"rel\": \"BUSD-BEP20\",\r\n \"spread\": \"1.025\",\r\n \"enable\": true\r\n // \"min_volume\": null,\r\n // // \"min_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"min_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max_volume\": null,\r\n // // \"max_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"max_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max\": false,\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 // \"price_elapsed_validity\": 300.0,\r\n // \"check_last_bidirectional_trade_thresh_hold\": false,\r\n // \"min_base_price\": null, // Accepted values: Decimals\r\n // \"min_rel_price\": null, // Accepted values: Decimals\r\n // \"min_pair_price\": null // Accepted values: Decimals\r\n }\r\n }\r\n // \"price_url\": \"https://prices.komodo.earth/api/v2/tickers\",\r\n // \"bot_refresh_rate\": 30.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"best_orders\",\r\n \"params\": {\r\n \"coin\": \"DOC\",\r\n \"exclude_mine\": true, // Accepted values: \"true\", \"false\". Defaults to false.,\r\n \"action\": \"buy\", // Accepted values: \"buy\", \"sell\"\r\n \"request_by\": {\r\n \"type\": \"volume\", // Accepted values: \"volume\", \"number\"\r\n \"value\": 1.1 // Accepted values: Decimals if \"type\": \"volume\", Unsigned Integers if \"type\": \"number\"\r\n }\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -7892,7 +8573,7 @@ "response": [] }, { - "name": "stop_simple_market_maker_bot", + "name": "orderbook", "event": [ { "listen": "prerequest", @@ -7919,7 +8600,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"stop_simple_market_maker_bot\"\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"orderbook\",\r\n \"params\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -7931,7 +8612,7 @@ "response": [] }, { - "name": "trade_preimage", + "name": "start_simple_market_maker_bot", "event": [ { "listen": "prerequest", @@ -7958,7 +8639,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 \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"start_simple_market_maker_bot\",\r\n \"params\": {\r\n \"cfg\": {\r\n \"DOC/MARTY\": {\r\n \"base\": \"DOC\",\r\n \"rel\": \"MARTY\",\r\n \"spread\": \"1.025\",\r\n \"enable\": true\r\n // \"min_volume\": null,\r\n // // \"min_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"min_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max_volume\": null,\r\n // // \"max_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"max_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max\": false,\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 // \"price_elapsed_validity\": 300.0,\r\n // \"check_last_bidirectional_trade_thresh_hold\": false,\r\n // \"min_base_price\": null, // Accepted values: Decimals\r\n // \"min_rel_price\": null, // Accepted values: Decimals\r\n // \"min_pair_price\": null // Accepted values: Decimals\r\n },\r\n \"KMD-BEP20/BUSD-BEP20\": {\r\n \"base\": \"KMD-BEP20\",\r\n \"rel\": \"BUSD-BEP20\",\r\n \"spread\": \"1.025\",\r\n \"enable\": true\r\n // \"min_volume\": null,\r\n // // \"min_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"min_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max_volume\": null,\r\n // // \"max_volume\": {\r\n // // \"percentage\": \"0.25\"\r\n // // },\r\n // // \"max_volume\": {\r\n // // \"usd\": \"1\"\r\n // // },\r\n // \"max\": false,\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 // \"price_elapsed_validity\": 300.0,\r\n // \"check_last_bidirectional_trade_thresh_hold\": false,\r\n // \"min_base_price\": null, // Accepted values: Decimals\r\n // \"min_rel_price\": null, // Accepted values: Decimals\r\n // \"min_pair_price\": null // Accepted values: Decimals\r\n }\r\n }\r\n // \"price_url\": \"https://prices.komodo.earth/api/v2/tickers\",\r\n // \"bot_refresh_rate\": 30.0\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}" }, "url": { "raw": "{{address}}", @@ -7968,14 +8649,9 @@ } }, "response": [] - } - ] - }, - { - "name": "Swaps", - "item": [ + }, { - "name": "recreate_swap_data", + "name": "stop_simple_market_maker_bot", "event": [ { "listen": "prerequest", @@ -8002,7 +8678,90 @@ ], "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}" + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"stop_simple_market_maker_bot\"\r\n // \"id\": null // Accepted values: Integers\r\n}\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" + } + } + ], + "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}}", @@ -8345,6 +9104,145 @@ "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}" } ] + }, + { + "name": "active_swaps", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\",\r\n \"params\": {}\r\n}" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "active_swaps (with status)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\",\r\n \"params\": {\r\n \"include_status\": true\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": "8155" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 11:37:32 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"uuids\": [\n \"7b60a494-f159-419c-8f41-02e10f897513\"\n ],\n \"statuses\": {\n \"7b60a494-f159-419c-8f41-02e10f897513\": {\n \"swap_type\": \"TakerV1\",\n \"swap_data\": {\n \"uuid\": \"7b60a494-f159-419c-8f41-02e10f897513\",\n \"my_order_uuid\": \"7b60a494-f159-419c-8f41-02e10f897513\",\n \"events\": [\n {\n \"timestamp\": 1730633787643,\n \"event\": {\n \"type\": \"Started\",\n \"data\": {\n \"taker_coin\": \"MARTY\",\n \"maker_coin\": \"DOC\",\n \"maker\": \"15d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732\",\n \"my_persistent_pub\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\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\": 1730641586,\n \"uuid\": \"7b60a494-f159-419c-8f41-02e10f897513\",\n \"started_at\": 1730633786,\n \"maker_payment_wait\": 1730636906,\n \"maker_coin_start_block\": 803888,\n \"taker_coin_start_block\": 818500,\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\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\n \"taker_coin_htlc_pubkey\": \"034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256\",\n \"p2p_privkey\": null\n }\n }\n },\n {\n \"timestamp\": 1730633801655,\n \"event\": {\n \"type\": \"Negotiated\",\n \"data\": {\n \"maker_payment_locktime\": 1730649385,\n \"maker_pubkey\": \"000000000000000000000000000000000000000000000000000000000000000000\",\n \"secret_hash\": \"b476e27c0c6680ac67765163b1b5736dd7649512\",\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\": 1730633802415,\n \"event\": {\n \"type\": \"TakerFeeSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f8901a12c9c4c1c0e3ebd6329a7a0cd3c0a34a2355e5bea93b50faaa46d8889eb4ee0000000006a47304402200774c8e6fbb94df8ab73d9dbbd858326b361cc132d14c90e4ebf7d2a6bc5f9b402204fa716b684c20a3c56b28a42e63bfa3edcd3a76e261bee674f00ec0ccff674160121034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256ffffffff0290b60400000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac882e4317120000001976a914d64ad24e655ba7221ea51c7931aad5b98da77f3c88ac4a602767000000000000000000000000000000\",\n \"tx_hash\": \"3febb9949f3e751c568b774719a9fbf851bc9b4c6083da8c0927e4d1c078c21c\"\n }\n }\n },\n {\n \"timestamp\": 1730633804416,\n \"event\": {\n \"type\": \"TakerPaymentInstructionsReceived\",\n \"data\": null\n }\n },\n {\n \"timestamp\": 1730633804421,\n \"event\": {\n \"type\": \"MakerPaymentReceived\",\n \"data\": {\n \"tx_hex\": \"0400008085202f89045c20450775f07a4c448fbfebe47fdfa058c9a25254d36874765b44e1b3aaa193020000006a473044022079e6fbe2a24beb093858c644f765403d7a23714c17bee99c0b88fdd4b1d2bfbf02206f104b94437e4ce39d6854b48c1abccd218ee42436c8b5ac29e9136d538aa89501210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff620a3f975950554a03ecce8a2918958e8f1a17db70e7efe420618f3622844196000000006a47304402205721b4ce8c079604ce6f5779289fdc66912e064f12c40cc174daab80534a623f0220575fcc814edbec126834ce408ecbcf7ec2d7a8df2e323273266c8b47518ba9e701210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff9ac8dbb806e5722c00c60623c7313c41892649531a1c134f5d700b8f85157559000000006a473044022074a909367ba10cf375fb84414bad2ee41ffb35940132d94a9033736185df4b58022032b6dd0aeb5e102584e63d294d66367e19eaa599ed438d0209a039190bca10f401210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff46c38d985571abe367e07c7415b278bebdaa7b6b7283a7d069dfde6fb820cb8d020000006a47304402203397ffb5b16d0c829aac977ae92d8bc76cd3e9afc17bef3da436272bb672a0bd02207b3c026e25fd70048f12c166851a1d53ff2931e5073028588dde9715d63a527501210315d9c51c657ab1be4ae9d3ab6e76a619d3bccfe830d5363fa168424c0d044732ffffffff03001c4e0e0000000017a914f9bb3725cdd5d07b6f2b5387b5cf4471a4ad0463870000000000000000166a14b476e27c0c6680ac67765163b1b5736dd7649512dee80841410500001976a9141462c3dd3f936d595c9af55978003b27c250441f88ac4b602767000000000000000000000000000000\",\n \"tx_hash\": \"ebeba78542427dcf9bc720063582b99153afe6efcde49d16aacf67a8e597a41e\"\n }\n }\n },\n {\n \"timestamp\": 1730633804421,\n \"event\": {\n \"type\": \"MakerPaymentWaitConfirmStarted\"\n }\n },\n {\n \"timestamp\": 1730633836140,\n \"event\": {\n \"type\": \"MakerPaymentValidatedAndConfirmed\"\n }\n },\n {\n \"timestamp\": 1730633839137,\n \"event\": {\n \"type\": \"TakerPaymentSent\",\n \"data\": {\n \"tx_hex\": \"0400008085202f89011cc278c0d1e427098cda83604c9bbc51f8fba91947778b561c753e9f94b9eb3f010000006a473044022024b2c5bc5b23e8e774f6a8001de8f94a4e6888456722fede2be6b061d6d93c9302203805a7d1c9361fee2066e26f6196476f73f34246f60308cfafa3783a94a3cab30121034cbf74541c1d3436bc7638a2738f64df4fee22d4443cdf11d54cea7d7f55f256ffffffff03001c4e0e0000000017a914fbb04e8d9b7b4098c887aed16124291646462525870000000000000000166a14b476e27c0c6680ac67765163b1b5736dd7649512a00ef508120000001976a914d64ad24e655ba7221ea51c7931aad5b98da77f3c88ac6c602767000000000000000000000000000000\",\n \"tx_hash\": \"08e94af501630e46f4b2c5d64e6851c6bc9a3828506fef9f6668938d36c7b2da\"\n }\n }\n },\n {\n \"timestamp\": 1730633839137,\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 30,\n 164,\n 151,\n 229,\n 168,\n 103,\n 207,\n 170,\n 22,\n 157,\n 228,\n 205,\n 239,\n 230,\n 175,\n 83,\n 145,\n 185,\n 130,\n 53,\n 6,\n 32,\n 199,\n 155,\n 207,\n 125,\n 66,\n 66,\n 133,\n 167,\n 235,\n 235,\n 0,\n 0,\n 0,\n 0,\n 181,\n 71,\n 48,\n 68,\n 2,\n 32,\n 15,\n 63,\n 147,\n 207,\n 14,\n 237,\n 249,\n 179,\n 18,\n 218,\n 20,\n 136,\n 99,\n 82,\n 155,\n 227,\n 183,\n 14,\n 187,\n 207,\n 52,\n 142,\n 3,\n 42,\n 19,\n 130,\n 48,\n 55,\n 97,\n 54,\n 17,\n 43,\n 2,\n 32,\n 6,\n 191,\n 10,\n 15,\n 31,\n 179,\n 175,\n 110,\n 81,\n 38,\n 121,\n 112,\n 192,\n 22,\n 147,\n 186,\n 193,\n 103,\n 29,\n 246,\n 69,\n 93,\n 184,\n 60,\n 147,\n 105,\n 235,\n 73,\n 147,\n 183,\n 172,\n 122,\n 1,\n 76,\n 107,\n 99,\n 4,\n 41,\n 157,\n 39,\n 103,\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 180,\n 118,\n 226,\n 124,\n 12,\n 102,\n 128,\n 172,\n 103,\n 118,\n 81,\n 99,\n 177,\n 181,\n 115,\n 109,\n 215,\n 100,\n 149,\n 18,\n 136,\n 33,\n 3,\n 76,\n 191,\n 116,\n 84,\n 28,\n 29,\n 52,\n 54,\n 188,\n 118,\n 56,\n 162,\n 115,\n 143,\n 100,\n 223,\n 79,\n 238,\n 34,\n 212,\n 68,\n 60,\n 223,\n 17,\n 213,\n 76,\n 234,\n 125,\n 127,\n 85,\n 242,\n 86,\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 214,\n 74,\n 210,\n 78,\n 101,\n 91,\n 167,\n 34,\n 30,\n 165,\n 28,\n 121,\n 49,\n 170,\n 213,\n 185,\n 141,\n 167,\n 127,\n 60,\n 136,\n 172,\n 41,\n 157,\n 39,\n 103,\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 218,\n 178,\n 199,\n 54,\n 141,\n 147,\n 104,\n 102,\n 159,\n 239,\n 111,\n 80,\n 40,\n 56,\n 154,\n 188,\n 198,\n 81,\n 104,\n 78,\n 214,\n 197,\n 178,\n 244,\n 70,\n 14,\n 99,\n 1,\n 245,\n 74,\n 233,\n 8,\n 0,\n 0,\n 0,\n 0,\n 182,\n 71,\n 48,\n 68,\n 2,\n 32,\n 91,\n 24,\n 33,\n 89,\n 150,\n 44,\n 60,\n 26,\n 59,\n 98,\n 8,\n 8,\n 75,\n 9,\n 180,\n 252,\n 173,\n 239,\n 25,\n 51,\n 107,\n 150,\n 243,\n 216,\n 206,\n 42,\n 41,\n 114,\n 51,\n 198,\n 217,\n 53,\n 2,\n 32,\n 37,\n 164,\n 97,\n 254,\n 1,\n 132,\n 224,\n 60,\n 170,\n 53,\n 174,\n 76,\n 177,\n 31,\n 82,\n 255,\n 218,\n 21,\n 233,\n 126,\n 210,\n 217,\n 220,\n 203,\n 185,\n 74,\n 118,\n 244,\n 37,\n 195,\n 196,\n 62,\n 1,\n 81,\n 76,\n 107,\n 99,\n 4,\n 178,\n 126,\n 39,\n 103,\n 177,\n 117,\n 33,\n 3,\n 76,\n 191,\n 116,\n 84,\n 28,\n 29,\n 52,\n 54,\n 188,\n 118,\n 56,\n 162,\n 115,\n 143,\n 100,\n 223,\n 79,\n 238,\n 34,\n 212,\n 68,\n 60,\n 223,\n 17,\n 213,\n 76,\n 234,\n 125,\n 127,\n 85,\n 242,\n 86,\n 172,\n 103,\n 130,\n 1,\n 32,\n 136,\n 169,\n 20,\n 180,\n 118,\n 226,\n 124,\n 12,\n 102,\n 128,\n 172,\n 103,\n 118,\n 81,\n 99,\n 177,\n 181,\n 115,\n 109,\n 215,\n 100,\n 149,\n 18,\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 214,\n 74,\n 210,\n 78,\n 101,\n 91,\n 167,\n 34,\n 30,\n 165,\n 28,\n 121,\n 49,\n 170,\n 213,\n 185,\n 141,\n 167,\n 127,\n 60,\n 136,\n 172,\n 178,\n 126,\n 39,\n 103,\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 \"maker_amount\": \"2.4\",\n \"maker_coin\": \"DOC\",\n \"maker_coin_usd_price\": null,\n \"taker_amount\": \"2.4\",\n \"taker_coin\": \"MARTY\",\n \"taker_coin_usd_price\": null,\n \"gui\": \"mm2_777\",\n \"mm_version\": \"2.2.0-beta_caf803b\",\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 \"MakerPaymentSpendConfirmed\",\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 \"MakerPaymentSpendConfirmFailed\",\n \"TakerPaymentWaitRefundStarted\",\n \"TakerPaymentRefundStarted\",\n \"TakerPaymentRefunded\",\n \"TakerPaymentRefundedByWatcher\",\n \"TakerPaymentRefundFailed\",\n \"TakerPaymentRefundFinished\"\n ]\n }\n }\n }\n },\n \"id\": null\n}" + }, + { + "name": "active_swaps (without status)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "\r\n{\r\n \"mmrpc\": \"2.0\",\r\n \"userpass\": \"{{userpass}}\",\r\n \"method\": \"active_swaps\",\r\n \"params\": {\r\n \"include_status\": false\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": "99" + }, + { + "key": "date", + "value": "Sun, 03 Nov 2024 11:39:33 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"uuids\": [\n \"7b60a494-f159-419c-8f41-02e10f897513\"\n ],\n \"statuses\": {}\n },\n \"id\": null\n}" + } + ] } ] }, @@ -9361,7 +10259,7 @@ ] }, { - "name": "start_eth_fee_estimator", + "name": "get_public_key", "event": [ { "listen": "prerequest", @@ -9373,8 +10271,7 @@ "\r", "pm.request.body.update(strippedData);" ], - "type": "text/javascript", - "packages": {} + "type": "text/javascript" } } ], @@ -9389,7 +10286,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"start_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"ETH\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + "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}}", @@ -9398,49 +10295,796 @@ ] } }, - "response": [] - }, - { - "name": "get_eth_estimated_fee_per_gas", - "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_public_key", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "118" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:40 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + } + ] + }, + { + "name": "peer_connection_healthcheck", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWJWBnkVsVNjiqUEPjLyHpiSmQVAJ5t6qt1Txv5ctJi9Xd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "peer_connection_healthcheck (true)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "118" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:40 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + }, + { + "name": "peer_connection_healthcheck (false)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWDgFfyAzbuYNLMzMaZT9zBJX9EHd38XLQDRbNDYAYqMzd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "40" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:49:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":false,\"id\":null}" + } + ] + }, + { + "name": "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", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "get_enabled_coins", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "260" + }, + { + "key": "date", + "value": "Wed, 16 Oct 2024 17:16:48 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"coins\":[{\"ticker\":\"ETH\"},{\"ticker\":\"PGX-PLG20\"},{\"ticker\":\"ATOM-IBC_IRIS\"},{\"ticker\":\"NFT_ETH\"},{\"ticker\":\"KMD\"},{\"ticker\":\"IRIS\"},{\"ticker\":\"AAVE-PLG20\"},{\"ticker\":\"MINDS-ERC20\"},{\"ticker\":\"NFT_MATIC\"},{\"ticker\":\"MATIC\"}]},\"id\":null}" + } + ] + }, + { + "name": "get_public_key_hash", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "get_public_key_hash", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "97" + }, + { + "key": "date", + "value": "Thu, 17 Oct 2024 06:43:31 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key_hash\":\"d346067e3c3c3964c395fee208594790e29ede5d\"},\"id\":null}" + } + ] + } + ] + }, + { + "name": "Fee Management", + "item": [ + { + "name": "start_eth_fee_estimator", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"start_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Error: NoSuchCoin", + "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\": \"start_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"ETH\"\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, 04 Nov 2024 11:18:50 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"error\": \"No such coin ETH\",\n \"error_path\": \"get_estimated_fees.lp_coins\",\n \"error_trace\": \"get_estimated_fees:244] lp_coins:4779]\",\n \"error_type\": \"NoSuchCoin\",\n \"error_data\": {\n \"coin\": \"ETH\"\n },\n \"id\": null\n}" + }, + { + "name": "Error: CoinNotSupported", + "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\": \"start_eth_fee_estimator\",\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": "plain", + "header": [ + { + "key": "access-control-allow-origin", + "value": "http://localhost:3000" + }, + { + "key": "content-length", + "value": "188" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:21:57 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Gas fee estimation not supported for this coin\",\"error_path\":\"get_estimated_fees\",\"error_trace\":\"get_estimated_fees:206]\",\"error_type\":\"CoinNotSupported\",\"id\":null}" + }, + { + "name": "Success", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"start_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\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": "55" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:27:17 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"result\": \"Success\"\n },\n \"id\": null\n}" + } + ] + }, + { + "name": "stop_eth_fee_estimator", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"stop_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Error: NotRunning", + "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\": \"stop_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"ETH\"\n }\n // \"id\": null // Accepted values: Integers\n}\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": "168" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:29:26 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"error\":\"Gas fee estimator is not running\",\"error_path\":\"get_estimated_fees\",\"error_trace\":\"get_estimated_fees:233]\",\"error_type\":\"NotRunning\",\"id\":null}" + }, + { + "name": "Success", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"mmrpc\": \"2.0\",\n \"method\": \"stop_eth_fee_estimator\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\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": "55" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:30:01 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" + } + ], + "cookie": [], + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"result\": \"Success\"\n },\n \"id\": null\n}" + } + ] + }, + { + "name": "set_swap_transaction_fee_policy", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "// Strip JSON Comments\r", + "const rawData = pm.request.body.toString();\r", + "const strippedData = rawData.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, (m, g) => g ? \"\" : m)\r", + "\r", + "pm.request.body.update(strippedData);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { "mode": "raw", - "raw": "{\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_eth_estimated_fee_per_gas\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"ETH\"\n }\n // \"id\": null // Accepted values: Integers\n}\n" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"set_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\",\n \"swap_tx_fee_policy\": \"High\"\n }\n // \"id\": null // Accepted values: Integers\n }" + }, + "url": { + "raw": "{{address}}", + "host": [ + "{{address}}" + ] + } + }, + "response": [ + { + "name": "Success: Internal", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\"\n }\n // \"id\": null // Accepted values: Integers\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": "45" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:40:58 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Internal\",\"id\":null}" + }, + { + "name": "Error: Unsupported", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\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": "48" + }, + { + "key": "date", + "value": "Mon, 04 Nov 2024 11:41:56 GMT" + } + ], + "cookie": [], + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Unsupported\",\"id\":null}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [ { - "name": "Error: CoinNotSupported", + "name": "Success: Set to Medium", "originalRequest": { "method": "POST", "header": [ @@ -9452,7 +11096,7 @@ ], "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" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"set_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\",\n \"swap_tx_fee_policy\": \"Medium\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9461,9 +11105,9 @@ ] } }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", "header": [ { "key": "access-control-allow-origin", @@ -9471,25 +11115,18 @@ }, { "key": "content-length", - "value": "188" + "value": "43" }, { "key": "date", - "value": "Mon, 09 Sep 2024 05:58:16 GMT" - }, - { - "key": "Content-Type", - "value": "application/json", - "name": "Content-Type", - "description": "", - "type": "text" + "value": "Mon, 04 Nov 2024 11:50:29 GMT" } ], "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}" + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Medium\",\"id\":null}" }, { - "name": "Error: NoSuchCoin", + "name": "Success: Set to High", "originalRequest": { "method": "POST", "header": [ @@ -9501,7 +11138,7 @@ ], "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" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"set_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\",\n \"swap_tx_fee_policy\": \"High\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9510,9 +11147,9 @@ ] } }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", "header": [ { "key": "access-control-allow-origin", @@ -9520,65 +11157,18 @@ }, { "key": "content-length", - "value": "204" + "value": "41" }, { "key": "date", - "value": "Mon, 09 Sep 2024 05:59:38 GMT" - }, - { - "key": "Content-Type", - "value": "application/json", - "name": "Content-Type", - "description": "", - "type": "text" + "value": "Mon, 04 Nov 2024 11:50:56 GMT" } ], "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": "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" + "body": "{\"mmrpc\":\"2.0\",\"result\":\"High\",\"id\":null}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [ { - "name": "get_public_key", + "name": "Success: Set to Low", "originalRequest": { "method": "POST", "header": [ @@ -9590,7 +11180,7 @@ ], "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" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"set_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\",\n \"swap_tx_fee_policy\": \"Low\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9609,20 +11199,20 @@ }, { "key": "content-length", - "value": "118" + "value": "40" }, { "key": "date", - "value": "Thu, 17 Oct 2024 06:43:40 GMT" + "value": "Mon, 04 Nov 2024 11:51:24 GMT" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Low\",\"id\":null}" } ] }, { - "name": "peer_connection_healthcheck", + "name": "get_swap_transaction_fee_policy", "event": [ { "listen": "prerequest", @@ -9650,7 +11240,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWJWBnkVsVNjiqUEPjLyHpiSmQVAJ5t6qt1Txv5ctJi9Xd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9661,7 +11251,7 @@ }, "response": [ { - "name": "peer_connection_healthcheck (true)", + "name": "Success: Internal", "originalRequest": { "method": "POST", "header": [ @@ -9673,7 +11263,7 @@ ], "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" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"MATIC\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9692,18 +11282,18 @@ }, { "key": "content-length", - "value": "118" + "value": "45" }, { "key": "date", - "value": "Thu, 17 Oct 2024 06:43:40 GMT" + "value": "Mon, 04 Nov 2024 11:40:58 GMT" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key\":\"03d8064eece4fa5c0f8dc0267f68cee9bdd527f9e88f3594a323428718c391ecc2\"},\"id\":null}" + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Internal\",\"id\":null}" }, { - "name": "peer_connection_healthcheck (false)", + "name": "Error: Unsupported", "originalRequest": { "method": "POST", "header": [ @@ -9715,7 +11305,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"peer_connection_healthcheck\",\r\n \"params\": {\r\n \"peer_address\": \"12D3KooWDgFfyAzbuYNLMzMaZT9zBJX9EHd38XLQDRbNDYAYqMzd\"\r\n }\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "raw": " {\n \"userpass\": \"{{userpass}}\",\n \"method\": \"get_swap_transaction_fee_policy\",\n \"mmrpc\": \"2.0\",\n \"params\": {\n \"coin\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n }" }, "url": { "raw": "{{address}}", @@ -9734,20 +11324,20 @@ }, { "key": "content-length", - "value": "40" + "value": "48" }, { "key": "date", - "value": "Thu, 17 Oct 2024 06:49:58 GMT" + "value": "Mon, 04 Nov 2024 11:41:56 GMT" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":false,\"id\":null}" + "body": "{\"mmrpc\":\"2.0\",\"result\":\"Unsupported\",\"id\":null}" } ] }, { - "name": "get_enabled_coins", + "name": "get_eth_estimated_fee_per_gas", "event": [ { "listen": "prerequest", @@ -9775,7 +11365,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "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}}", @@ -9786,7 +11376,7 @@ }, "response": [ { - "name": "get_enabled_coins", + "name": "Error: CoinNotSupported", "originalRequest": { "method": "POST", "header": [ @@ -9798,7 +11388,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_enabled_coins\" // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "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}}", @@ -9807,9 +11397,9 @@ ] } }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "plain", + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -9817,70 +11407,92 @@ }, { "key": "content-length", - "value": "260" + "value": "188" }, { "key": "date", - "value": "Wed, 16 Oct 2024 17:16:48 GMT" + "value": "Mon, 09 Sep 2024 05:58:16 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"coins\":[{\"ticker\":\"ETH\"},{\"ticker\":\"PGX-PLG20\"},{\"ticker\":\"ATOM-IBC_IRIS\"},{\"ticker\":\"NFT_ETH\"},{\"ticker\":\"KMD\"},{\"ticker\":\"IRIS\"},{\"ticker\":\"AAVE-PLG20\"},{\"ticker\":\"MINDS-ERC20\"},{\"ticker\":\"NFT_MATIC\"},{\"ticker\":\"MATIC\"}]},\"id\":null}" - } - ] - }, - { - "name": "get_public_key_hash", - "event": [ + "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}" + }, { - "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: NoSuchCoin", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"userpass\": \"{{userpass}}\",\r\n \"mmrpc\": \"2.0\",\r\n \"method\": \"get_public_key_hash\"\r\n // \"params\": {},\r\n // \"id\": null // Accepted values: Integers\r\n}\r\n" + "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}" }, - "url": { - "raw": "{{address}}", - "host": [ - "{{address}}" - ] - } - }, - "response": [ { - "name": "get_public_key_hash", + "name": "Success", "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\": \"get_public_key_hash\"\r\n // \"params\": {},\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\": \"BNB\"\n }\n // \"id\": null // Accepted values: Integers\n}\n", + "options": { + "raw": { + "language": "json" + } + } }, "url": { "raw": "{{address}}", @@ -9891,7 +11503,7 @@ }, "status": "OK", "code": 200, - "_postman_previewlanguage": "plain", + "_postman_previewlanguage": "json", "header": [ { "key": "access-control-allow-origin", @@ -9899,15 +11511,22 @@ }, { "key": "content-length", - "value": "97" + "value": "483" }, { "key": "date", - "value": "Thu, 17 Oct 2024 06:43:31 GMT" + "value": "Mon, 04 Nov 2024 11:31:08 GMT" + }, + { + "key": "Content-Type", + "value": "application/json", + "name": "Content-Type", + "description": "", + "type": "text" } ], "cookie": [], - "body": "{\"mmrpc\":\"2.0\",\"result\":{\"public_key_hash\":\"d346067e3c3c3964c395fee208594790e29ede5d\"},\"id\":null}" + "body": "{\n \"mmrpc\": \"2.0\",\n \"result\": {\n \"base_fee\": \"5.155924173\",\n \"low\": {\n \"max_priority_fee_per_gas\": \"0.008999999\",\n \"max_fee_per_gas\": \"6.09\",\n \"min_wait_time\": null,\n \"max_wait_time\": null\n },\n \"medium\": {\n \"max_priority_fee_per_gas\": \"0.049\",\n \"max_fee_per_gas\": \"6.13\",\n \"min_wait_time\": null,\n \"max_wait_time\": null\n },\n \"high\": {\n \"max_priority_fee_per_gas\": \"0.089\",\n \"max_fee_per_gas\": \"6.17\",\n \"min_wait_time\": null,\n \"max_wait_time\": null\n },\n \"source\": \"blocknative\",\n \"base_fee_trend\": \"\",\n \"priority_fee_trend\": \"\",\n \"units\": \"Gwei\"\n },\n \"id\": null\n}" } ] } diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 91885e7a..6c11b6a2 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -36,7 +36,7 @@ The `RawTxInfo` object includes the following items: { "to": "0x927DaFDDa16F1742BeFcBEAE6798090354B294A9", "value": "0.85", - "gas_limit": "21000" + "gas_limit": "21000", "pay_for_gas": { "tx_type": "Eip1559", "max_fee_per_gas": "1234.567", diff --git a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx index 73ab5a69..fcd02c6d 100644 --- a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx @@ -121,7 +121,7 @@ The transaction can then be broadcasted to the network using the [`send_raw_tran "tx": { "to": "0x927DaFDDa16F1742BeFcBEAE6798090354B294A9", "value": "0.85", - "gas_limit": "21000" + "gas_limit": "21000", "pay_for_gas": { "tx_type": "Eip1559", "max_fee_per_gas": "1234.567", From 75b84177928d3a1b805ef611f152d4c18764ada5 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sat, 9 Nov 2024 12:45:04 +0800 Subject: [PATCH 26/29] update PayForGas object descriptions --- .../api/common_structures/wallet/index.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 6c11b6a2..17f0781b 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -74,12 +74,13 @@ The `PayForGas` object includes the following items: | Parameter | Type | Description | | ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| tx\_type | string | ERC20-like coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | -| gas\_price | decimal | Values are in Gwei. The base gas price for the transaction. | +| tx\_type | string | ETH/EVM coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | +| gas\_price | decimal | Only used if tx\_type is `Legacy`. Values are in Gwei. The maximium price per gas unit the user is willing to pay for the transaction. | | max\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | | max\_priority\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | | min\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated minimum transaction wait time in mempool (in ms) for this priority level. | -| max\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated mxnimum transaction wait time in mempool (in ms) for this priority level. | +| max\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated maximum transaction wait time in mempool (in ms) for this priority level. | + [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to [chainlist.org](https://chainlist.org). There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. From bccaa382d8ea48fb1365d7a59368225f340ec2b6 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sat, 9 Nov 2024 12:45:27 +0800 Subject: [PATCH 27/29] update description to indicate only supported coins --- .../fee_management/get_swap_transaction_fee_policy/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx index f5b8536f..faa1b173 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx @@ -1,10 +1,10 @@ export const title = "Komodo DeFi Framework Method: Get Swap Transaction Fee Policy"; export const description = - "The get_swap_transaction_fee_policy method allows you to get the current gas fees policy used when estimating swap transaction fees."; + "The get_swap_transaction_fee_policy method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens.."; # get\_swap\_transaction\_fee\_policy -The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees. +The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens. | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------- | From 3a603c4ffd256193c3f3676ed88c6c4fae1187ff Mon Sep 17 00:00:00 2001 From: smk762 Date: Sat, 9 Nov 2024 12:48:30 +0800 Subject: [PATCH 28/29] update description of supported eth/evm --- .../get_swap_transaction_fee_policy/index.mdx | 2 +- .../set_swap_transaction_fee_policy/index.mdx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx index faa1b173..806528e8 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx @@ -8,7 +8,7 @@ The `get_swap_transaction_fee_policy` method allows you to get the current gas f | parameter | Type | Description | | --------- | ------ | ---------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to view the fee policy for. | +| coin | string | Ticker of the supported ETH/EVM coin/asset for which we want to view the fee policy for. | ## Request diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx index d8472369..edfb1b91 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx @@ -1,14 +1,14 @@ export const title = "Komodo DeFi Framework Method: Set Swap Transaction Fee Policy"; export const description = - "The set_swap_transaction_fee_policy method allows you to set the gas fee policy used when estimating swap transaction fees."; + "The set_swap_transaction_fee_policy method allows you to set the gas fee policy used by supported ETH/EVM coins or tokens when estimating swap transaction fees."; # set\_swap\_transaction\_fee\_policy -The `set_swap_transaction_fee_policy` method allows you to set the gas fee policy used when estimating swap transaction fees. +The `set_swap_transaction_fee_policy` method allows you to set the gas fee policy used by supported ETH/EVM coins or tokens when estimating swap transaction fees. | parameter | Type | Description | | --------------------- | ------ | --------------------------------------------------------------------- | -| coin | string | Ticker of the coin/asset for which we want to set the fee policy for. | +| coin | string | Ticker of the supported ETH/EVM coin or tokens for which we want to set the fee policy for. | | swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. | ## Request From e76a84bea42f842b00c757b5392a19eae86b94de Mon Sep 17 00:00:00 2001 From: smk762 Date: Sat, 9 Nov 2024 12:50:47 +0800 Subject: [PATCH 29/29] linting --- .../api/common_structures/wallet/index.mdx | 7 +++---- .../get_swap_transaction_fee_policy/index.mdx | 4 ++-- .../set_swap_transaction_fee_policy/index.mdx | 6 +++--- .../api/v20/sign_raw_transaction/index.mdx | 6 +++--- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx index 17f0781b..41ee56bf 100644 --- a/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx +++ b/src/pages/komodo-defi-framework/api/common_structures/wallet/index.mdx @@ -55,7 +55,7 @@ The `InputTxns` object includes the following items: | tx\_hash | string | The transaction id of an unspent transaction from the same wallet output. | | index | integer | The \[output index([https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for](https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for))] of this unspent transaction output. | | script\_pub\_key | string | The [scriptpubkey](https://learnmeabitcoin.com/technical/scriptPubKey) of this unspent transaction output. | -| amount | float | The value of this unspent transaction output. | +| amount | decimal | The value of this unspent transaction output. | ```json @@ -74,13 +74,12 @@ The `PayForGas` object includes the following items: | Parameter | Type | Description | | ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| tx\_type | string | ETH/EVM coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | -| gas\_price | decimal | Only used if tx\_type is `Legacy`. Values are in Gwei. The maximium price per gas unit the user is willing to pay for the transaction. | +| tx\_type | string | ETH/EVM coins and tokens only. Options are `Legacy` or `Eip1559`. The type of transaction values being configured. | +| gas\_price | decimal | Only used if tx\_type is `Legacy`. Values are in Gwei. The maximium price per gas unit the user is willing to pay for the transaction. | | max\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. The maximum amount to pay per unit of gas to get your transaction included in a block. | | max\_priority\_fee\_per\_gas | decimal | Only used if tx\_type is `Eip1559`. Values are in Gwei. This is paid directly to the miner, and can be set by the user to attract minimal delay in transaction confirmation. | | min\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated minimum transaction wait time in mempool (in ms) for this priority level. | | max\_wait\_time | integer | Optional, only used if tx\_type is `Eip1559`. Estimated maximum transaction wait time in mempool (in ms) for this priority level. | - [Eip1559](https://www.coinbase.com/en-au/blog/the-technical-benefits-of-eip-1559) allows users to save on gas fees. To use this feature for a coin/token, its entry in your `coins` file must include fields for `chain_id` and `max_eth_tx_type`. To allow eip-1559 transactions, `max_eth_tx_type` should be set to `2`. To find the `chain_id` for an \[EVM network([https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/](https://blog.thirdweb.com/evm-compatible-blockchains-and-ethereum-virtual-machine/))], refer to [chainlist.org](https://chainlist.org). There is also a new `gas_fee_estimator` parameter in the coins file, which can be set to `provider` or `simple`. diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx index 806528e8..6df76652 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx @@ -6,8 +6,8 @@ export const description = The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens. -| parameter | Type | Description | -| --------- | ------ | ---------------------------------------------------------------------- | +| parameter | Type | Description | +| --------- | ------ | ---------------------------------------------------------------------------------------- | | coin | string | Ticker of the supported ETH/EVM coin/asset for which we want to view the fee policy for. | ## Request diff --git a/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx index edfb1b91..6d8e5c30 100644 --- a/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/fee_management/set_swap_transaction_fee_policy/index.mdx @@ -6,10 +6,10 @@ export const description = The `set_swap_transaction_fee_policy` method allows you to set the gas fee policy used by supported ETH/EVM coins or tokens when estimating swap transaction fees. -| parameter | Type | Description | -| --------------------- | ------ | --------------------------------------------------------------------- | +| parameter | Type | Description | +| --------------------- | ------ | ------------------------------------------------------------------------------------------- | | coin | string | Ticker of the supported ETH/EVM coin or tokens for which we want to set the fee policy for. | -| swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. | +| swap\_tx\_fee\_policy | string | Possible values: `Low`, `Medium`, `High`, `Internal`. | ## Request diff --git a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx index fcd02c6d..126ef83e 100644 --- a/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx +++ b/src/pages/komodo-defi-framework/api/v20/sign_raw_transaction/index.mdx @@ -123,9 +123,9 @@ The transaction can then be broadcasted to the network using the [`send_raw_tran "value": "0.85", "gas_limit": "21000", "pay_for_gas": { - "tx_type": "Eip1559", - "max_fee_per_gas": "1234.567", - "max_priority_fee_per_gas": "1.2" + "tx_type": "Eip1559", + "max_fee_per_gas": "1234.567", + "max_priority_fee_per_gas": "1.2" } } }