{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-address-book-upsert-request-schema.json",
  "title": "AddressBookUpsertRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-address-book-api-openapi.yml#/components/schemas/AddressBookUpsertRequest",
  "type": "object",
  "properties": {
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": [
        "string",
        "null"
      ]
    },
    "network": {
      "$ref": "#/$defs/PaymentNetwork"
    },
    "verified": {
      "type": "boolean"
    },
    "direction": {
      "$ref": "#/$defs/AddressDirection"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddressDirection": {
      "enum": [
        "Sending",
        "Receiving"
      ],
      "type": "string"
    },
    "PaymentNetwork": {
      "enum": [
        "Mainnet",
        "Testnet4",
        "Signet",
        "Regtest",
        "Solana",
        "SolanaDevnet",
        "Ethereum",
        "EthereumSepolia",
        "Base",
        "BaseSepolia",
        "Arbitrum",
        "ArbitrumSepolia",
        "Polygon",
        "PolygonAmoy"
      ],
      "type": "string"
    }
  }
}