{"slug":"api-x402risk-com-v1-pretrade-check-9f3da1","title":"Pre-trade sellability / honeypot check for Base tokens","host":"api.x402risk.com","method":"POST","resource":"https://api.x402risk.com/v1/pretrade-check","category":"market","description":"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/cau","price_listed":0.02,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount_usd":100,"token":"0x532f27101965dd16442E59d40670FaF5eBB142E4"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$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"},"history":[],"description_full":"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.","last_updated":"2026-09-28T16:18:21.289Z","schemes":["exact"]}