Repository navigation
Pre-trade token safety check for agents on Base (free preview, x402 pay-per-call) #1005
rezearcher
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A live x402 v2 seller on Base mainnet for pre-trade token checks: one call returns go / hold / block
If you build an agent that buys tokens, one cheap call before the swap can tell it whether the token is a honeypot, whether it can be sold, how deep the liquidity is, and what the owner can still do (mint, pause, blacklist, upgrade).
curl -s https://x402-data-api.sigrunner.workers.dev/gate/swap/preview?token=weth(demo tokens: usdc, weth, cbbtc, aero, degen). It returns the same response shape as the paid route:
{decision: go|hold|block, verdict, risk_score, liquidity_usd, flags[]}.GET /gate/swap?token=<any Base ERC-20>&side=buy¬ional_usd=250, $0.008 USDC on Base (eip155:8453, exact scheme), x402 v2. A full report is/chain/token-report./.well-known/x402,/openapi.json, and a remote MCP server at/mcp.Limits, stated up front: it is a heuristic signal and not a guarantee. DEX buy/sell tax percentages are not measured. Only
transferTaxBpsis measured, viaeth_simulateV1on a plain transfer. Base only. I measured the preview latency at about 0.9 s median over 12 runs. That is a single sample, not an SLA.I'd like to hear which token you'd test it on first and what response fields your agent needs. I'll add them if they are cheap to measure.
All reactions