{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-whitelisted-address-schema.json",
  "title": "Whitelisted address",
  "description": "A whitelist entry. `currency` and `network` are optional independently of each other, and at least one of them is always present:\n\n  * both present—the entry covers that currency in that network only;\n  * `currency` omitted—the entry covers every currency of its network;\n  * `network` omitted—the entry is not bound to a network.\n\n`payment_id` is present only for the currencies that require an additional recipient identifier.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-addresses-api-openapi.yml#/components/schemas/wallet_WhitelistedAddress",
  "allOf": [
    {
      "$ref": "#/$defs/wallet_Address"
    },
    {
      "$ref": "#/$defs/wallet_Currency"
    },
    {
      "$ref": "#/$defs/wallet_PaymentID"
    },
    {
      "required": [
        "name",
        "address"
      ]
    },
    {
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the whitelist item.\n"
        },
        "network": {
          "$ref": "#/$defs/wallet_NetworkCommon"
        }
      }
    }
  ],
  "$defs": {
    "wallet_Address": {
      "title": "Deposit address",
      "type": "object",
      "properties": {
        "address": {
          "$ref": "#/$defs/wallet_AddressCommon"
        }
      }
    },
    "wallet_AddressCommon": {
      "title": "Deposit address",
      "type": "string",
      "pattern": "^([\\w@\\-.:<>]+|[0-9A-Z]{4}( ?[0-9A-Z]{4}){8}|(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)$",
      "description": "Deposit crypto address."
    },
    "wallet_Currency": {
      "title": "Currency",
      "properties": {
        "currency": {
          "$ref": "#/$defs/wallet_CurrencyCommon"
        }
      }
    },
    "wallet_CurrencyCommon": {
      "title": "Cryptocurrency",
      "type": "string",
      "description": "Cryptocurrency code."
    },
    "wallet_NetworkCommon": {
      "title": "Network",
      "type": "string",
      "description": "Network code."
    },
    "wallet_PaymentID": {
      "title": "Payment ID",
      "type": "object",
      "properties": {
        "payment_id": {
          "type": "string",
          "pattern": "^[\\w@\\-.:<>]+$",
          "description": "An additional recipient identifier (for example, \"Memo\") required for specific currencies."
        }
      }
    }
  }
}