# Solana Versioned Transaction Decoder

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

Decodes and analyzes a Solana versioned transaction, extracting its structure including instructions, account keys, header, blockhash, and address table lookups.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_versioned_transaction_decode/invoke
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-versioned-transaction-decoder-9db50001
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k_4GRdozuItCU_ObvPxj_

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-versioned-transaction-decoder-9db50001 -d '<json body>'
```

Example prompt: Can you decode this Solana versioned transaction for me and show me the instructions, account keys, header, and blockhash? Here's the transaction JSON: {"version":0,"message":{"header":{...},"accountKeys":[...],"recentBlockhash":"...","instructions":[...]}}

## When to prefer this

Choose this endpoint when you need to programmatically decode and inspect a Solana versioned transaction (legacy or v0) without submitting it to the network. It is ideal for auditing, debugging, or extracting structured data from raw Solana transaction payloads. Prefer this over RPC-based approaches when you want a clean JSON breakdown of transaction internals without requiring a live Solana node connection.

## Known failure modes

- Malformed or invalid transaction JSON returns an error — input must be valid JSON string
- Address table lookups may not be fully resolved if lookup table data is not supplied by the caller, generating warnings
- Unsupported transaction format or version may cause parse failure
- Input exceeding 65536 character limit will be rejected
- Network or service availability issues may cause transient failures

## 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 the decoded transaction analysis including: transaction version (legacy or v0), compiled instructions, static account keys, address table lookups, transaction header (number of required signatures, readonly signed/unsigned accounts), recent blockhash, total serialized byte count, signature count, and any warnings (e.g. about unresolved lookup table addresses). Also includes metadata such as service ID, analyzed network (solana), 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": [
    "Loaded lookup addresses require caller-supplied table data."
   ],
   "service_id": "solana_versioned_transaction_decode",
   "analysis_json": "{\"address_table_lookups\":[],\"compiled_instructions\":[],\"header\":{\"numReadonlySignedAccounts\":0,\"numReadonlyUnsignedAccounts\":0,\"numRequiredSignatures\":1},\"recent_blockhash\":\"11111111111111111111111111111111\",\"serialized_bytes\":134,\"signature_count\":1,\"static_account_keys\":[\"11111111111111111111111111111111\"],\"version\":\"legacy\"}",
   "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_versioned_transaction_decode",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "15000",
   "resultSha256": "12d966f0f5d7e73cadfc54ec122feabf1846eb64d2571dde3b1b04fd73a23444",
   "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-versioned-transaction-decoder-9db50001/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)
