# Solana Transaction Complexity Report

> Solana Transaction Complexity Report is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-13).

Analyzes a Solana transaction (supplied as JSON) and returns a structural complexity score with band classification, instruction/key/log counts, and interpretation.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_transaction_complexity_report/invoke
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-transaction-complexity-report-d2747542
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uPV359ljNq9FHWFXgYhFL

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-transaction-complexity-report-d2747542 -d '<json body>'
```

Example prompt: Can you run a complexity analysis on this Solana transaction JSON and tell me the complexity band (low/medium/high), score, and a breakdown of instruction count, account keys, and inner calls?

## When to prefer this

Choose this endpoint when you need a fast, deterministic structural complexity score for a Solana transaction without needing RPC access or on-chain confirmation status. It is caller-supplied-data analysis, meaning you provide the transaction JSON directly — ideal for pre-submission auditing, triage pipelines, or complexity-aware routing logic where you already have the raw transaction data.

## Known failure modes

- Malformed or non-Solana transaction JSON returns an error or empty counts
- request_json field exceeds 65536 characters resulting in validation rejection
- Missing required request_json field causes a bad request error
- Network mismatch if non-Solana data is supplied — result may be unreliable
- Payment failure (insufficient USDC) blocks execution and returns 402

## 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 object containing a complexity band (e.g. 'low'), a numeric complexity score, counts of instructions, inner instructions, account keys, and logs, a network label ('solana'), an interpretation label (e.g. 'structural_complexity_only'), and any relevant warnings such as 'Complexity is not safety, confirmation, or finality.' Also includes a signed receipt with payment metadata, result hash, and execution timestamps.

## 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": [
    "Complexity is not safety, confirmation, or finality."
   ],
   "service_id": "solana_transaction_complexity_report",
   "analysis_json": "{\"band\":\"low\",\"counts\":{\"calls\":0,\"inner\":0,\"instructions\":0,\"keys\":0,\"logs\":0},\"interpretation\":\"structural_complexity_only\",\"network\":\"solana\",\"score\":0}",
   "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_transaction_complexity_report",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "25000",
   "resultSha256": "20dea85212a86561c635706bf39600166ea2e184a4e72619f41f40ca8ed9bfb4",
   "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-transaction-complexity-report-d2747542/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)
