Solana Transaction Preview & Pre-Sign Safety Check is a paid API for AI agents from solana-x402-microtools-mainnet.valecity.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).
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)
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.
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.
POSThttps://solana-x402-microtools-mainnet.valecity.workers.dev/api/tx-preview?utm_source=zero.xyzChoose 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.
| Field | Type | Description |
|---|---|---|
| intent | string | 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 | string | Optional: your wallet address, to highlight its balance changes (defaults to the fee payer) |
| context | object | Optional claims about the asset; tokenized-equity claims are checked against an allowlist of verified xStocks mints |
| encoding | string | Optional; auto-detected if omitted |
| transaction | string | Serialized Solana transaction (legacy or v0), signed or UNSIGNED (all-zero signature slots), max 1232 bytes, base64 or base58 |
No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"