# BRAINIAC Float Loss Attribution API

> BRAINIAC Float Loss Attribution API is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-14).

Attributes unexplained balance discrepancies across a fleet of agents by reconciling opening/closing balances against categorized transactions

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/agent-networks/float-loss-attribution?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-float-loss-attribution-api-042c5c8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j_8pBNQ-55eaqRYpY30OM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-float-loss-attribution-api-042c5c8c -d '<json body>'
```

Example prompt: Can you reconcile the balances for my two agents — agent ag-1 had an opening balance of 10000 and closed at 14000, and ag-2 opened at 8000 and closed at 9000 — against their transaction history (cash ins, cash outs, fees, commissions, reversals, and adjustments) and tell me what unexplained discrepancies exist?

## When to prefer this

Use this endpoint when you need to reconcile agent-level float balances against a structured transaction ledger and identify unexplained variance by category. It is purpose-built for multi-agent financial networks where transactions span cash_in, cash_out, commission, fee, reversal, and adjustment categories. Prefer it over generic accounting tools when you need per-agent attribution with reversal-aware signed amounts and a structured unexplained discrepancy report. It is pay-per-call with no account setup required, making it ideal for ad-hoc audits or automated nightly reconciliation in agent pipelines.

## Known failure modes

- Missing required agent fields (id, opening_balance, closing_balance) returns validation error
- Transaction references non-existent agent_id causing attribution mismatch
- Reversal transaction references unknown transaction ID via reverses field
- Input exceeds limits (>200 agents or >2000 transactions) triggers rejection
- Integer overflow for very large balance values near MAX_SAFE_INTEGER boundary
- Payment failure via x402 (insufficient USDC balance on Base) blocks the call

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns an array of transactions with computed signed amounts (positive for inflows, negative for outflows), a discrepancy breakdown grouped by agent and category with totals and transaction IDs, expected closing balances computed from opening balances plus net transactions per agent, and a list of unexplained discrepancies per agent showing the closing balance, expected closing balance, supplied expected balance, and the unexplained amount remaining after accounting for all categorized transactions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "agents": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "opening_balance",
     "closing_balance"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "closing_balance": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "opening_balance": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "expected_balance": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  },
  "transactions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "category",
     "amount"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "agent_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "category": {
      "enum": [
       "cash_in",
       "cash_out",
       "commission",
       "fee",
       "reversal",
       "adjustment"
      ],
      "type": "string"
     },
     "reverses": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 2000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "transactions": [
   {
    "id": "c1",
    "amount": 5000,
    "agent_id": "ag-1",
    "category": "cash_in",
    "signed_amount": 5000
   },
   {
    "id": "c2",
    "amount": 2000,
    "agent_id": "ag-1",
    "category": "cash_out",
    "signed_amount": -2000
   },
   "…"
  ],
  "discrepancy_breakdown": [
   {
    "agent_id": "ag-1",
    "category": "cash_in",
    "signed_amount": 5000,
    "transaction_ids": [
     "c1"
    ]
   },
   {
    "agent_id": "ag-1",
    "category": "cash_out",
    "signed_amount": -2000,
    "transaction_ids": [
     "c2"
    ]
   },
   "…"
  ],
  "expected_closing_balances": [
   {
    "agent_id": "ag-1",
    "opening_balance": 10000,
    "expected_closing_balance": 14700
   },
   {
    "agent_id": "ag-2",
    "opening_balance": 8000,
    "expected_closing_balance": 9000
   }
  ],
  "unexplained_discrepancies": [
   {
    "agent_id": "ag-1",
    "closing_balance": 14000,
    "opening_balance": 10000,
    "supplied_variance": 300,
    "unexplained_amount": -700,
    "expected_closing_balance": 14700,
    "supplied_expected_balance": 15000
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-float-loss-attribution-api-042c5c8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
