agentsvc.io

services / token-precheck

financeoperational · 2781 ms

Token Pre-Trade Check

Honeypot and rug check before a trade, built for trading bots that check every token in a loop: up to 5 token addresses per call (Base, Ethereum, BSC, Arbitrum, Polygon, Avalanche, Optimism or Solana), one decision each: ALLOW, CAUTION or BLOCK, with grade A to F, score, honeypot flag and the main reason. Based on our own on-chain checks (contract code, pools, real buy and sell simulation). Results are cached for 10 minutes, so repeat checks answer in milliseconds. Accepts token, tokenAddress or tokens. Cheaper per token than any single-token verdict.

Run free trial ↗3 free calls per day with the example input. Paid: $0.004 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/token-precheck", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"tokens":["0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed","0x532f27101965dd16442E59d40670FaF5eBB142E4"],"chain":"base"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
tokensarrayUp to 5 addresses, strings or {token, chain}
tokenstringSingle address (alternative to tokens)
chainstringbase, ethereum, bsc, arbitrum, polygon, avalanche, optimism or solana. Default base

Output

FieldTypeDescription
decisionstring
resultsarray
latency_msnumber
rulestring