Pre-trade sellability / honeypot check for Base tokens
Pre-trade sellability / honeypot check for Base tokens: simulates a buy, a wallet transfer and a sell of a Base ERC-20 on live Base state (Uniswap v2/v3 or Aerodrome; nothing is signed or spent). Returns buy/sell/transfer success, measured tax %, revert reason and a simulation-driven verdict (ok/caution/avoid/unknown); owner/holder flags go in risk_flags. $0.02 USDC. Invalid input is not charged. Informational, not financial advice.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.x402risk.com/v1/pretrade-check
| Category | Market data |
|---|---|
| Provider host | api.x402risk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"amount_usd": 100,
"token": "0x532f27101965dd16442E59d40670FaF5eBB142E4"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"amount_usd": {
"default": 100,
"description": "Hypothetical trade size in USD (capped to 5% of the pool's quote reserve)",
"maximum": 10000,
"minimum": 1,
"type": "number"
},
"router": {
"default": "auto",
"description": "Restrict the simulated pool type; auto = deepest supported WETH/USDC pool",
"enum": [
"auto",
"uniswap_v2",
"uniswap_v3",
"aerodrome"
],
"type": "string"
},
"token": {
"description": "Base (chain 8453) ERC-20 token contract address",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"block_number": {
"type": [
"integer",
"null"
]
},
"buy_ok": {
"type": [
"boolean",
"null"
]
},
"buy_tax_pct": {
"type": [
"number",
"null"
]
},
"cached": {
"type": "boolean"
},
"chain": {
"type": "string"
},
"disclaimer": {
"type": "string"
},
"errors": {
"type": "array"
},
"gas": {
"type": [
"object",
"null"
]
},
"pool": {
"type": [
"string",
"null"
]
},
"product": {
"type": "string"
},
"reasons": {
"items": {
"type": "string"
},
"type": "array"
},
"revert_reason": {
"type": [
"object",
"null"
]
},
"risk_flags": {
"description": "Token-check owner/holder/contract flags; informational, do not affect verdict",
"items": {
"properties": {
"flag": {
"type": "string"
},
"note": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"route": {
"type": [
"string",
"null"
]
},
"schema_version": {
"type": "string"
},
"sell_ok": {
"type": [
"boolean",
"null"
]
},
"sell_tax_pct": {
"type": [
"number",
"null"
]
},
"sellability": {
"type": "object"
},
"sources": {
"type": "array"
},
"status": {
"enum": [
"ok",
"partial",
"error"
],
"type": "string"
},
"token": {
"type": "string"
},
"token_check": {
"type": "object"
},
"token_check_risk_level": {
"type": [
"string",
"null"
]
},
"transfer_ok": {
"type": [
"boolean",
"null"
]
},
"transfer_tax_pct": {
"type": [
"number",
"null"
]
},
"verdict": {
"description": "Driven only by the simulation: sellability, buy/sell/transfer taxes, drained/no liquidity",
"enum": [
"ok",
"caution",
"avoid",
"unknown"
],
"type": "string"
}
},
"required": [
"schema_version",
"token",
"status",
"verdict",
"reasons",
"risk_flags",
"disclaimer"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}