{"uid":"cap_yKd75aaV2MiZ_8F_Nx7Pm","slug":"solana-transaction-preview-pre-sign-safety-check-e7487f4f","name":"Solana Transaction Preview & Pre-Sign Safety Check","description":"Solana transaction preview BEFORE signing: simulate an unsigned or signed legacy/v0 transaction (address lookup tables resolved) and get SOL and SPL/Token-2022 balance changes for your wallet, programs invoked (known/unknown), fee estimate and red flags (token approvals, authority/owner changes, close-to-other, wallet reassign, >90% SOL loss, simulation failure). JSON body. Optional Pre-Sign Brief (schema 1.0): pass intent (e.g. 'swap 0.002 SOL for USDC', 'send 0.001 SOL to <address>') and/or context {type, ticker, mint}; get verdict clear|caution|avoid with reasons, intent_match, verified xStocks tokenized-equity check, priority-fee market hint (micro-lamports/CU) and a sha256 brief_hash.","url":"https://solana-x402-microtools-mainnet.valecity.workers.dev/api/tx-preview?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"intent":{"type":"string","maxLength":200,"description":"Optional plain intent, checked against the simulated effects. Supported: 'send <amt> <SOL|symbol|mint> to <address>', 'swap|sell <amt> <asset> for <asset>', 'buy <amt> <asset> for <asset>', 'approve ...', 'close ...'. Other wording: not checked, no penalty."},"wallet":{"type":"string","description":"Optional: your wallet address, to highlight its balance changes (defaults to the fee payer)"},"context":{"type":"object","properties":{"mint":{"type":"string","description":"Claimed mint address"},"type":{"enum":["memecoin","tokenized_equity"],"type":"string"},"ticker":{"type":"string","maxLength":12,"description":"Claimed ticker, e.g. NVDAx"}},"description":"Optional claims about the asset; tokenized-equity claims are checked against an allowlist of verified xStocks mints","additionalProperties":false},"encoding":{"enum":["base64","base58"],"type":"string","description":"Optional; auto-detected if omitted"},"transaction":{"type":"string","maxLength":2200,"description":"Serialized Solana transaction (legacy or v0), signed or UNSIGNED (all-zero signature slots), max 1232 bytes, base64 or base58"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qdEbSYa8ep1qOKrKWql93","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates a Solana transaction before signing to surface SOL/SPL balance changes, programs invoked, fee estimates, red flags, and an optional intent-matching verdict (clear/caution/avoid)","exampleAgentPrompt":"Before I sign this transaction, simulate it for my wallet 7xKp...AbC2 and check if it matches my intent to swap 0.002 SOL for USDC — flag any red flags like authority changes or unexpected balance losses, and give me a clear/caution/avoid verdict.","exampleUseCases":[{"title":"Safe swap verification before signing","prompt":"I'm about to sign a Jupiter swap to trade 0.5 SOL for USDC — can you simulate this transaction first for my wallet and tell me if the balance changes match that intent and whether there are any red flags I should know about?"},{"title":"Phishing transaction safety check","prompt":"Someone sent me a transaction to sign that claims to be an NFT mint, but I'm not sure it's legit — can you preview it and tell me if it's trying to change my wallet authority, drain my SOL, or do anything suspicious?"},{"title":"xStocks tokenized equity verification","prompt":"I want to buy NVDAx tokens and someone gave me a transaction to sign — can you simulate it, verify that the mint is actually a legitimate xStocks tokenized equity, and give me a verdict on whether it's safe to proceed?"}],"resultDescription":"Returns simulated SOL and SPL/Token-2022 balance changes for the specified wallet, a list of programs invoked (labeled known or unknown), estimated transaction fee, and red flags such as token approvals, authority/owner changes, close-to-other instructions, wallet reassignment, or >90% SOL loss. With optional intent and context fields, also returns a verdict of clear/caution/avoid with reasons, intent_match boolean, xStocks mint verification status, priority-fee market hint in micro-lamports/CU, and a sha256 brief_hash for audit.","failureModes":["Transaction exceeds 1232 bytes — serialization rejected","Invalid base64/base58 encoding causes parse failure","Address lookup tables unresolvable on mainnet — simulation aborted","Simulation failure itself flagged as a red flag in the response","Unknown or unrecognized programs listed but not blocking","Intent string format not recognized — no penalty, intent_match not returned","Missing or invalid wallet address defaults to fee payer detection","Payment not received (x402) — 402 response, endpoint not called"],"whenToPreferThis":"Choose this endpoint when you need to validate a Solana transaction before signing, especially in agent-driven DeFi workflows where the agent constructs or receives transactions on behalf of a user. It is uniquely suited for intent-matching (confirming the transaction does what the user said), red flag detection (authority changes, token approvals, SOL drain), and xStocks tokenized equity verification. Prefer it over generic RPC simulation when you need a human-readable safety verdict and balance-change summary rather than raw simulation logs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:37:34.038Z","isFirstParty":false,"canonicalSlug":"solana-transaction-preview-pre-sign-safety-check-e7487f4f"}