This document covers how disputes are handled in Mostro CLI by both users and administrators.
When a trade goes wrong (e.g., fiat sent but Bitcoin not released), either party can initiate a dispute.
mostro-cli dispute -o <order-id>Mostro changes the order status to Dispute. This prevents any further automated transitions and flags the trade for manual intervention.
Admins or designated solvers use special commands to resolve conflicts. These commands require the ADMIN_NSEC environment variable to be set.
mostro-cli listdisputesBefore resolving, an admin must "take" the dispute to indicate they are handling it.
mostro-cli admtakedispute -d <dispute-id>If the buyer proved they sent fiat, the admin settles the hold invoice to pay the buyer.
mostro-cli admsettle -o <order-id>If the buyer failed to pay, the admin cancels the order to refund the locked Bitcoin to the seller.
mostro-cli admcancel -o <order-id>Admin commands are gated by public key verification on the Mostro coordinator side. The CLI must sign these messages with the private key corresponding to a registered admin pubkey.