On this page

latest contributor to this doc

Last Edit:

@smk762

Active Swaps

deprecatedactive_swaps

This method has been deprecated in favor of active_swaps v2. The legacy version does not include v2 (Trading Protocol Upgrade) swap statuses in responses (it only returns uuids for these).

The active_swaps method returns all swaps currently running on the Komodo DeFi Framework API node.

ParameterTypeRequiredDefaultDescription
include_statusboolfalseWhether to include swap statuses in response.

ParameterTypeDescription
statusesobject (map)Only visible if include_status request parameter is true. A map of standard SwapStatus objects, delineated by the related UUID.
uuidsarray of stringsA list of currently active swap UUIDs.

active_swaps

POST
active_swaps
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "active_swaps"
}

active_swaps

POST
active_swaps
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "active_swaps",
  "include_status": true
}