# x402 Base Tools – Transaction Decoder

> x402 Base Tools – Transaction Decoder is a paid API for AI agents from base.kagurazaka.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns comprehensive decoded details for a Base transaction: status, timestamps, addresses, ETH value, function name, fee breakdown (L2+L1 in ETH/USD), ERC-20 and NFT transfers, and x402 USDC payment details.

## Facts

- Endpoint: GET https://base.kagurazaka.dev/v1/tx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-base-tools-transaction-decoder-dd71147f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BBPfNgXRJd9Xdp8EsDVci

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-base-tools-transaction-decoder-dd71147f
```

Example prompt: Can you decode this Base transaction for me — 0xe3ee160e... — and tell me the status, who sent and received value, how much the gas fee was in USD, and whether it included any USDC x402 payment?

## When to prefer this

Use this endpoint when you need a single comprehensive decoded view of a Base transaction — especially when you care about x402 payment context (USDC transferWithAuthorization with seller name), human-readable fee breakdown in USD, or decoded ERC-20/NFT transfers — rather than querying a raw block explorer or assembling multiple RPC calls yourself.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on Base returns 404 or empty result
- Function selector not in known list returns raw selector without decoded name
- Seller name resolution may fail if seller is not registered in Bazaar
- Network or RPC timeouts may cause slow or failed responses
- Very recent transactions may not yet be indexed

## How this service works

Everything about a Base transaction in one call: status, time, from and to, ETH value, the function called (for common selectors), the fee split into L2 execution and L1 data in ETH and USD, every ERC-20 transfer with symbol and readable amount, NFT transfers, and x402 payments (USDC transferWithAuthorization) with the seller named from Bazaar.

## Output

A JSON object containing: transaction status (success/failure), ISO timestamp, from and to addresses, ETH value transferred, decoded function name and selector (for common selectors), total fee split into L2 execution fee and L1 data fee in both ETH and USD, an array of ERC-20 transfers each with symbol and human-readable amount, NFT transfers, and an array of x402 USDC payments (transferWithAuthorization) with USD amount and seller name resolved from Bazaar.

## 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",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "transaction hash (0x...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "fee": {},
      "time": {},
      "method": {},
      "status": {},
      "x402_payments": {},
      "token_transfers": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fee": {
   "total_eth": 0.0000016,
   "total_usd": 0.004
  },
  "time": "2026-10-24T22:18:59.000Z",
  "method": {
   "name": "transferWithAuthorization(...)",
   "selector": "0xe3ee160e"
  },
  "status": "success",
  "x402_payments": [
   {
    "amount_usd": 0.01
   }
  ],
  "token_transfers": [
   {
    "amount": "0.01",
    "symbol": "USDC"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-base-tools-transaction-decoder-dd71147f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base.kagurazaka.dev](https://www.zero.xyz/host/base.kagurazaka.dev/llms.txt)
