81trust / 100

Precheck Cached

by Aayat AI in Onchain & crypto

x402 APIPassing, checked 3 h ago

Pre-trade check before buying or selling a token, cached tier (up to 5 minutes old): go/caution/no-go with reasons, from token safety and taxes, liquidity and estimated price impact for your trade size, holder concentration, the chain's swap fee now and the round-trip cost. 8 chains incl. Base, Solana, Ethereum. ?address=...&chain=base&amountUsd=1000&side=buy

GET https://aayatai.com/trade/precheck/cached

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
45 ms typical, 45 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/trade/precheck/cached?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&amountUsd=1000&chain=base&side=buy"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Ftrade%2Fprecheck%2Fcached
const res = await pay("https://aayatai.com/trade/precheck/cached?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&amountUsd=1000&chain=base&side=buy");
console.log(await res.json());

Example input

{
  "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "amountUsd": 1000,
  "chain": "base",
  "side": "buy"
}

Example output

{
  "address": "0x1234…abcd",
  "chain": "base",
  "checkedAt": "2026-09-28T12:00:00.000Z",
  "costs": {
    "note": "Round trip = buy tax + sell tax + 2x price impact + 2x pool fee + 2x network fee.",
    "poolFeePercentAssumed": 0.3,
    "roundTripPercent": 1.05
  },
  "decision": "caution",
  "disclaimer": "Automated estimates from public data, not financial advice.",
  "gas": {
    "congestion": "low",
    "shareOfTradePercent": 0.0003,
    "swapNative": 0.0000012,
    "swapUsd": 0.0031,
    "symbol": "EXAMPLE"
  },
  "holders": {
    "byKind": {
      "contract": 38.81,
      "exchange": 8.55,
      "fund": 0,
      "locked": 3.49,
      "pool": 1.66,
      "wallet": 45.17
    },
    "count": 1225686,
    "source": "Blockscout",
    "top10SellablePercent": 58.4,
    "top1Percent": 22.57
  },
  "liquidity": {
    "known": true,
    "lockedPercent": 0,
    "mainPool": {
      "dex": "uniswap-v3",
      "pairAddress": "0x0ca6...",
      "quote": "WETH"
    },
    "mainPoolUsd": 877827,
    "maxTradeFor1PercentImpactUsd": 4434,
    "priceImpactPercent": {
      "mainPool": 0.227,
      "routed": 0.053
    },
    "totalUsd": 3750447
  },
  "market": {
    "fdvUsd": 40231418,
    "links": {
      "image": null,
      "socials": [],
      "websites": []
    },
    "liquidityKnown": true,
    "liquidityUsd": 3750447,
    "marketCapUsd": 39282410,
    "marketSource": "GeckoTerminal",
    "name": "EXAMPLE",
    "oldestPairCreatedAt": "2024-01-08T19:30:45.000Z",
    "pairs": 20,
    "priceChange": {
      "h1": 0,
      "h24": 0.05,
      "h6": -1.66,
      "m5": 0
    },
    "priceNative": 4.1e-7,
    "priceUsd": 0.00109,
    "symbol": "EXAMPLE",
    "topPair": null,
    "txns24h": {
      "buys": 813,
      "sells": 666
    },
    "volume24hUsd": 70227
  },
  "reasons": [
    "Top 10 sellable holders own 58.4% of supply."
  ],
  "safety": {
    "dangers": [],
    "score": 80,
    "taxes": {
      "buyPercent": 0,
      "sellPercent": 0
    },
    "verdict": "low-risk",
    "warnings": [
      "mintable"
    ]
  },
  "sources": [
    "GoPlus Security",
    "GeckoTerminal",
    "Blockscout",
    "Public RPC node"
  ],
  "tier": "cached",
  "token": {
    "change24hPercent": 0.05,
    "marketCapUsd": 39282410,
    "name": "EXAMPLE",
    "priceUsd": 0.00109,
    "symbol": "EXAMPLE"
  },
  "trade": {
    "amountUsd": 1000,
    "side": "buy"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40245 ms$0.01