{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/horizonpulse-dev/json-schema/horizonpulse-dev-balance-response-schema.json",
  "title": "BalanceResponse",
  "description": "Inferred from a real response recorded from GET /api/demo/balance at 2026-10-14T15:21Z UTC (trimmed). Fields may be added; clients should ignore unknown fields.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/horizonpulse-dev-openapi.json#/components/schemas/BalanceResponse",
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "priced": {
      "type": "object",
      "properties": {
        "amountUsd": {
          "type": "string"
        },
        "amountAtomic": {
          "type": "string"
        },
        "asset": {
          "type": "string"
        },
        "network": {
          "type": "string"
        },
        "payTo": {
          "type": "string"
        }
      }
    },
    "asOf": {
      "type": "string"
    },
    "ok": {
      "type": "boolean"
    },
    "canPayAny": {
      "type": "boolean"
    },
    "rails": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rail": {
            "type": "string"
          },
          "caip2": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "stablecoin": {
            "type": "object",
            "properties": {
              "symbol": {
                "type": "string"
              },
              "balance": {
                "type": "string"
              },
              "atomic6": {
                "type": "string"
              }
            }
          },
          "gas": {
            "type": "object",
            "properties": {
              "native": {
                "type": "string"
              },
              "balance": {
                "type": "string"
              },
              "requiredToPay": {
                "type": "boolean"
              }
            }
          },
          "canPay": {
            "type": "boolean"
          },
          "reason": {
            "description": "Null in the recorded example; may hold a value."
          },
          "callsLeft": {
            "type": "object",
            "properties": {
              "/api/balance": {
                "type": "number"
              },
              "/api/gas": {
                "type": "number"
              },
              "/api/pulse": {
                "type": "number"
              },
              "/api/tokenized-stock": {
                "type": "number"
              },
              "/api/tx-status": {
                "type": "number"
              },
              "/api/watch": {
                "type": "number"
              },
              "/api/funding": {
                "type": "number"
              },
              "/api/market/quote": {
                "type": "number"
              },
              "/api/market/search": {
                "type": "number"
              },
              "/api/signals": {
                "type": "number"
              },
              "/api/bazaar-check": {
                "type": "number"
              },
              "/api/http": {
                "type": "number"
              },
              "/api/x402-check": {
                "type": "number"
              },
              "/api/extract": {
                "type": "number"
              },
              "/api/fetch": {
                "type": "number"
              },
              "/api/pdf": {
                "type": "number"
              },
              "/api/yield": {
                "type": "number"
              },
              "/api/discourse/split": {
                "type": "number"
              },
              "/api/search": {
                "type": "number"
              },
              "/api/portfolio": {
                "type": "number"
              }
            }
          },
          "error": {
            "description": "Null in the recorded example; may hold a value."
          }
        }
      }
    },
    "prices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "atomic": {
            "type": "string"
          }
        }
      }
    },
    "untrusted": {
      "type": "string"
    }
  }
}