# Swift Bot Labs EVM Transaction Decoder

> Swift Bot Labs EVM Transaction Decoder is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Looks up and decodes an EVM blockchain transaction by hash, returning decoded method signature, token transfers, fee, status, and parties involved.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/tx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-evm-transaction-decoder-1f25794a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6HrNSCccC4WmsVCX3C23L

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 swift-bot-labs-evm-transaction-decoder-1f25794a
```

Example prompt: Can you look up transaction 0x5e07... on Base and tell me what method was called, who sent it, who received it, and how much USDC was transferred?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of a specific EVM transaction without setting up a full blockchain node, RPC provider account, or API key. It is especially useful for decoding method signatures and token transfers in a single call across multiple popular EVM chains. Prefer it over raw RPC calls when you need human-readable decoded output rather than raw hex data.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on specified chain
- Unsupported chain name returns validation error
- Missing required hash query parameter returns 400
- Network or RPC timeout when fetching transaction data
- Transaction exists but method signature cannot be decoded (unknown ABI)

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with ok status, tool name, and a result containing: transaction hash, chain, status (success/fail/pending), from/to addresses, fee in ETH, decoded method signature, and an array of token transfers each with from, to, token contract address, amount, and symbol.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string"
      },
      "chain": {
       "type": "string",
       "description": "One of ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, base-sepolia, sepolia (or a chain id)"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "evm-tx",
  "result": {
   "to": "0x036C...",
   "fee": "0.0000012",
   "from": "0xD48e...",
   "hash": "0x5e07...",
   "chain": "base-sepolia",
   "method": {
    "signature": "transferWithAuthorization(...)"
   },
   "status": "success",
   "transfers": [
    {
     "to": "0x2481...",
     "from": "0xD48e...",
     "token": "0x036C...",
     "amount": "0.02",
     "symbol": "USDC"
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-evm-transaction-decoder-1f25794a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
