From 9e4b44651b79910e59726ee1708195af43c0c9c2 Mon Sep 17 00:00:00 2001 From: harsenyan3 Date: Thu, 18 Jul 2024 11:56:59 +0200 Subject: [PATCH 01/12] 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/12] . --- 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/12] 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/12] 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/12] 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/12] 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/12] 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/12] 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/12] 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/12] 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/12] 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/12] 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