# BRAINIAC Crypto Transaction Intent Verifier

> BRAINIAC Crypto Transaction Intent Verifier 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).

Statically analyzes EVM transaction calldata to verify it matches the user's expected intent, detecting mismatches, dangerous approvals, and risk levels before signing.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/crypto-security/transaction-intent-verify?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-crypto-transaction-intent-verifier-d72dcdf4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q6StPvLaNun_F1IBgdzyk

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-crypto-transaction-intent-verifier-d72dcdf4 -d '<json body>'
```

Example prompt: Before I sign this transaction, can you verify the calldata 0x095ea7b3...ffff for a token approval on chain 8453 against contract 0x1234...abcd — I'm expecting to approve spender 0x2222...2222 for exactly 1000000 USDC, and flag it if something looks off or the approval is unlimited?

## When to prefer this

Use this endpoint when an AI agent or wallet needs to verify that raw EVM transaction calldata actually matches a user's stated intent before signing — especially for token approvals, transfers, and swaps where malicious or misconfigured calldata could drain funds. Prefer this over manual inspection or generic decoders when you need structured risk scoring, mismatch detection, and warnings about unlimited approvals in a single call. It is particularly valuable in agentic DeFi workflows where the agent constructs or receives calldata from an external source and must validate it before execution.

## Known failure modes

- Invalid or malformed calldata hex returns a decode error
- Unrecognized function selector with no ABI provided may result in undecoded transaction
- Mismatch between supplied ABI and actual calldata causes incorrect decoding
- Missing expected fields means intent matching is partial or skipped
- Chain ID not found does not block decoding but chain context is not validated

## 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 containing: an intent_match boolean, a risk_level (e.g. 'critical', 'high', 'low'), a decoded_transaction with function name, selector, and decoded parameters, an array of mismatches listing fields where actual values differ from expected, an array of warnings for dangerous patterns like unlimited approvals, and a limitations array explaining the bounds of the static analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "abi": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "type"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80
     },
     "type": {
      "enum": [
       "function",
       "constructor",
       "receive",
       "fallback",
       "event",
       "error"
      ],
      "type": "string"
     },
     "inputs": {
      "type": "array",
      "items": {},
      "maxItems": 32
     },
     "outputs": {
      "type": "array",
      "items": {},
      "maxItems": 32
     },
     "anonymous": {
      "type": "boolean"
     },
     "stateMutability": {
      "enum": [
       "pure",
       "view",
       "nonpayable",
       "payable"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 48
  },
  "value": {
   "type": "string"
  },
  "chainId": {
   "type": "integer",
   "maximum": 2147483647,
   "exclusiveMinimum": 0
  },
  "calldata": {
   "type": "string",
   "pattern": "^0x(?:[0-9a-fA-F]{2})*$",
   "maxLength": 131074
  },
  "expected": {
   "type": "object",
   "properties": {
    "token": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "amount": {
     "type": "string"
    },
    "spender": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "contract": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "recipient": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "nativeValue": {
     "type": "string"
    },
    "functionName": {
     "type": "string",
     "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,79}$"
    }
   },
   "additionalProperties": false
  },
  "expectedAction": {
   "enum": [
    "transfer",
    "token_approval",
    "swap",
    "contract_interaction"
   ],
   "type": "string"
  },
  "contractAddress": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "partial",
  "warnings": [
   {
    "code": "approval_exceeds_expected",
    "detail": "The approval amount is greater than the expected amount."
   },
   {
    "code": "unlimited_approval",
    "detail": "The approval amount is the uint256 maximum. The calldata does not set an expiry."
   }
  ],
  "result_id": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
  "mismatches": [
   {
    "field": "amount",
    "actual": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
    "detail": "The approval amount exceeds the expected amount.",
    "expected": "1000000"
   }
  ],
  "risk_level": "critical",
  "limitations": [
   "This is static calldata analysis. It does not read chain state, simulate execution, or decide whether the target contra…",
   "Chain ID is not checked against a network and does not change decoding.",
   "…"
  ],
  "received_at": "2026-11-12T12:00:00.000Z",
  "intent_match": false,
  "missing_items": [
   {
    "check": "chain_state_not_read",
    "detail": "No chain state was read. This response is local static analysis only.",
    "reason": "not_supported"
   }
  ],
  "decoded_transaction": {
   "selector": "0x095ea7b3",
   "parameters": [
    {
     "name": "spender",
     "type": "address",
     "value": "0x2222222222222222222222222222222222222222"
    },
    {
     "name": "amount",
     "type": "uint256",
     "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
    }
   ],
   "function_name": "approve"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-crypto-transaction-intent-verifier-d72dcdf4/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)
