sol.phoneagent.xyz · tx_simulator
sol.phoneagent.xyz · https://sol.phoneagent.xyz/tools/tx_simulator
SolAgent · tx_simulator — Simulate a base64-encoded Solana transaction without broadcasting it. Returns success/err, decoded failure reason, programs touched, writable accounts, compute units consumed, priority-fee estimate (SOL+USD), and a category (would-swap / would-transfer / would-fail). Drop-in for OATP's tx_simulator, priced 1c cheaper. Solana mainnet, settled in USDC.
This endpoint speaks x402: an unpaid request returns
HTTP 402 with machine-readable payment
terms, your agent pays the $0.19 USDC in USDC on-chain, and retries automatically. Pays to 33Bxr8iF9ptUyh9PghSywfWVcKz4VWiHGLnkkLg79LtA.Call it in 30 seconds
JavaScriptPythoncurl
// This service settles on Solana.
// Use an x402 client with a matching signer (e.g. an @x402 Solana client).
// First, inspect the payment terms for free:
const r = await fetch("https://sol.phoneagent.xyz/tools/tx_simulator"); // returns HTTP 402 + machine-readable terms
console.log(r.status, await r.json());
# This service settles on Solana.
# Use an x402 client with a matching signer. To see the terms first, for free:
import httpx
r = httpx.get("https://sol.phoneagent.xyz/tools/tx_simulator") # HTTP 402 + machine-readable payment terms
print(r.status_code, r.json())
# 1) An unpaid request returns HTTP 402 with the exact payment terms:
curl -i -X POST "https://sol.phoneagent.xyz/tools/tx_simulator" \
-H 'content-type: application/json' \
-d '{"transaction": {"description": "Base64-encoded serialized Solana transaction (legacy or versioned, signed or unsigned).", "required": true, "type": "string"}}'
# 2) Paying + retrying requires an x402 client that can sign the USDC
# authorization (curl alone cannot). See the JS / Python tabs below.
New to x402? Read the 5-minute quickstart →
ad slot · a crypto-native, no-tracking ad loads here in production
Query this registry programmatically. Every service here is searchable through the
x402hub API, an x402-payable endpoint your agents call and pay per request in USDC.
https://api-service-sandy.vercel.app · GET /api/search?q=... · $0.002 / call
Prefer to just support the project? Tip USDC on Base to
0x40BbeB1BEd1D4ba6f1d4C0eE0C9D93e2dA3347C6. This hub is free and ad-light.