{"uid":"cap_lNVg3aWpjzThIeprVRikl","slug":"near-pre-trade-gate-983a1a6b","name":"NEAR Pre-Trade Gate","description":"The call to make before buying a NEP-141 token: who controls it (keys, owner, pause), whether you can get back out — a USDC round trip through NEAR Intents at your trade size, loss measured — and whether a few accounts hold most of the circulating supply. Over 15% lost or no route is STOP or HOLD; HIGH concentration is HOLD. One verdict with the quotes. size is in USD (default 100).","url":"https://402.com.tr/api/x402/near-pre-trade-gate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["token"],"properties":{"size":{"type":"string","description":"Trade size in USD (optional, default 100)"},"token":{"type":"string","description":"NEAR token contract account"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_U8kAcRZPowN-NA17Dri85","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":"Evaluates a NEP-141 token before buying by checking contract controls, exit liquidity via a USDC round-trip simulation through NEAR Intents, and supply concentration — returning a single STOP/HOLD/GO verdict.","exampleAgentPrompt":"Before I buy wrap.near, run a pre-trade gate check at a $500 trade size — I want to know who controls the contract, whether I can exit through NEAR Intents without losing more than 15%, and whether the supply is too concentrated.","exampleUseCases":[{"title":"Rug-pull check before DeFi entry","prompt":"I'm about to buy some token.v2.ref-finance.near — can you check who controls the contract, whether it can be paused, and whether I'd be stuck if I tried to exit? Use a $250 trade size."},{"title":"Supply concentration audit on new token","prompt":"This new NEP-141 token just launched and I want to know if a few whale wallets hold most of the supply before I put money in — run a pre-trade gate on meta-token.near for $100."},{"title":"Exit liquidity simulation before large trade","prompt":"I'm thinking of putting $1000 into a NEAR token — can you simulate the full USDC round trip through NEAR Intents and tell me what percentage I'd lose on exit? The token is token.paras.near."}],"resultDescription":"Returns a single trade verdict (STOP, HOLD, or GO) along with: contract control details (key holders, owner, pause capability), NEAR Intents round-trip simulation showing the exit route and percentage loss at the given trade size, and a supply concentration assessment (HIGH/MEDIUM/LOW). STOP is triggered by >15% loss or no exit route; HIGH concentration triggers HOLD.","failureModes":["Token contract not found on NEAR — returns error or no data","No liquidity route available through NEAR Intents for the token — verdict STOP","Invalid token account ID format — request rejected","Trade size too small or too large for meaningful route simulation","Upstream NEAR RPC or Intents API unavailability causing timeout"],"whenToPreferThis":"Use this endpoint specifically before buying any NEP-141 token on NEAR Protocol. It uniquely combines contract ownership/pause risk, real exit-route simulation via NEAR Intents, and whale concentration into a single actionable verdict — ideal for agents executing or recommending NEAR DeFi trades where rug risk or illiquidity could cause permanent loss.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:34:56.991Z","isFirstParty":false,"canonicalSlug":"near-pre-trade-gate-983a1a6b"}