# Solana Inner Instructions Analyzer

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

Analyzes Solana transaction inner instructions to extract CPI (Cross-Program Invocation) structure, program inventory, and account references

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_inner_instructions_analyze/invoke
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-inner-instructions-analyzer-542868dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VZhoYBqDMRINEe-rMNnFO

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-inner-instructions-analyzer-542868dc -d '<json body>'
```

Example prompt: Analyze these Solana inner instructions for me and tell me how many CPI calls were made, which programs were invoked, and whether there are any unresolved accounts: {paste inner instructions JSON here}.

## When to prefer this

Choose this endpoint when you have raw Solana inner instruction data and need structured analysis of CPI structure, program inventory, and account resolution without running a full Solana RPC node. Ideal for agents auditing smart contracts, debugging transaction failures, or mapping inter-program call graphs. Prefer this over manual RPC parsing when you need a clean JSON breakdown of the CPI tree in a single pay-per-call request.

## Known failure modes

- Malformed or invalid inner instructions JSON causes parse failure
- Missing inner instructions data (service does not infer them from transaction hash)
- Unresolved accounts remain unresolved if account lookup tables are not supplied
- Input JSON exceeds 65536 character limit
- Network inference may be incorrect if transaction data is ambiguous

## 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 containing: CPI count (number of cross-program invocations), grouped instruction tree with parent-child relationships, resolved and unresolved account indexes, full program inventory (list of program IDs invoked), the analyzed network name, and any warnings (e.g. missing inner instructions). Also includes a receipt with payment and execution metadata.

## 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": [
    "Does not infer missing inner instructions."
   ],
   "service_id": "solana_inner_instructions_analyze",
   "analysis_json": "{\"cpi_count\":1,\"groups\":[{\"children\":[{\"account_indexes\":[0],\"child_index\":0,\"program_id\":\"11111111111111111111111111111111\",\"program_id_index\":0,\"resolved_accounts\":[\"11111111111111111111111111111111\"]}],\"parent_instruction_index\":0}],\"program_inventory\":[\"11111111111111111111111111111111\"],\"unresolved\":[]}",
   "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_inner_instructions_analyze",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "15000",
   "resultSha256": "b5a88a24013c1eb4b7f8baf25fd67c5cfb8854dd4ff1af2fc14fe03d6be75b09",
   "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-inner-instructions-analyzer-542868dc/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)
