# PulseScanner DEX Swap Decoder

> PulseScanner DEX Swap Decoder is a paid API for AI agents from x402.pulsescanner.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Decodes and returns all DEX swap events extracted from a single PulseChain transaction by its hash

## Facts

- Endpoint: GET https://x402.pulsescanner.io/v2/txs/:hash/swaps?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pulsescanner-dex-swap-decoder-9d380b21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f3dVpr742cN9w43Z5Xnls

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 pulsescanner-dex-swap-decoder-9d380b21
```

Example prompt: Can you pull up all the DEX swaps that happened in PulseChain transaction 0xabc123...def? I want to know which tokens were swapped and in what amounts.

## When to prefer this

Use this endpoint when you need to specifically decode DEX swap activity from a known PulseChain transaction hash. Prefer this over the general transaction endpoint when swap token pairs, amounts, and routing are the primary concern rather than gas or status. Best suited for DeFi analytics, portfolio tracking, and trade auditing on PulseChain (chain id 369).

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash exists but contains no swap events (returns empty swaps list)
- Transaction not yet indexed returns a not-found or pending error
- Network or payment failure returns 402 or 5xx status
- Hash for a different chain (not PulseChain chain id 369) may return no results or an error

## How this service works

Dex swaps decoded from one transaction. PulseChain (chain id 369). $0.003 USDC per call.

## Output

Returns decoded DEX swap events contained within the specified PulseChain transaction, including token pairs swapped, amounts in and out, DEX protocol used, and any multi-hop routing details.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "pathParams": {
     "type": "object",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pulsescanner-dex-swap-decoder-9d380b21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.pulsescanner.io](https://www.zero.xyz/host/x402.pulsescanner.io/llms.txt)
