{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-deposit-address-schema.json",
  "title": "Deposit address",
  "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_DepositAddress",
  "allOf": [
    {
      "$ref": "#/$defs/wallet_Currency"
    },
    {
      "$ref": "#/$defs/wallet_Network"
    },
    {
      "$ref": "#/$defs/wallet_DepositAddressBase"
    },
    {}
  ],
  "$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_DepositAddressBase": {
      "title": "Deposit address",
      "allOf": [
        {
          "$ref": "#/$defs/wallet_Address"
        },
        {
          "$ref": "#/$defs/wallet_PaymentID"
        },
        {
          "type": "object",
          "required": [
            "currency",
            "address"
          ],
          "properties": {
            "public_key": {
              "type": "string",
              "description": "Public key."
            }
          }
        }
      ]
    },
    "wallet_Network": {
      "title": "Network",
      "type": "object",
      "properties": {
        "network_code": {
          "$ref": "#/$defs/wallet_NetworkCommon"
        }
      }
    },
    "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."
        }
      }
    }
  }
}