{"uid":"cap_ZBvDIY_QPBwfGFyhWtDr_","slug":"rugshield-solana-tx-guard-35636457","name":"RugShield Solana Tx Guard","description":"RugShield aggregates Solana risk checks: one API call runs independent advisors in parallel, plus our own code-based flags. Pay in USDC via x402.","url":"https://getrugshield.com/v1/tx-guard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"intent":{"type":"object","description":"optional: max_sol_out, expected_mints_in, allowed_recipients"},"signer":{"type":"string","description":"wallet that will sign; defaults to the fee payer"},"transaction":{"type":"string","description":"Your real unsigned Solana transaction serialized as base64; invalid input is rejected before payment"}}},"responseSchema":{"type":"json","example":{"reasons":[],"verdict":"ALLOW","latency_ms":640,"simulation":{"ok":true,"slot":null,"error":null,"units_consumed":null},"guard_version":"0.1.1","balance_changes":[],"tokens_received":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_X3QWSDKfLqAcWfcK3xbWv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-sign Solana transaction safety check that simulates the transaction on mainnet and returns ALLOW, WARN, or BLOCK with exact balance changes and attack type reasons","exampleAgentPrompt":"Before I sign this Solana transaction, run it through RugShield's tx-guard and tell me if it's safe — here's the base64 unsigned tx, my signer wallet is 7xKf...mN2, and I expect no more than 0.05 SOL to leave my wallet.","exampleUseCases":[{"title":"DeFi swap safety check","prompt":"I'm about to sign a Jupiter swap transaction — can you simulate it first and tell me if it's ALLOW, WARN, or BLOCK? I don't want the output redirected or more than 0.1 SOL leaving my wallet. Here's the base64 tx."},{"title":"NFT mint transaction guard","prompt":"Before I approve this NFT mint transaction, check it for wallet drainer patterns — specifically owner reassignment or account closure to a third party. My signer wallet is 4aZr...Qp8 and here's the unsigned tx in base64."},{"title":"Airdrop claim attack prevention","prompt":"Someone sent me a link to claim an airdrop and I have the unsigned transaction ready. Can you run it through the Solana tx guard and flag anything suspicious like unlimited approvals or Token-2022 permanent delegate attacks before I sign?"}],"resultDescription":"A JSON object containing a verdict field (ALLOW, WARN, or BLOCK), a reasons array listing specific attack types detected (e.g. OWNER_REASSIGN, unlimited approval, SOL outflow above intent), a balance_changes array showing exact SOL and token deltas, and a latency_ms field. On attack detection the verdict is BLOCK with reasons; safe transactions return ALLOW with balance changes shown.","failureModes":["Malformed or invalid base64 transaction returns an error response","Transaction not on Solana mainnet may not simulate correctly","Very complex transactions with many accounts could exceed the p95 1.0s latency","If the signer field is omitted the fee payer is assumed, which may produce incorrect balance attribution","Rare legitimate transactions may be false-blocked (0.13% rate per stated benchmarks)","Network or RPC simulation failures may return an error instead of a verdict"],"whenToPreferThis":"Use this endpoint when you need a pre-sign safety verdict on a specific Solana transaction and want to know the exact balance changes that will occur, especially when wallet drainer attacks, unlimited approvals, owner reassignment, or swap redirection are a concern. Prefer this over generic token risk checks when you already have a constructed unsigned transaction and need a binary go/no-go decision before the user signs. Best suited for AI wallet agents, DeFi frontends, and autonomous Solana agents that submit transactions on behalf of users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:46:33.904Z","isFirstParty":false,"canonicalSlug":"rugshield-solana-tx-guard-35636457"}