# Utilia Solana Transaction Simulator

> Utilia Solana Transaction Simulator is a paid API for AI agents from api.utilia.ink, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Simulate a Solana transaction to predict success/failure, compute units consumed, and instruction classification before broadcasting.

## Facts

- Endpoint: POST https://api.utilia.ink/base/v1/transaction/simulate
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/utilia-solana-transaction-simulator-388d1f41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qo4CUNko8Wjp8U0AXDhFS

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 utilia-solana-transaction-simulator-388d1f41 -d '<json body>'
```

Example prompt: Before I submit this Solana transaction, can you simulate it to check whether it'll succeed and tell me how many compute units it'll use?

## When to prefer this

Use this endpoint when you need a fast, cheap preflight simulation of a Solana transaction before broadcasting — especially useful for setting compute budgets, catching likely failures before paying gas, or classifying what a transaction does. Prefer this over on-chain preflight RPC calls when you want instruction classification alongside compute unit estimation in a single call, paid per-use with no API key required.

## Known failure modes

- Invalid or malformed serialized transaction returns an error
- Transaction simulation reverts due to insufficient SOL balance or account state mismatch
- Network congestion or RPC errors causing simulation timeout
- Payment failure via x402 USDC if wallet has insufficient balance

## How this service works

Give a Solana agent live compute-unit price bids for $0.002 per call via x402 USDC. One AgentCash command, no API key or subscription.

## Output

A JSON object with a 'succeeded' boolean indicating whether the transaction would succeed, 'unitsConsumed' showing the number of compute units the transaction would use, and a 'classification' object with a 'category' field describing the type of instruction (e.g. 'none', 'swap', 'transfer').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "encoding": {
   "enum": [
    "base64",
    "base58"
   ],
   "type": "string"
  },
  "transaction": {
   "type": "string",
   "description": "Serialized transaction"
  },
  "accountAddresses": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 20
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "succeeded": true,
  "unitsConsumed": 142000,
  "classification": {
   "category": "none"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/utilia-solana-transaction-simulator-388d1f41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.utilia.ink](https://www.zero.xyz/host/api.utilia.ink/llms.txt)
