# Solana Transaction Parser

> Solana Transaction Parser is a paid API for AI agents from api.solenrich.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a Solana transaction by signature to detect its type, protocol, transfer breakdown, and account roles.

## Facts

- Endpoint: POST https://api.solenrich.com/entrypoints/parse-transaction/invoke
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-transaction-parser-5717e16e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_09qkYb5rhzjpS2shC6BaY

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-parser-5717e16e -d '<json body>'
```

Example prompt: Can you parse this Solana transaction and tell me what type it is, which protocol it used, and the full transfer breakdown — signature is 5j7s8K9mNpQrTuVwXyZ2AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdefgh — give me the result as JSON.

## When to prefer this

Use this endpoint when you need to decode a specific Solana transaction by its signature and need structured metadata — type, protocol, transfers, and account roles — rather than raw RPC data. Ideal for DeFi analytics, portfolio trackers, or agents that need to interpret on-chain activity in human-readable or LLM-consumable format.

## Known failure modes

- Invalid or malformed base58 signature returns a validation error
- Transaction not found on-chain returns a not-found error
- Signature outside the 86-90 character length range is rejected
- Unrecognized or novel protocol may return partial results with low-confidence classification
- Network timeout or RPC unavailability may cause a 5xx error

## How this service works

Type detection, protocol identification, transfer breakdown, account roles.

## Output

Returns a structured breakdown of the Solana transaction including its detected type (e.g. swap, transfer, NFT), the protocol or program involved, a breakdown of token/SOL transfers, and the roles of each account (sender, receiver, fee payer, etc.). Output format can be JSON, LLM-friendly text, or both.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "json",
    "llm",
    "both"
   ],
   "type": "string",
   "default": "json"
  },
  "signature": {
   "type": "string",
   "maxLength": 90,
   "minLength": 86,
   "description": "Solana transaction signature (base58)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": {
   "briefing": "string (llm format) or object (json format)"
  },
  "run_id": "uuid",
  "status": "succeeded"
 }
}
```

## More

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