{"uid":"cap_JY0KZFglaj10mKHBfyfac","slug":"brainiac-crypto-governance-execution-risk-score-f21a00a7","name":"BRAINIAC Crypto Governance Execution Risk Score","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-governance/execution-risk-score?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"calls":{"type":"array","items":{"type":"object","required":["target","data"],"properties":{"data":{"type":"string","pattern":"^0x[0-9a-fA-F]*$","maxLength":20000},"value":{"type":"integer","maximum":9007199254740991,"minimum":0},"target":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"additionalProperties":false},"maxItems":40,"minItems":1},"sender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"balances":{"type":"array","items":{"type":"object","required":["token","account","amount"],"properties":{"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$|^native$"},"amount":{"type":"integer","maximum":9007199254740991,"minimum":0},"account":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"additionalProperties":false},"maxItems":200},"expected":{"type":"array","items":{"type":"object","required":["token","to","amount"],"properties":{"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$|^native$"},"amount":{"type":"integer","maximum":9007199254740991,"minimum":0}},"additionalProperties":false},"maxItems":40}}},"responseSchema":{"type":"json","example":{"state_drift_index":75,"execution_risk_score":25,"unforeseen_transfers_detected":true}},"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_t1CBYx9AKcFpZvqX2pxmb","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":"Simulates a set of onchain calls and returns a risk score, state drift index, and flags for unforeseen token transfers before execution","exampleAgentPrompt":"Before we submit this governance proposal onchain, simulate these 3 contract calls from sender 0xABC...123 — I'm expecting 500 USDC to go to 0xDEF...456 — and tell me the execution risk score and whether any unforeseen transfers would happen.","exampleUseCases":[{"title":"DAO proposal safety pre-flight","prompt":"We have a Compound governance proposal with 5 contract calls ready to execute — simulate them from the governor address 0x1234...abcd and check whether the execution risk score is acceptable and if any unexpected token transfers would occur beyond the 1000 USDC we're expecting to go to the treasury."},{"title":"Multisig batch transaction risk check","prompt":"Before our Safe multisig executes this batch of 2 calls targeting 0xToken...contract and 0xVault...contract, run a simulation from our sender 0xSafe...addr with our current USDC and ETH balances and flag any unforeseen transfers or high state drift."},{"title":"DeFi protocol upgrade execution audit","prompt":"We're about to execute an Aave governance upgrade — here are 8 encoded calldata payloads targeting the protocol contracts. Simulate them and return the execution risk score and state drift index so we can decide whether to proceed."}],"resultDescription":"Returns a JSON object with three fields: execution_risk_score (integer, higher = riskier), state_drift_index (integer measuring how much onchain state deviates from expectations), and unforeseen_transfers_detected (boolean flagging whether unexpected token movements would occur during execution).","failureModes":["Invalid calldata format (not 0x-prefixed hex) returns a validation error","Target address not a valid EVM address (not 40 hex chars) causes schema rejection","Exceeding 40 calls in the batch returns a maxItems error","Simulation failure if contract state cannot be fetched from the chain","Payment not settled via x402/USDC on Base causes 402 response before execution","Empty calls array rejected by minItems:1 constraint"],"whenToPreferThis":"Use this endpoint when you need to pre-flight check a batch of onchain governance or multisig calls before submitting them to a blockchain, especially when you want to detect unexpected token transfers or quantify execution risk. It is specifically designed for DAO governance and DeFi protocol execution scenarios, not generic contract debugging. Prefer this over manual simulation when you need a structured risk score and drift index rather than raw trace output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:48:09.652Z","isFirstParty":false,"canonicalSlug":"brainiac-crypto-governance-execution-risk-score-f21a00a7"}