agent
swap

Validate intent and list missing inputs

Accepts any subset of {direction, chain, amount, to}. Returns state needs_input | needs_destination | invalid_input | ready_to_execute, plus data.guidance.questionsToAsk (ask the user one at a time) and data.swapDetails. Never creates an order.

post/agent/swap/plan

Request

  • Base URL: https://xmrtousdc.xyz/api/v1
  • URL: https://xmrtousdc.xyz/api/v1/agent/swap/plan
  • Auth: none declared

Request body

directionstring
amountstring
tostring
hasFundsboolean

Example request

{
  "direction": "x2u",
  "amount": "0.8"
}

Response

Plan response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.