{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aifinpay-io/json-schema/aifinpay-io-agent-wallet-view-schema.json",
  "title": "AgentWalletView",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aifinpay-io-me-agents-api-openapi.yml#/components/schemas/AgentWalletView",
  "type": "object",
  "properties": {
    "address": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "wallet_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "balance_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "balance_native": {
      "type": [
        "number",
        "null"
      ]
    },
    "balance_usd_total": {
      "type": [
        "number",
        "null"
      ]
    },
    "calls_window": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "spent_usd_window": {
      "type": [
        "number",
        "null"
      ]
    },
    "last_activity_ts": {
      "type": [
        "integer",
        "null"
      ]
    },
    "health": {
      "type": "string",
      "enum": [
        "ok",
        "attention",
        "alert"
      ]
    }
  },
  "required": [
    "address",
    "chain",
    "balance_usd",
    "balance_native",
    "calls_window",
    "spent_usd_window",
    "health"
  ]
}