TxShield is the execution intelligence layer for Solana bots. We pre-flight every transaction, tell you the exact priority fee to match recently-landed txs, and abort doomed sends before they touch the network. Fewer failed broadcasts, less fee waste, cleaner inclusion through direct / staked sender / Jito bundle. Background MEV detection on 8 DEX programs flags sandwich risk before you swap.
getRecentPrioritizationFees sampling per program, returned beside the verdict so the wallet can re-sign at the right tip.simulateTransaction with full pre-execution. Returns balance changes, CPI call tree, per-program compute and revert reasons in one envelope.Send the unsigned Solana tx (or just its base64 message) to /api/v1/solana/tx/simulate. We score the 6 detection vectors in parallel and return a single verdict — approve, warn, or block — alongside the per-vector breakdown.
curl -X POST "https://api.txshield.dev/api/v1/solana/tx/simulate" \ -H "X-API-Key: $TXSHIELD_KEY" \ -H "Content-Type: application/json" \ -d '{ "transaction": "<base64-versioned-tx>", "policy": "wallet-default" }'# HTTP/2 200# {# "decision": "approve",# "risk": 0.04,# "landing_estimate": { "fee_percentile_bucket": "low", ... },# "latency_ms": 68# }
// SDK shape — beta preview.import { TxShield } from "@txshield/sdk";const tx = new TxShield({ key: process.env.TXSHIELD_KEY });// drop the raw, unsigned tx inconst verdict = await tx.solana.simulate({ transaction: unsignedB64,});if (verdict.decision === "block") { throw new Error(`refused: ${verdict.reasons[0]}`);}// → { decision: "approve", risk: 0.04, latency_ms: 68 }
# SDK shape — beta preview.from txshield import TxShieldtx = TxShield(key=os.environ["TXSHIELD_KEY"])# drop the raw, unsigned tx inverdict = tx.solana.simulate( transaction=unsigned_b64,)if verdict.decision == "block": raise RuntimeError(f"refused: {verdict.reasons[0]}")# → Verdict(decision='approve', risk=0.04, latency_ms=68)
One price for everyone. 1,000 simulations per day on the house, then €0.002 per simulation past that — billed at the end of each calendar month. Every account gets all 6 detection vectors, webhooks, batch and WebSocket — feature gating felt like punishment for the wrong people.
/api/v1/solana/tx/submit
€0.003 per billable submit-strategy call (staked sender, managed-tip Jito). direct and auto-direct submits are free. Jito tips are pure pass-through and billed at exact cost.
Volume customers get a negotiated rate, dedicated regional cluster, 99.99% SLA, SOC 2 / ISO 27001 evidence pack, custom risk rules, and Slack-Connect with 1-hour pager response.
One key. One Solana endpoint. Drop it in front of every send call your product makes — your users never see another sandwich, honeypot or rug-pull again.