{"uid":"cap_dwn8sx1oVrVHu7OVV3V09","slug":"solana-swap-builder-with-pre-trade-risk-check-b157885b","name":"Solana Swap Builder with Pre-Trade Risk Check","description":"Call this when your agent wants to buy or swap a Solana token. One call runs the full pretrade check on outputMint (token risk, holder concentration, stablecoin and xStock lookalikes), then builds the best Jupiter route with a price-impact estimate (and a split-fill chunk plan when impact is over 1%) as an UNSIGNED versioned transaction with your taker wallet as fee payer. Non-custodial: we never hold keys or funds; you sign and send it yourself.","url":"https://solana-wallet-intel-phi.vercel.app/swap/build?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oDUua_A0xCHhd0akwXCD2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a full pre-trade risk check on a Solana output token and builds an unsigned Jupiter-routed swap transaction with price-impact estimation and optional split-fill plan.","exampleAgentPrompt":"Before I buy, run a pre-trade check on the Solana token at mint address 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU and build me the best unsigned Jupiter swap transaction from USDC, swapping 500 USDC with my wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM as the fee payer.","exampleUseCases":[{"title":"Safe memecoin swap before buying","prompt":"I want to swap 200 USDC into this memecoin at mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 — can you run the risk check and build me the unsigned swap transaction using my wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM?"},{"title":"Large trade split-fill planning","prompt":"I'm trying to buy 50,000 USDC worth of this token at mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v — check the price impact and if it's over 1% give me a split-fill chunk plan, and build the unsigned transaction with my wallet address 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM."},{"title":"xStock lookalike screening before swap","prompt":"Before I swap into this token at mint 8bpRdBGPt354bfvPBGmxL5MguwvHNDL7EfvTRcJXGJZX, check if it's a tokenized stock lookalike or stablecoin and build me the best Jupiter route for swapping 1 SOL from my wallet 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM."}],"resultDescription":"Returns a token risk report covering sell tax, holder concentration, stablecoin and xStock lookalike flags, plus the optimal Jupiter route with price impact estimate. When price impact exceeds 1%, also includes a split-fill chunk plan. The main deliverable is a fully constructed unsigned versioned Solana transaction ready for the caller to sign and broadcast, with the taker wallet set as fee payer.","failureModes":["Invalid or unrecognized outputMint address returns an error or empty risk data","No Jupiter route found for the requested token pair returns a routing failure","Token has extremely low liquidity causing price impact calculation to fail","Invalid taker wallet address causes transaction construction to fail","Network congestion or RPC timeouts may delay or fail transaction building","Token mint flagged as high-risk may return a warning but still build the transaction"],"whenToPreferThis":"Use this endpoint when your agent needs to both screen a Solana token for safety AND build a ready-to-sign swap transaction in a single call, avoiding the need to call separate risk-check and routing endpoints. Ideal for agentic DeFi workflows where non-custodial, pre-trade-checked swaps are required. Prefer this over raw Jupiter API calls when token risk screening (rug detection, holder concentration, xStock/stablecoin lookalike checks) is important before executing a trade.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:36:07.698Z","isFirstParty":false,"canonicalSlug":"solana-swap-builder-with-pre-trade-risk-check-b157885b"}