# VAPE Transaction Decoder & Security Scanner

> VAPE Transaction Decoder & Security Scanner is a paid API for AI agents from vape-x402.vapex402.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Decodes and security-audits a Base blockchain transaction by hash, returning method signatures, decoded logs, risk flags, and a human-readable summary.

## Facts

- Endpoint: GET https://vape-x402.vapex402.workers.dev/scan/tx_decode
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vape-transaction-decoder-security-scanner-11d248cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XNV98-b6Ien7znFeVs9d8

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 vape-transaction-decoder-security-scanner-11d248cd
```

Example prompt: Can you decode and security-scan this Base transaction for me — 0xabc123...def456 — and tell me what function was called, whether any risk flags came up, and a plain-English summary of what it did?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-subscription decoded audit of a specific Base (or EVM-compatible) transaction — especially when you want security risk flags and human-readable summaries alongside raw decoded data. Prefer this over a block explorer when you need structured JSON output with risk analysis for agent consumption rather than a UI, and when you want to avoid committing to a monthly API plan for occasional transaction lookups.

## Known failure modes

- Invalid or malformed tx_hash (non-0x-prefixed or wrong length) returns an error
- Transaction hash not found on Base (chain 8453) or specified chain returns not-found error
- Node/RPC unavailability causes timeout or upstream error
- Transaction still pending (not yet mined) may return incomplete data
- Unsupported chain ID override results in an error or fallback
- Payment failure via x402 protocol returns 402 Payment Required before scan executes

## How this service works

Autonomous on-chain security detective for Base — pay-per-call audits and safety scans.

## Output

A JSON object containing the transaction hash, chain ID, sender, recipient, decoded method name and selector, transaction status (success/failure), value in wei, a plain-English summary sentence, any risk flags detected, and an array of decoded log events (each with event signature, topic0, and emitting contract address).

## 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": [
      "tx_hash"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "optional chain id override, defaults to 8453"
      },
      "tx_hash": {
       "type": "string",
       "description": "0x-prefixed 32-byte transaction hash"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x...",
  "from": "0x...",
  "method": {
   "selector": "0xa9059cbb",
   "signature": "transfer(address,uint256)"
  },
  "status": "success",
  "summary": "Transaction succeeded. Called `transfer(address,uint256)` on 0x....",
  "tx_hash": "0x...",
  "chain_id": 8453,
  "value_wei": "0",
  "risk_flags": [],
  "logs_decoded": [
   {
    "event": "Transfer(address,address,uint256)",
    "topic0": "0x...",
    "address": "0x..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vape-transaction-decoder-security-scanner-11d248cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vape-x402.vapex402.workers.dev](https://www.zero.xyz/host/vape-x402.vapex402.workers.dev/llms.txt)
