{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aifinpay-io/json-schema/aifinpay-io-payment-chain-capability-schema.json",
  "title": "PaymentChainCapability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aifinpay-io-aifp-api-openapi.yml#/components/schemas/PaymentChainCapability",
  "type": "object",
  "properties": {
    "chain": {
      "type": "string"
    },
    "chain_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "family": {
      "type": "string",
      "enum": [
        "evm",
        "solana",
        "near",
        "aptos",
        "casper"
      ]
    },
    "network_mode": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ]
    },
    "testnet": {
      "type": "boolean",
      "description": "Explicit canonical test-network metadata; false does not imply payment or read availability."
    },
    "explorer_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "native": {
      "type": "object",
      "properties": {
        "symbol": {
          "type": "string"
        },
        "decimals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 36
        }
      },
      "required": [
        "symbol",
        "decimals"
      ]
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "decimals": {
            "type": "integer",
            "minimum": 0,
            "maximum": 36
          }
        },
        "required": [
          "symbol",
          "address",
          "decimals"
        ]
      }
    }
  },
  "required": [
    "chain",
    "chain_id",
    "family",
    "network_mode",
    "testnet",
    "assets"
  ]
}