On this page

latest contributor to this doc

Last Edit:

@smk762

Active Swaps

API-v2active_swaps

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

ParameterTypeRequiredDefaultDescription
include_statusboolfalseWhether to include swap statuses in response.

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

Active Swaps (without include_status)

POST
active_swaps
{
  "mmrpc": "2.0",
  "userpass": "RPC_UserP@SSW0RD",
  "method": "active_swaps",
  "params": {
    "include_status": false
  }
}

Active Swaps

POST
active_swaps
{
  "mmrpc": "2.0",
  "userpass": "RPC_UserP@SSW0RD",
  "method": "active_swaps",
  "params": {
    "include_status": true
  },
  "id": 42
}