# active_swaps

active_swaps (include_status)

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

# Arguments

Structure Type Description
include_status bool whether to include swap statuses in response; defaults to false

# Response

Structure Type Description
result result object
result.uuids array of strings uuids of currently running swaps
result.statuses object (map) the uuid -> swap status map of currently running swaps; null if include_status is false in the request

# 📌 Examples

# Command (without include_status)

curl --url "http://127.0.0.1:7783" --data "
{
  \"userpass\":\"$userpass\",
  \"method\":\"active_swaps\"
}
"

# Command (include_status = true)

curl --url "http://127.0.0.1:7783" --data "
{
  \"userpass\":\"$userpass\",
  \"method\":\"active_swaps\",
  \"include_status\": true
}
"