# x402 Bazaar — Base Transaction Decoder

> x402 Bazaar — Base Transaction Decoder is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Accepts a Base blockchain transaction hash and returns a structured summary including from/to addresses, ETH value, status, gas used, block number, method selector, and nonce — fetched directly from Base RPC.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/tx-decode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-base-transaction-decoder-4658d8af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eLkpofVgO-Kan9gzYDx6L

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 x402-bazaar-base-transaction-decoder-4658d8af -d '<json body>'
```

Example prompt: Can you decode Base transaction 0x4a3f...c9d2 for me and tell me the sender, receiver, ETH value, gas used, status, and what method was called?

## When to prefer this

Use this endpoint when you need quick, structured on-chain transaction details from the Base network without running your own RPC node. Ideal for agents that need to verify or summarize a specific Base transaction as part of a workflow, and that support the x402 micropayment protocol for per-call billing at $0.01 USDC.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on Base network returns not-found error
- Payment not provided or insufficient results in 402 Payment Required with USDC payment instructions
- Network issues with Base RPC may cause timeout or partial response
- Transaction from a different chain (e.g. Ethereum mainnet) will not resolve correctly

## How this service works

Provide a Base transaction hash and get a structured summary: from/to, ETH value, status, gas used, block, method selector, and nonce — straight from Base RPC. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A structured JSON object containing: from address, to address, ETH value transferred, transaction status (success/fail), gas used, block number, method selector (4-byte function signature), and nonce — all sourced directly from Base RPC.

## 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": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "Transaction hash"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-base-transaction-decoder-4658d8af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
