# my_swap_status

uuid

The my_swap_status method returns the data of an atomic swap executed on an Komodo DeFi Framework node.

# Arguments

Structure Type Description
params uuid string the uuid of swap, typically received from the buy/sell call

# Response

Structure Type Description
events array of objects the events that occurred during the swap
events.type string an event type; the list of event types with their data structure is available below
events.data object additional data of the event; the list of events with their data structure is available below
success_events array of strings a list of events that gained a success swap state; the contents are listed in the order in which they should occur in the events array
error_events array of strings a list of events that fell into an error swap state; if at least 1 of the events happens, the swap is considered a failure
type string whether the node acted as a market Maker or Taker
uuid string swap uuid
gui string (optional) information about gui; copied from Komodo DeFi Framework configuration (MM2.json)
mm_version string (optional) Komodo DeFi Framework version
maker_coin string (optional) ticker of maker coin
taker_coin string (optional) ticker of taker coin
maker_amount string (numeric, optional) the amount of coins to be swapped by maker
taker_amount string (numeric, optional) the amount of coins to be swapped by taker
my_info object (optional) this object maps event data to make displaying swap data in a GUI simpler (my_coin, my_amount, etc.)
recoverable bool whether the swap can be recovered using the recover_funds_of_swap API command. Important note: The Komodo DeFi Framework does not record the state regarding whether the swap was recovered or not. The Komodo DeFi Framework allows as many calls to the recover_funds_of_swap method as necessary, in case of errors
my_order_uuid string (uuid, optional) the uuid of order that matched to start the swap

# Maker Swap Events

# Taker Swap Events

# 📌 Examples

# Command

curl --url "http://127.0.0.1:7783" --data "{\"method\":\"my_swap_status\",\"params\":{\"uuid\":\"d14452bb-e82d-44a0-86b0-10d4cdcb8b24\"},\"userpass\":\"$userpass\"}"