{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amplerun-com/json-schema/amplerun-com-wallet-binding-schema.json",
  "title": "WalletBinding",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amplerun-com-wallets-api-openapi.yml#/components/schemas/WalletBinding",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "binding_id",
    "chain_id",
    "address",
    "version",
    "linked_at",
    "unlinked_at"
  ],
  "properties": {
    "binding_id": {
      "$ref": "#/$defs/UUID"
    },
    "chain_id": {
      "const": 8453
    },
    "address": {
      "$ref": "#/$defs/EvmAddress"
    },
    "version": {
      "$ref": "#/$defs/DecimalString"
    },
    "linked_at": {
      "$ref": "#/$defs/Rfc3339Utc"
    },
    "unlinked_at": {
      "anyOf": [
        {
          "$ref": "#/$defs/Rfc3339Utc"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "DecimalString": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)$",
      "description": "Unsigned base-10 integer as string; never a float."
    },
    "EvmAddress": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "Rfc3339Utc": {
      "type": "string",
      "format": "date-time",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?Z$"
    },
    "UUID": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
    }
  }
}