# Solana Compute Unit Analyzer

> Solana Compute Unit Analyzer is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Analyzes Solana transaction compute unit consumption and utilization against the compute unit limit, returning headroom, utilization, and limit breach status.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_compute_unit_analyze/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-compute-unit-analyzer-5c5107c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fi8rCzh6caSHd5Nb1lBIp

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 solana-compute-unit-analyzer-5c5107c3 -d '<json body>'
```

Example prompt: Can you analyze the compute unit usage for my Solana transaction — I observed 180000 units consumed out of a 200000 limit — and tell me the headroom, utilization rate, and whether I'm within the limit?

## When to prefer this

Use this endpoint when you need a quick, structured breakdown of Solana compute unit consumption from observed transaction data — especially when you want utilization_ppm, headroom, and a within-limit boolean without running a full on-chain simulation. It is ideal for agents monitoring Solana programs, validating compute budgets before deployment, or diagnosing near-limit transactions at $0.01 per call.

## Known failure modes

- Malformed or invalid request_json input results in a parsing error
- Observations outside plausible Solana compute unit ranges may yield misleading utilization figures
- Missing required fields in the request JSON may cause the service to return an error or incomplete analysis
- Results reflect caller-supplied data accuracy, not an on-chain simulation — garbage-in, garbage-out risk

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON analysis including compute_unit_limit, units_consumed, headroom (remaining units), utilization_ppm (parts per million), and within_limit boolean for the Solana network, along with warnings that the analysis is based on caller-supplied observations rather than a simulation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_json": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Consumption and limits are supplied observations, not a simulation."
   ],
   "service_id": "solana_compute_unit_analyze",
   "analysis_json": "{\"compute_unit_limit\":\"200000\",\"headroom\":\"20000\",\"units_consumed\":\"180000\",\"utilization_ppm\":\"900000\",\"within_limit\":true}",
   "evidence_scope": "caller_supplied_data",
   "analyzed_network": "solana"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "solana_compute_unit_analyze",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "88040a8712a4dd9a7165609186a117e578d9bb8c13ec68db31b607873727a65c",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-compute-unit-analyzer-5c5107c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
