# paypi Solana Transaction Simulator

> paypi Solana Transaction Simulator is a paid API for AI agents from pay.ansht.tech, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Simulates a Solana transaction to preview execution results, compute units consumed, failure reasons, and program logs before broadcasting.

## Facts

- Endpoint: GET https://pay.ansht.tech/v1/simulate
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paypi-solana-transaction-simulator-213080d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o06NipE9QlvGsl4Xa8jYV

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 paypi-solana-transaction-simulator-213080d7
```

Example prompt: Can you simulate this Solana transaction for me before I send it — the base64 tx is 'AQAAAAAAAAAAAABhcmVhbGJhc2U2NHR4...' — I want to know if it'll succeed, how many compute units it uses, and see any program logs.

## When to prefer this

Use this endpoint when you need to dry-run a Solana transaction before broadcasting it — particularly useful for debugging failures, estimating compute units, previewing DeFi instruction outcomes, or validating a transaction built programmatically. Prefer this over on-chain submission when you want zero-cost, zero-risk transaction previewing with detailed logs and error introspection.

## Known failure modes

- Invalid or malformed base64 transaction — returns parse error
- Transaction references accounts that don't exist on the chosen cluster
- Simulation itself errors due to missing blockhash or expired transaction
- Payment not included or insufficient — x402 payment required before response
- Cluster value not recognized — defaults or errors depending on implementation

## How this service works

x402-paid Solana capabilities: transaction decode, simulation, security scan, program explain, and Kamino liquidation risk. Pay per request in USDC.

## Output

Returns a JSON object indicating whether the simulation succeeded (ok: true/false), an error object with InstructionError details if it failed, program execution logs, the human-readable failure reason (e.g. 'insufficient funds'), and the number of compute units consumed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tx"
     ],
     "properties": {
      "tx": {
       "type": "string"
      },
      "cluster": {
       "type": "string"
      },
      "accounts": {}
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": false,
  "err": {
   "InstructionError": [
    0,
    "Custom"
   ]
  },
  "logs": [],
  "failureReason": "insufficient funds",
  "unitsConsumed": 4512
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paypi-solana-transaction-simulator-213080d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pay.ansht.tech](https://www.zero.xyz/host/pay.ansht.tech/llms.txt)
