# BRAINIAC Bridge Leg Consistency Checker

> BRAINIAC Bridge Leg Consistency Checker 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-13).

Analyzes a set of cross-chain bridge transaction legs to compute a consistency score and recovery feasibility index, flagging mismatches between source and destination legs.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/crypto-operations/bridge-leg-consistency?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-bridge-leg-consistency-checker-0b59b809
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zM13WuL_-j0ebDF9czOkG

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-bridge-leg-consistency-checker-0b59b809 -d '<json body>'
```

Example prompt: Can you check whether my bridge transaction legs are consistent? I have two legs: message ID 'msg-abc123' as the source with status 'success' and amount 5000000, and message ID 'msg-def456' as the destination with status 'pending' and amount 5000000.

## When to prefer this

Use this endpoint when you need a programmatic consistency and recoverability score for cross-chain bridge legs, especially when debugging stuck, failed, or mismatched bridge transactions. It is purpose-built for bridge leg pair analysis (source/destination role model) and returns structured numeric scores, making it suitable for automated monitoring pipelines or agent-driven bridge recovery workflows. Prefer this over generic on-chain data queries when you specifically need consistency and recovery feasibility signals derived from multiple leg states together.

## Known failure modes

- Fewer than 2 legs provided — validation error
- Leg array exceeds 80 items — rejected
- Missing required fields (message_id, role, status, amount) in any leg — schema error
- Invalid role enum value (not 'source' or 'destination') — rejected
- Invalid status enum value (not 'success', 'failed', 'pending') — rejected
- Amount out of safe integer range — rejected
- Insufficient USDC balance for x402 payment — 402 Payment Required

## 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 a JSON object with two integer fields: `consistency_score` (0–100 indicating how consistent the bridge legs are with each other) and `recovery_feasibility_index` (0–100 indicating how likely a recovery or completion of the bridge operation is).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "legs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "message_id",
     "role",
     "status",
     "amount"
    ],
    "properties": {
     "role": {
      "enum": [
       "source",
       "destination"
      ],
      "type": "string"
     },
     "amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "status": {
      "enum": [
       "success",
       "failed",
       "pending"
      ],
      "type": "string"
     },
     "message_id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 80,
   "minItems": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "consistency_score": 50,
  "recovery_feasibility_index": 45
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-bridge-leg-consistency-checker-0b59b809/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)
