# onegate — EVM Token Flow Analyzer (x402)

> onegate — EVM Token Flow Analyzer (x402) is a paid API for AI agents from onegate.biz.id, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-27).

Returns buy/sell flow statistics, net flow in USD, and unique buyer counts for an EVM token contract address over a configurable lookback window, charged per call via x402.

## Facts

- Endpoint: GET https://onegate.biz.id/v1/flow?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onegate-evm-token-flow-analyzer-x402-1ae85271
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-UTyNDnlt-urJ-sPhFMNb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability onegate-evm-token-flow-analyzer-x402-1ae85271
```

Example prompt: Can you pull the trading flow stats for the token at 0x532f27101965dd16442E59d40670FaF5eBB142E4 on Base (eip155:8453) over the last 60 minutes — I want to see buys, sells, net flow in USD, and unique buyers?

## When to prefer this

Use this endpoint when you need rapid, pay-per-call on-chain token flow analytics without an API key or account setup. Ideal for agents that need to check trading momentum or net flow for a specific EVM token contract on Base, Polygon, or Arbitrum with a configurable time window, and want to pay micro-amounts in USDC per call via x402 rather than maintain a subscription.

## Known failure modes

- Invalid or malformed token address returns an error — must be 0x + 40 hex characters
- Unsupported CAIP-2 network identifier returns an error — only eip155:8453, eip155:137, eip155:42161 supported
- Window value outside 1–1440 range is rejected
- Payment failure via x402 results in 402 response and no data returned
- Token contract with no on-chain activity may return zero counts with ok:true
- Network congestion may cause stale anchor block data

## How this service works

onegate is a set of pay-per-call x402 endpoints for AI agents. It includes a preflight checker that verifies an x402 seller before your agent pays it, on-chain swap flow feeds with wallet attribution, single-use action leases with signed receipts, and an MCP server. No account, no API key.

## Output

A JSON object with: ok (boolean success flag), flow object containing buys (integer), sells (integer), netflow_usd (signed float, negative = net selling), and unique_buyers (integer); anchor object with the block number used as reference; charged (boolean indicating payment was processed); and first_call (boolean).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token",
      "network"
     ],
     "properties": {
      "token": {
       "type": "string",
       "example": "0x532f27101965dd16442E59d40670FaF5eBB142E4",
       "description": "EVM token contract address (0x + 40 hex)"
      },
      "window": {
       "type": "integer",
       "default": 60,
       "maximum": 1440,
       "minimum": 1,
       "description": "lookback window in minutes, 1..1440, default 60"
      },
      "network": {
       "type": "string",
       "example": "eip155:8453",
       "description": "CAIP-2: eip155:8453 (Base), eip155:137 (Polygon), eip155:42161 (Arbitrum)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "flow": {
   "buys": 214,
   "sells": 189,
   "netflow_usd": -12840.55,
   "unique_buyers": 71
  },
  "anchor": {
   "block": 52886632
  },
  "charged": true,
  "first_call": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onegate-evm-token-flow-analyzer-x402-1ae85271/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onegate.biz.id](https://www.zero.xyz/host/onegate.biz.id/llms.txt)
