# Solana Legacy Transaction Decode

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

Decodes and analyzes a Solana legacy transaction from its serialized bytes, returning structured fields like account keys, instructions, blockhash, and version.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_legacy_transaction_decode/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-legacy-transaction-decode-0fe40a26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LIBLYWPfutSHDFO6J_iG_

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-legacy-transaction-decode-0fe40a26 -d '<json body>'
```

Example prompt: Can you decode this Solana legacy transaction and show me the account keys, compiled instructions, recent blockhash, and header fields? Here's the transaction JSON: {"serialized_bytes": "..."}

## When to prefer this

Use this endpoint when you need to programmatically parse and inspect the structure of a Solana legacy transaction from its serialized form — particularly for debugging, auditing, or validation workflows. Prefer this over on-chain RPC calls when you already have the raw transaction bytes and don't need to confirm finality or inclusion. It is especially useful for agent workflows that need to extract account keys, instructions, or blockhash without querying a Solana node.

## Known failure modes

- Invalid or malformed transaction JSON results in a decode error
- Truncated or corrupted serialized bytes may cause parsing failure
- Input exceeding 65536 characters will be rejected
- Providing non-legacy (versioned) transaction format may produce unexpected results or warnings
- Empty or null request_json field returns a validation error

## 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: compiled instructions, static account keys, address table lookups, recent blockhash, signature count, serialized byte size, transaction version (legacy), and header fields (numReadonlySignedAccounts, numReadonlyUnsignedAccounts, numRequiredSignatures). Also includes the analyzed network (solana), evidence scope (caller_supplied_data), and any warnings (e.g. that decoding does not prove on-chain inclusion or finality).

## 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": [
    "Decoding supplied bytes does not prove inclusion, execution, or finality."
   ],
   "service_id": "solana_legacy_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_legacy_transaction_decode",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "d00b2d88e1ec88541f155899853f0dd7b2facc0a4f5998db39d03a16dda268ac",
   "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-legacy-transaction-decode-0fe40a26/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)
