Pre-trade token safety check: honeypot, taxes, liquidity and oracle price
base_token_safety_checkScreens one ERC-20 token on Base or another EVM chain right before a swap and returns a verdict SAFE, CAUTION, DANGER or HONEYPOT, a safety score from 0 to 100 and a swap-eligibility decision with a recommended maximum slippage. It combines the GoPlus contract scan and a honeypot.is sell simulation (buy and sell tax, hidden owner, blacklist, mintable, proxy, cannot-sell-all), live DexScreener liquidity, volume and pool age, and a DefiLlama oracle price compared with the DEX price, and lists every finding as a coded flag. Use it as the last guard of a trading or treasury agent before buying an unfamiliar token, or to explain why a token is risky. Do not use it as investment advice or a price forecast, for NFTs or native coins, or for a wallet address, which belongs to evm_wallet_risk_check. Live data: results change as markets move, so call it again right before each trade rather than reusing an old result. Read 'verdict', 'swapEligibility' and 'flags'. Costs 0.015 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with ok false and 'error', so an agent loop never breaks on a thrown error. Read-only: it never signs, sends or approves a transaction and holds no keys.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "base_token_safety_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain the token lives on. Default base. Aliases such as eth, arb, op, matic, bnb, avax or a numeric chain id are also accepted; an unknown value falls back to base. | base |
| address | Yes | Token contract address as 0x followed by 40 hex characters, or on Base one of the tickers WETH, ETH, USDC, USDBC, CBBTC, AERO, VIRTUAL, DEGEN, BRETT, TOSHI, ONDO or CLANKER. Anything else returns ok false with error 'invalid_token_address'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | False when the address could not be resolved or the call was rejected. | |
| meta | No | Call metadata: service, version, authMode ('x402' or 'b2b-api-key'), facilitator and processingTimeMs. | |
| chain | No | Resolved chain key. | |
| error | No | Machine code of the failure, present only when ok is false. | |
| flags | No | Findings as {severity: high | medium | low, code, detail}, such as HONEYPOT_DETECTED, HIGH_SELL_TAX, LOW_DEX_LIQUIDITY or ORACLE_PRICE_DIVERGENCE. | |
| token | No | address, symbol, name and decimals, each null when no source knows it. | |
| chainId | No | EVM chain id, 8453 for Base. | |
| message | No | Human-readable failure detail, present only when ok is false. | |
| sources | No | Which upstreams answered: goPlus, honeypotIsV2, dexScreener, defiLlama. A false entry means less evidence, not a clean result. | |
| verdict | No | HONEYPOT when the token cannot be sold; otherwise DANGER below score 45, CAUTION below 75, SAFE from 75. | |
| safetyScore | No | 0 to 100, starting at 100 and reduced by each finding. | |
| swapEligibility | No | eligible (true for SAFE, or CAUTION with at least USD 25,000 liquidity and no oracle failure), maxRecommendedSlippageBps (50, 100 or 250 by liquidity) and reason. | |
| contractSecurity | No | Contract scan: isHoneypot, cannotSellAll, buyTaxPct, sellTaxPct, hiddenOwner, canTakeBackOwnership, isMintable, isProxy, isBlacklisted, tradingCooldown, holderCount, top10HolderPct and more; null where no source answered. | |
| pricingAndOracle | No | dexPriceUsd, oraclePriceUsd, oracleConfidence, divergencePct and oracleAgree ('pass', 'warn' or 'fail'). | |
| liquidityAndMarket | No | primaryDex, pairAddress, pairUrl, topPoolLiquidityUsd, totalChainLiquidityUsd, volume24hUsd, priceChange24hPct, pairAgeHours and txns24h {buys, sells}. | |
| suggestedNextSteps | No | Advisory follow-up calls, such as a wallet risk check of the deployer. |