Skip to content
Fourohtwo

DeFi protocol anomaly scan

anomaly.forgemesh.io/api/defi-scan

DeFi protocol anomaly scan: scores recent flow patterns at one DeFi protocol. POST JSON with protocol (uniswap_v3, aave_v3, aave_v2, curve_3pool, compound_v3 or a contract address), chain (ethereum; base and arbitrum are unavailable for now and answer 503 without charge) and window. Returns JSON with sequence_score (0-100), novelty, story label (e.g. Exchange Stress), protocol, address, events_col

BaseAnswering
POSThttps://anomaly.forgemesh.io/api/defi-scan

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://anomaly.forgemesh.io/api/defi-scan", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"ethereum","protocol":"aave_v3","window":"24h"}),
});
console.log(await res.json());

Example input

{
  "chain": "ethereum",
  "protocol": "aave_v3",
  "window": "24h"
}