{"uid":"cap_diwqdxDHuLJ9ocCiNVcH2","slug":"brainiac-account-abstraction-sponsorship-risk-scorer-39e4afe7","name":"BRAINIAC Account Abstraction Sponsorship Risk Scorer","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/account-abstraction/sponsorship-risk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"type":"json","example":{"gas_limit_safety_index":80,"sponsorship_risk_score":25}},"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_H9CSHPsIWLfd0AVkbflgM","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":"Scores the financial and operational risk of sponsoring a batch of ERC-4337 UserOperations given deposit size, gas limits, and operation parameters","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Paymaster drain protection before sponsoring","prompt":"Before my paymaster sponsors this batch of 5 user operations, check the sponsorship risk — each has call_gas_limit 400000 and verification_gas_limit 100000, my deposit is 5000000000000000000 wei, max_fee_per_gas is 30000000000, and I'm not allowing init_code."},{"title":"Smart wallet onboarding with init code risk check","prompt":"I'm about to sponsor 2 new wallet deployments that include init_code starting with 0x60806040, each with call_gas_limit 800000 and verification_gas_limit 200000. My deposit is 1000000000000000000 wei and max_fee_per_gas is 40000000000 — what's the sponsorship risk score and gas safety index?"},{"title":"Gas limit safety review for high-throughput bundler","prompt":"My bundler is processing 10 user operations with call_gas_limit 1000000 and verification_gas_limit 300000 each, deposit is 10000000000000000000 wei, max_call_gas cap is 10000000, max_fee_per_gas is 60000000000 — give me a risk and gas safety score so I know if it's safe to proceed."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:48:39.055Z","isFirstParty":false,"canonicalSlug":"brainiac-account-abstraction-sponsorship-risk-scorer-39e4afe7"}