# ChainRay Transaction Decoder

> ChainRay Transaction Decoder is a paid API for AI agents from chainray.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Decodes and parses a blockchain transaction by hash, returning structured details about the transaction's inputs, outputs, and on-chain actions

## Facts

- Endpoint: GET https://chainray.online/tx-decode/%7BtxHash%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-transaction-decoder-e97494d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fVujK_UPRrBZuXj9RAj1A

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 chainray-transaction-decoder-e97494d1
```

Example prompt: Can you decode transaction hash 0x4e3a7b2f...c91d on Ethereum and tell me what actually happened — who sent it, who received it, what contract was called, and how much gas was used?

## When to prefer this

Use this endpoint when you need to decode and understand what a specific blockchain transaction did — particularly useful for DeFi transactions, smart contract interactions, or any scenario where the raw tx hash needs to be translated into human-readable structured data across any of 46 supported chains.

## Known failure modes

- Invalid or malformed transaction hash returns a 400 or 404 error
- Transaction hash not found on the specified chain returns a not-found error
- Unsupported chain identifier results in an error response
- Network congestion or node unavailability may cause timeouts
- Missing required txHash parameter returns a validation error

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

A structured breakdown of the transaction including sender address, recipient address, value transferred, decoded contract call data, token transfers, gas used, block number, and status — all parsed from the raw on-chain transaction data.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "txHash"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "txHash": {
       "type": "string",
       "description": "Transaction hash"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-transaction-decoder-e97494d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
