# SolMachina Transaction Inspector

> SolMachina Transaction Inspector is a paid API for AI agents from api.solmachina.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Decodes and analyzes a Solana transaction by signature, returning success status, fee, programs invoked, SOL/token balance changes, and compute units consumed

## Facts

- Endpoint: GET https://api.solmachina.com/v1/tx-inspect
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solmachina-transaction-inspector-e3551a70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QF2PIaZeKqVYD0rF8ezeZ

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 solmachina-transaction-inspector-e3551a70
```

Example prompt: Can you decode Solana transaction 5xHqPp2MzNk3vY8TgWmFdJLrXosBe91cKaUwVqD4tAnYRPCmkzSU6QvNpTiLbE7j and tell me which programs were invoked, whether it succeeded, and how the SOL and token balances changed?

## When to prefer this

Choose this endpoint when you need a structured, human-readable decode of a specific Solana transaction by its signature — including program names, balance deltas, and success status — without setting up an account or API key. It is ideal for AI agents that need on-demand, per-call transaction intelligence paid in USDC via x402, particularly in DeFi audit, compliance, or debugging workflows where fabricated data is unacceptable.

## Known failure modes

- Invalid or malformed Base58 signature returns an error
- Transaction signature not found on Solana mainnet (e.g. devnet tx) returns not-found error
- Very recent transactions may not yet be indexed, causing a temporary unavailability
- Payment of 0.01 USDC via x402 fails or is rejected, blocking the request
- Network timeout if Solana RPC is congested

## How this service works

Before an AI agent executes on Solana, it asks SolMachina: risk + a decision (EXECUTE/REVIEW/REJECT) + an SMRI score + a signed receipt, paid per call over x402 in USDC. Trust-first — cites every source, says 'unknown' over guessing. No account, no API key.

## Output

Returns a structured object with: a boolean success flag, the transaction fee in SOL, an array of programs invoked (with names), arrays of SOL and token balance changes per account, and the compute units consumed. Every field is source-cited and no confidence values are fabricated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "sig"
 ],
 "properties": {
  "sig": {
   "type": "string",
   "description": "Base58 Solana transaction signature to decode."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "feeSol": {
   "type": "number"
  },
  "success": {
   "type": "boolean"
  },
  "programsInvoked": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   }
  },
  "solBalanceChanges": {
   "type": "array",
   "items": {}
  },
  "tokenBalanceChanges": {
   "type": "array",
   "items": {}
  },
  "computeUnitsConsumed": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solmachina-transaction-inspector-e3551a70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solmachina.com](https://www.zero.xyz/host/api.solmachina.com/llms.txt)
