# BRAINIAC Account Abstraction Sponsorship Risk Scorer

> BRAINIAC Account Abstraction Sponsorship Risk Scorer 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).

Scores the financial and operational risk of sponsoring a batch of ERC-4337 UserOperations given deposit size, gas limits, and operation parameters

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/account-abstraction/sponsorship-risk?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-account-abstraction-sponsorship-risk-scorer-39e4afe7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_diwqdxDHuLJ9ocCiNVcH2

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-account-abstraction-sponsorship-risk-scorer-39e4afe7 -d '<json body>'
```

Example prompt: Score the sponsorship risk for these 3 user operations — each has a call_gas_limit of 500000 and verification_gas_limit of 150000, the paymaster deposit is 2000000000000000000 wei, max_fee_per_gas is 50000000000, and init_code is not allowed.

## When to prefer this

Use this endpoint when operating an ERC-4337 paymaster or bundler and you need to quantify financial exposure before sponsoring a batch of UserOperations. It is particularly valuable when init_code is present (new wallet deployments), when deposit buffers are thin relative to gas prices, or when you want automated go/no-go risk gating in a sponsorship pipeline. Prefer this over manual gas estimation when you need a combined risk score that accounts for both gas configuration safety and deposit adequacy simultaneously.

## Known failure modes

- Missing required fields (call_gas_limit or verification_gas_limit on any user_op) returns a validation error
- user_operations array empty or exceeds 20 items returns schema validation failure
- max_fee_per_gas or max_call_gas set to 0 (exclusiveMinimum violation) returns 400
- deposit_wei or gas integers exceeding safe integer bounds return schema error
- Payment not included or insufficient USDC via x402 returns 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 scores: `sponsorship_risk_score` (integer, lower is safer) indicating the overall financial and operational risk of sponsoring the provided UserOperations, and `gas_limit_safety_index` (integer, higher is safer, example value 80) indicating how safely the gas limits are configured relative to the deposit and caps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "deposit_wei": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": 0
  },
  "max_call_gas": {
   "type": "integer",
   "maximum": 30000000,
   "exclusiveMinimum": 0
  },
  "allow_init_code": {
   "type": "boolean"
  },
  "max_fee_per_gas": {
   "type": "integer",
   "maximum": 9007199254740991,
   "exclusiveMinimum": 0
  },
  "user_operations": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "call_gas_limit",
     "verification_gas_limit"
    ],
    "properties": {
     "init_code": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]*$",
      "maxLength": 20000
     },
     "call_gas_limit": {
      "type": "integer",
      "maximum": 30000000,
      "exclusiveMinimum": 0
     },
     "verification_gas_limit": {
      "type": "integer",
      "maximum": 30000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20,
   "minItems": 1
  },
  "max_verification_gas": {
   "type": "integer",
   "maximum": 30000000,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gas_limit_safety_index": 80,
  "sponsorship_risk_score": 25
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-account-abstraction-sponsorship-risk-scorer-39e4afe7/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)
