{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dnsofmoney-com/json-schema/dnsofmoney-com-agent-register-request-schema.json",
  "title": "AgentRegisterRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dnsofmoney-com-agent-selfreg-api-openapi.yml#/components/schemas/AgentRegisterRequest",
  "properties": {
    "alias_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 11,
      "title": "Alias Name",
      "description": "pay:agent.<label>"
    },
    "presentation": {
      "additionalProperties": true,
      "type": "object",
      "title": "Presentation"
    },
    "nonce": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Nonce"
    },
    "currency": {
      "type": "string",
      "maxLength": 8,
      "title": "Currency",
      "description": "Must match the credential grant's currency.",
      "default": "XRP"
    },
    "xrpl_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Xrpl Address",
      "description": "Optional XRPL receive address for resolution."
    },
    "dust_tx_hash": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Dust Tx Hash",
      "description": "Hash of the settled fee-in-kind dust payment (required only when AGENT_DUST_FEE_ENABLED)."
    }
  },
  "type": "object",
  "required": [
    "alias_name",
    "presentation",
    "nonce"
  ]
}