{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dnsofmoney-com/json-schema/dnsofmoney-com-delivery-quote-request-schema.json",
  "title": "DeliveryQuoteRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dnsofmoney-com-openapi.json#/components/schemas/DeliveryQuoteRequest",
  "properties": {
    "to": {
      "type": "string",
      "maxLength": 160,
      "title": "To",
      "description": "Recipient pay: name, e.g. pay:bob"
    },
    "amount": {
      "type": "string",
      "maxLength": 40,
      "title": "Amount",
      "description": "What the RECIPIENT receives, display units"
    },
    "from_asset": {
      "type": "string",
      "maxLength": 12,
      "title": "From Asset",
      "description": "Asset you hold: USDC, XRP, RLUSD"
    },
    "from_network": {
      "type": "string",
      "maxLength": 80,
      "title": "From Network",
      "description": "CAIP-2 of your holding, e.g. eip155:137"
    },
    "sender": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Sender",
      "description": "Your address (needed for XRPL + pre-flight)"
    },
    "max_source_amount": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Source Amount",
      "description": "XRPL conversions: the most of your asset you will spend"
    },
    "simulate": {
      "type": "boolean",
      "title": "Simulate",
      "description": "CCTP: simulate your burn against your real balance",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "to",
    "amount",
    "from_asset",
    "from_network"
  ]
}