# paypi Solana Transaction Decoder

> paypi Solana Transaction Decoder is a paid API for AI agents from pay.ansht.tech, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Decodes a Solana transaction by signature or raw base64, returning a human-readable summary of its instructions and programs involved

## Facts

- Endpoint: GET https://pay.ansht.tech/v1/decode
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paypi-solana-transaction-decoder-657c15fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w0mczZZy8MExUo5w-FBsL

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 paypi-solana-transaction-decoder-657c15fe
```

Example prompt: Can you decode this Solana transaction and tell me what instructions it ran? The signature is 5v3G...XkPq on mainnet.

## When to prefer this

Choose this endpoint when you need a quick, paid-per-use decode of a Solana transaction by signature or raw bytes without setting up your own RPC infrastructure. It's ideal for AI agents that need on-demand, human-readable summaries of Solana instructions without managing Solana node connections or parsing binary transaction formats manually.

## Known failure modes

- Invalid or malformed transaction signature returns an error in the 'err' field
- Unknown or unrecognized program IDs may result in incomplete instruction labeling
- Specifying the wrong cluster (mainnet vs devnet) for a given signature will cause lookup failure
- Malformed base64 body will result in a parse error
- Network or RPC node unavailability may cause timeout or upstream errors

## How this service works

Decode a Solana transaction into structured instructions, program ids (named), accounts and a human summary. Accepts a base64 serialized transaction (offline) or a landed signature (RPC jsonParsed). Use before signing/sending, or to understand a landed tx.

## Output

Returns a JSON object with an error field (null if successful), the source type (signature or raw), and a human-readable summary listing the number of instructions and the programs invoked (e.g. System Program, SPL Token). Additional decoded instruction details may be included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "anyOf": [
      {
       "required": [
        "tx"
       ]
      },
      {
       "required": [
        "signature"
       ]
      }
     ],
     "properties": {
      "tx": {
       "type": "string"
      },
      "cluster": {
       "type": "string"
      },
      "signature": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "err": null,
  "source": "signature",
  "summary": "2 instruction(s): System Program, SPL Token"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paypi-solana-transaction-decoder-657c15fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pay.ansht.tech](https://www.zero.xyz/host/pay.ansht.tech/llms.txt)
