{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-wallet-balance-out-schema.json",
  "title": "WalletBalanceOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-wallets-api-openapi.yml#/components/schemas/WalletBalanceOut",
  "type": "object",
  "properties": {
    "USDC": {
      "$ref": "#/$defs/WalletTokenOut"
    },
    "USDT": {
      "$ref": "#/$defs/WalletTokenOut"
    },
    "USDB": {
      "$ref": "#/$defs/WalletTokenOut"
    },
    "EURC": {
      "allOf": [
        {
          "$ref": "#/$defs/WalletTokenOut"
        },
        {
          "description": "Present on networks that hold EURC (Base)"
        }
      ]
    },
    "EURB": {
      "allOf": [
        {
          "$ref": "#/$defs/WalletTokenOut"
        },
        {
          "description": "Present on networks that hold EURB, the development test token (Base Sepolia)"
        }
      ]
    }
  },
  "required": [
    "USDC",
    "USDT",
    "USDB"
  ],
  "$defs": {
    "WalletTokenOut": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "symbol": {
          "type": "string",
          "enum": [
            "USDC",
            "USDT",
            "USDB",
            "EURC",
            "EURB"
          ]
        },
        "amount": {
          "type": "number"
        },
        "earning_amount": {
          "type": "number",
          "description": "Balance earning in the yield vault, net of accrued fees. 0 when yield is off."
        },
        "total_amount": {
          "type": "number",
          "description": "amount + earning_amount"
        }
      },
      "required": [
        "address",
        "id",
        "symbol",
        "amount",
        "earning_amount",
        "total_amount"
      ]
    }
  }
}