# DeFi Shield Transaction Trace

> DeFi Shield Transaction Trace is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Returns a full EVM transaction trace including token transfers, swaps, internal transactions, and gas usage for a given tx hash

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/data/tx-trace
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-4df11cd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KeIab7AE87GzHUliACo7D

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 defi-shield-hazel-vercel-app-4df11cd1 -d '<json body>'
```

Example prompt: Can you give me the full trace for transaction 0x4e3a...b7c2 on Ethereum — I want to see all the token transfers, swaps, internal calls, and how much gas was used?

## When to prefer this

Use this endpoint when you need a comprehensive, parsed view of a single EVM transaction — especially for DeFi interactions involving swaps, multi-hop routes, or complex internal call chains. Prefer this over a basic transaction receipt lookup when you need decoded token transfers, swap semantics, or the full internal call trace rather than just logs.

## Known failure modes

- Invalid or malformed transaction hash returns 400 error
- Transaction hash not found on the specified chain returns 404
- Node provider timeout for very complex transactions with deep call trees
- Unsupported chain or network returns error
- Payment not included or insufficient USDC returns 402

## Output

A structured breakdown of the transaction including: all token transfers (sender, receiver, amount, token), swap events with pool and price details, internal transaction calls (call tree), and gas usage statistics

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "tx_hash": {
       "type": "string",
       "description": "Transaction hash to trace (0x + 64 hex chars)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/defi-shield-hazel-vercel-app-4df11cd1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
