{"uid":"cap_wiwOJRIVdAri4fOam_oGz","slug":"plexa-rug-check-pre-trade-token-safety-check-f32e08f9","name":"Plexa Rug Check — Pre-Trade Token Safety Check","description":"Plexa /v1/pretrade/check — pre-trade token safety check on Base: can you still sell this token? avoid fires only on a trap proven on-chain now: no pool to exit into, an exit pot under 5% of your size, or the trading gate off (the honeypot shape). A drained pot is what a rug leaves behind — measured, not predicted. clear = no provable trap, NOT safe. Alias: same engine and price as /v1/pretrade/check.","url":"https://api.getplexa.com/v1/rug-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","polygon","matic","arbitrum","arbitrum-one","arb","eip155:8453","eip155:137","eip155:42161"],"type":"string","description":"Optional, default \"base\". One of: base | polygon | matic | arbitrum | arbitrum-one | arb | eip155:8453 | eip155:137 | eip155:42161 — case-sensitive (see `enum`). The safety flags are Base-tuned, so a non-base value currently answers 422 rather than returning Base-calibrated flags for another chain."},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 to vet before buying. 0x + 40 hex (see `pattern`) — a symbol like \"WETH\" is rejected with 400."},"sizeUSD":{"type":"string","pattern":"^(?:0\\.\\d*[1-9]\\d*|[1-9]\\d*(?:\\.\\d+)?)$","maxLength":78,"description":"Optional USD notional for the executable-quote sub-result, default \"1000\". A STRING, not a number; positive, no thousands separator (\"1,000\" is rejected) — see `pattern`."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ipfK59ZvwCafaILcVvlvY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an ERC-20 token on Base (or supported L2s) is provably unsellable right now by detecting on-chain traps: no liquidity pool, insufficient exit liquidity relative to trade size, or a disabled trading gate (honeypot pattern).","exampleAgentPrompt":"Before I buy, can you run a rug check on token 0x4200000000000000000000000000000000000006 on Base for a $2000 position size — I want to know if there's a honeypot trap or if I'd be able to exit?","exampleUseCases":[{"title":"Pre-buy honeypot check for new token","prompt":"I'm about to ape into this Base token at 0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234 with $5000 — can you check if the trading gate is disabled or if it's a honeypot before I pull the trigger?"},{"title":"Exit liquidity check for large position","prompt":"I'm holding 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefd2 on Base and want to sell my $15000 position — is there enough exit liquidity in the pool right now, or would I be trapped?"},{"title":"Automated bot pre-trade safety filter","prompt":"Before my sniper bot buys 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base with a $500 notional, do a rug check to make sure there's no provable trap — no locked pool, no trading gate off, nothing like that."}],"resultDescription":"Returns a structured verdict indicating whether a provable on-chain trap exists for the token: flags for no liquidity pool, insufficient exit liquidity relative to the requested USD size (under 5% threshold), or a disabled trading gate (honeypot). Also returns an executable quote sub-result calibrated to the requested sizeUSD. A 'clear' result means no provable trap was detected — explicitly not a safety guarantee.","failureModes":["400 — token parameter is a symbol (e.g. 'WETH') instead of a 0x hex address","422 — non-Base chain specified (chains other than Base currently not supported for calibrated safety flags)","Invalid sizeUSD format — comma-separated numbers or non-numeric strings are rejected","Malformed token address (not matching 0x + 40 hex pattern)"],"whenToPreferThis":"Use this endpoint when you need a fast, on-chain-provable pre-trade safety check specifically on Base (or supported L2s) before executing a token buy. Prefer it over generic token scanners when you need an objective, measurable verdict (no pool, insufficient liquidity, trading gate off) rather than a predictive or heuristic score. Especially valuable for automated trading bots or agents that need a programmatic go/no-go signal tied to a specific USD position size.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:58.150Z","isFirstParty":false}