deep_semantic_audit
Stage 2 Deep Semantic LLM Security and Governance Audit. Performs deterministic on-chain gatekeeping followed by structured Gemini LLM evaluation over natural language proposal claims vs bytecode and calldata reality. Requires $0.05 USDC x402 micropayment on Base Mainnet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calldata | No | Transaction hex calldata or function selector being executed | 0x |
| chain_id | No | EVM Chain ID (default: 8453 for Base Mainnet) | |
| policy_prompt | No | Security policy or governance criteria to audit against | Audit contract and proposal for unauthorized privilege escalation, proxy upgrades, honeypot traps, or treasury drainage. |
| risk_threshold | No | Risk score threshold (0.0 to 10.0) above which the audit triggers rejection or alert | |
| target_address | Yes | Hex EVM address of smart contract under evaluation | |
| x402_payment_header | No | Optional Base64-encoded EIP-3009 transferWithAuthorization payment header satisfying $0.05 USDC requirement | |
| proposal_description | Yes | Natural language claim or governance proposal description explaining the intent of the transaction |