{"endpoint":"/api/agent/chat","method":"POST","description":"Natural language transaction engine. Send plain English and get structured responses with ready-to-sign calldata.","version":"2.0.0","features":["LLM-powered intent parsing (Claude Haiku) with regex fallback","On-chain state resolution (balances, approvals, burn eligibility)","Pre-built transaction calldata (swap, approve, burn, register)","Cross-chain intent planning (bridge + swap + burn from any chain)","Multi-burn and scheduled burn support","Wallet comparison","Identity-aware responses (MegaNames, reputation, tier)"],"body":{"message":{"type":"string","required":true,"description":"Natural language query or command"},"wallet":{"type":"string","required":false,"description":"Wallet address for context (0x...)"}},"supportedIntents":["looksmaxx — Full flow: swap (if needed) + burn + generate + mint, with calldata","cross_chain_looksmaxx — Looksmaxx from any chain: bridge + swap + burn","swap — Swap ETH for $MEGACHAD with Kumbaya calldata","burn — Burn $MEGACHAD with transaction calldata","bridge — Bridge assets to MegaETH from any supported chain","price — Current token price and burn cost","stats — Protocol statistics (burns, supply)","wallet — Check balances, eligibility, and identity","gallery — Recent looksmaxxed burns","leaderboard — Top burners ranked","referral — Referral program info + agent registration calldata","register_agent — Register as referral agent with calldata","gasless — EIP-712 gasless burn info","compare — Compare two wallets side by side","multi_burn — Plan multiple sequential burns","schedule — Scheduled/recurring burn info","about — What is MegaChad","stake — Build approve+stake tx for MoggerStaking (mogger) or JESTERGOONER V4 (jester)","unstake — Build unstake tx for either venue","claim_rewards — Build claimRewards tx for either venue","staking_position — Read combined MoggerStaking + JESTERGOONER position + APRs","swap_mc_mg — Quote and build MEGACHAD↔MEGAGOONER swap on MegaChadLP AMM","add_liquidity — Build approve+approve+addLiquidity for MC/MG pair","list_proposals — List Jestermogger governance proposals","proposal_detail — Single proposal: actions, vote tally, veto state, voter receipt","vote — Build castVote tx (for/against/abstain)","queue_proposal — Build queue tx for a Succeeded proposal","execute_proposal — Build execute tx for a Queued proposal past its timelock","emission_schedule — 225-week MEGAGOONER emission table + current week + split","protocol_registry — Full machine-readable registry of every deployed contract","nft_inventory — MEGACHADNFT count + boost tier + staking eligibility for a wallet","safety — CircuitBreaker pause state + NFTVetoCouncil composition (check before writes)","activity — Unified recent on-chain activity feed across the MEGA Protocol stack","propose — Build a Jestermogger propose() tx (or check Framemogger top-3 eligibility)","veto — Build NFTVetoCouncil castVetoVote tx (yes = veto, no = defend)"],"examples":[{"message":"looksmaxx 0xABC...123","description":"Full looksmaxx plan with calldata"},{"message":"swap 0.1 ETH for megachad","description":"Swap calldata"},{"message":"I have ETH on Base, looksmaxx me","description":"Cross-chain intent"},{"message":"compare 0xABC vs 0xDEF","description":"Side-by-side comparison"},{"message":"burn 3 times for 0xABC","description":"Multi-burn plan"},{"message":"register me as an agent","description":"Agent registration calldata"},{"message":"set up weekly burns","description":"Scheduled burn info"},{"message":"stake 50000 megachad","description":"Build MoggerStaking approve+stake"},{"message":"claim my megagooner rewards","description":"Build claimRewards tx"},{"message":"swap 1000 MC for MG","description":"Build MC→MG AMM swap"},{"message":"list active proposals","description":"List Jestermogger proposals"},{"message":"vote for proposal 3","description":"Build castVote tx"},{"message":"show me the emission schedule","description":"225-week MEGAGOONER schedule"},{"message":"give me the protocol registry","description":"Full contract address index"},{"message":"am I eligible for staking rewards?","description":"NFT inventory + eligibility verdict"},{"message":"is the protocol paused?","description":"CircuitBreaker safety status"},{"message":"what happened in the last hour?","description":"Recent activity feed"},{"message":"veto proposal 5","description":"Build NFT veto council castVetoVote tx"},{"message":"am I eligible to propose?","description":"Framemogger top-3 burner check"}],"responseFormat":{"intent":"The resolved intent type","understanding":"What the engine understood","answer":"Human-readable response","actions":"Array of executable actions with calldata","state":"Current on-chain state (balances, approvals)","executionPlan":"Ordered list of steps to execute"}}