# Solana Program Account Relationships Analyzer

> Solana Program Account Relationships Analyzer is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Analyzes relationships between accounts and programs referenced in Solana transaction instructions, mapping edges, hotspots, and unresolved references.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_program_account_relationships/invoke
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-program-account-relationships-analyzer-3d3521f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CMaSsr9W4ydP4qgNLBhHy

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-program-account-relationships-analyzer-3d3521f4 -d '<json body>'
```

Example prompt: Analyze the account-program relationships in this Solana transaction — show me which accounts each instruction references, flag any hotspot accounts, and list any unresolved references: {paste transaction JSON here}.

## When to prefer this

Use this endpoint when you need to programmatically extract and analyze the structural relationships between programs and accounts within a Solana transaction's instructions — especially useful for debugging, auditing, or security analysis of unknown transactions. Prefer this over generic blockchain explorers when you need structured, machine-readable edge data suitable for further agent processing.

## Known failure modes

- Malformed or invalid transaction JSON returns a parse error
- Missing required fields in request_json cause validation failure
- Relationships reflect supplied references only — semantic intent or actual on-chain ownership is not inferred
- Unresolved references returned when account indexes cannot be matched
- Network mismatch if transaction does not conform to Solana format

## 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: a list of edges (each edge maps an account to a program with its instruction index, signer status, and writability), a list of hotspot accounts, all programs involved, and any unresolved account references. Also includes the analyzed network name and evidence scope.

## 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": [
    "Relationships show supplied references, not ownership or semantic intent."
   ],
   "service_id": "solana_program_account_relationships",
   "analysis_json": "{\"edges\":[{\"account\":\"11111111111111111111111111111111\",\"account_index\":0,\"instruction_index\":1,\"is_signer\":false,\"is_writable\":false,\"program\":\"11111111111111111111111111111111\"}],\"hotspots\":[],\"programs\":[\"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_program_account_relationships",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "20000",
   "resultSha256": "7af356ba2db33624c8479351f6cf87a937292de7ce4820affc5d8dfd23066399",
   "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-program-account-relationships-analyzer-3d3521f4/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)
