Loops HouseMihenk AI: pay per call on NEAR

NEAR HACKATHON
Links
Team
1 member- EKOwner
Ekrem Yasin Küçük
Overview
Mihenk AI: pay per call on NEAR. AI agents buy measured crypto-influencer (KOL) data one call at a time and pay in USDC on NEAR, with no account and no API key.
The API answers 402 Payment Required with a price and a one-time nonce. The agent pays with a NEP-141 ft_transfer whose memo carries that nonce, then asks again with proof. Before answering, the server reads the finalized transaction and the token contract's own log from NEAR RPC: right token, right recipient, enough paid, matching memo, never used before. The data comes back with a receipt.
On NEAR mainnet: the same code runs with Circle's native USDC. A real paid call is recorded in the README with its NEAR transaction link.
Guardrails (AI Security & Defense): the agent has a spending budget, asks once for a cheaper, narrower request when over budget, pays only the seller and token on its own allow-list (so a spoofed 402 can't redirect its money), checks every delivery and keeps receipts. The server binds each payment to one request: replayed and underpaid transfers are refused (both covered by the tests), as are transfers to another account, and a late payment for an issued nonce is still served.
One-tap trade through NEAR Intents: trade.mjs acts only on data the agent paid for. If most measured KOLs called the coin long, it gets a 1Click quote and swaps a capped amount of USDC for NEAR. A real swap on mainnet is recorded in the README.
Why it matters: before an agent follows an influencer's call, it can see who else called the coin and how the price moved after their calls, measured rather than claimed. Mihenk measures 15,800+ KOLs on X, Telegram and YouTube, and also runs social trading with a one-tap trade from the user's own wallet, Mihenk Pay (USDC that reaches a KOL only after verified delivery) and a live x402 Agent API.
Website: https://mihenkai.com Code, tests and example runs: https://github.com/MihenkAI/near-pay-per-call