BarterDEX creates swap files for all trades. They are available in the data dir. Depending on which GUI you are using they can be found in different locations. The purpose of this post is to help you find the files.

These swap files are necessary in case you have a swap that is stuck or pending or you need them to keep all history. These files contains all information related to your swap. There are multiple files for a single swap. Check the files below for a swap 4062159185-2992643231.

4062159185-2992643231
4062159185-2992643231.alicepayment
4062159185-2992643231.bobdeposit
4062159185-2992643231.bobpayment
4062159185-2992643231.bobreclaim
4062159185-2992643231.bobrefund
4062159185-2992643231.finished
4062159185-2992643231.myfee


The filename of the swapfiles are actually named after Request ID & Quote ID like the image below:



Location of the directory where you can find the swapfiles

barterDEX CLI

~/SuperNET/iguana/DB/SWAPS/


BarterDEX GUI

Linux: ~/.BarterDEX/DB/SWAPS
macOS: ~/Library/Application Support/BarterDEX/DB/SWAPS
Windows: %appdata%\BarterDEX\DB\SWAPS 


HyperDEX

Linux: ~/.config/HyperDEX/marketmaker/DB/SWAPS
macOS: ~/Library/Application Support/HyperDEX/marketmaker/DB/SWAPS
Windows: %appdata%\HyperDEX\marketmaker\DB\SWAPS 


OOT dAPP

Linux: ~/.config/OOTdapp/marketmaker/DB/SWAPS
macOS: ~/Library/Application Support/OOTdapp/marketmaker/DB/SWAPS
Windows: %appdata%\OOTdapp\marketmaker\DB\SWAPS