{"uid":"cap_zM13WuL_-j0ebDF9czOkG","slug":"brainiac-bridge-leg-consistency-checker-0b59b809","name":"BRAINIAC Bridge Leg Consistency Checker","description":"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.","url":"https://www.brainiac.software/api/v1/crypto-operations/bridge-leg-consistency?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"type":"json","example":{"consistency_score":50,"recovery_feasibility_index":45}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yQPbECvF3Cw0gZIvDJ-Hj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Stuck bridge transaction triage","prompt":"My cross-chain bridge seems stuck — the source leg with ID 'tx-src-9981' succeeded with amount 2000000 but the destination leg 'tx-dst-9981' shows pending with amount 2000000. Can you check if the legs are consistent and whether recovery is feasible?"},{"title":"Failed bridge leg recovery assessment","prompt":"I have a bridge where the source leg 'bridge-out-441' sent 10000000 successfully, but the destination leg 'bridge-in-441' failed with 10000000. What's the consistency score and can it be recovered?"},{"title":"Multi-leg bridge audit before claiming funds","prompt":"Before I try to claim my bridged funds, can you validate these two bridge legs for consistency? Source leg ID 'leg-A1' is success with 750000, destination leg ID 'leg-B1' is pending with 750000."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:38:47.844Z","isFirstParty":false,"canonicalSlug":"brainiac-bridge-leg-consistency-checker-0b59b809"}