{"uid":"cap_jsc8ssL_Ct4H6phTy5IGP","slug":"brainiac-userop-validity-checker-32d3ef6a","name":"BRAINIAC UserOp Validity 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/account-abstraction/user-op-validity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"nonce":{"type":"integer","maximum":9007199254740991,"minimum":0},"sender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"call_data":{"type":"string","pattern":"^0x[0-9a-fA-F]*$","maxLength":20000},"init_code":{"type":"string","pattern":"^0x[0-9a-fA-F]*$","maxLength":20000},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]*$","maxLength":1000},"expected_nonce":{"type":"integer","maximum":9007199254740991,"minimum":0}}},"responseSchema":{"type":"json","example":{"validation_errors":[{"code":"signature_length","detail":"The signature is not 64 or 65 bytes. The bytes were not recovered."},{"code":"nonce_mismatch","detail":"The nonce is 5. The expected nonce is 4."}],"user_op_validity_score":50,"rejection_probability_index":60}},"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_fXZ395vdd2YbHhvVyJVoW","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":"Validates an ERC-4337 UserOperation's signature and nonce, returning a validity score and rejection probability index.","exampleAgentPrompt":"Check whether this UserOperation is valid before I submit it: sender is 0xAbCd...1234, nonce is 5, expected nonce is 5, call data is 0xdeadbeef, init code is 0x, and signature is 0xabc123... — give me the validity score and any rejection risks.","exampleUseCases":[{"title":"Pre-flight UserOp check before bundler submission","prompt":"Before I submit this UserOp to the bundler, can you validate it? The sender is 0x1234567890abcdef1234567890abcdef12345678, nonce is 3, expected nonce is 3, call data is 0xa9059cbb000000, init code is 0x, and the signature is 0xabc456def789. Tell me the validity score and whether it's likely to get rejected."},{"title":"Debugging a rejected ERC-4337 transaction","prompt":"My UserOperation keeps getting rejected and I don't know why. Can you check it — sender 0xdeadbeef00000000000000000000000000000001, nonce is 7 but I expected 4, call data 0x12345678, init code 0x, signature 0xff. What validation errors come back and what's the rejection probability?"},{"title":"Smart contract wallet nonce mismatch detection","prompt":"I think my smart wallet has a nonce mismatch causing failures. Run a validity check on this UserOp: sender 0xabcdef1234567890abcdef1234567890abcdef12, nonce 2, expected nonce 1, call data 0x095ea7b3, init code 0x, signature 0x1a2b3c4d. What does the validity score say?"}],"resultDescription":"Returns a JSON object containing a list of validation_errors (each with a code and human-readable detail), a user_op_validity_score (0–100 integer indicating how valid the UserOp is), and a rejection_probability_index (0–100 integer estimating how likely a bundler is to reject this UserOp).","failureModes":["Invalid sender address format returns a 400 or validation error","Signature length mismatch (not 64 or 65 bytes) triggers signature_length error code","Nonce mismatch between provided nonce and expected_nonce triggers nonce_mismatch error","Malformed hex strings in call_data, init_code, or signature cause input validation failure","Missing required fields like sender or nonce result in schema validation errors","Payment failure via x402 (insufficient USDC balance) prevents the call from being processed"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call pre-flight check on an ERC-4337 UserOperation without setting up an account or running a local validator. It is especially valuable for AI agents submitting UserOps on behalf of users who want to minimize bundler rejections and gas waste. Prefer this over running a local simulation when you don't control the bundler infrastructure or need a fast, opinionated validity score with detailed error codes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:45:29.445Z","isFirstParty":false,"canonicalSlug":"brainiac-userop-validity-checker-32d3ef6a"}