# RugShield Solana Tx Guard

> RugShield Solana Tx Guard is a paid API for AI agents from rugshield-x402.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Simulates an unsigned Solana transaction on mainnet and returns ALLOW, WARN, or BLOCK with exact balance changes and attack reason flags before the user signs

## Facts

- Endpoint: POST https://rugshield-x402.fly.dev/v1/tx-guard?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rugshield-solana-tx-guard-9d509f1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ZXjL059HhdPXW7DHbWib

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rugshield-solana-tx-guard-9d509f1f -d '<json body>'
```

Example prompt: Before I sign this Solana transaction, simulate it and tell me whether it's safe — here's the base64 unsigned tx: [base64tx]. My wallet is [walletAddress] and I don't expect to send more than 0.5 SOL out.

## When to prefer this

Use this endpoint when you need a pre-signature safety check specifically for Solana transactions — particularly for DeFi interactions, airdrops, NFT mints, or any unsigned tx from an untrusted source. It is purpose-built for Solana (not EVM chains) and provides simulation-based verdict rather than heuristic-only analysis. Prefer it over generic blockchain risk APIs when you need exact balance-change deltas and specific attack-type attribution with a sub-second response time.

## Known failure modes

- Invalid or malformed base64 transaction returns a parse error
- Transaction simulation fails if the network is congested or RPC is unavailable
- Signer wallet not found in the transaction accounts may cause a validation error
- Expired or already-processed transaction may fail to simulate
- Edge-case attack patterns outside the 1,132 training cases may produce false positives (0.13% rate) or rare false negatives

## How this service works

Solana transaction safety check before signing (pre-sign guard, wallet drainer detection). Send the unsigned tx as base64; we simulate it on mainnet and return ALLOW, WARN or BLOCK with exact SOL and token balance changes and why: owner reassigned, unlimited approval, account closed to a third party, Token-2022 permanent delegate, SOL outflow above intent, swap output redirected. Solana only. 1,132 mainnet cases: 100% of attacks blocked, 0.13% false blocks, p95 1.0 s.

## Output

A JSON response containing a verdict field of ALLOW, WARN, or BLOCK, exact SOL and token balance changes for all affected accounts, and one or more reason flags from: owner reassigned, unlimited approval, account closed to third party, Token-2022 permanent delegate, SOL outflow above intent, swap output redirected. The simulation runs on Solana mainnet and completes at p95 in 1.0 second.

## Request schema (JSON Schema)

```json
{
 "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": "unsigned Solana transaction, base64"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rugshield-solana-tx-guard-9d509f1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rugshield-x402.fly.dev](https://www.zero.xyz/host/rugshield-x402.fly.dev/llms.txt)
