# Swift Bot Labs Toolbox – EVM ABI Decode

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

Decodes raw Ethereum ABI-encoded calldata or return values into typed, human-readable components given a function signature or type list.

## Facts

- Endpoint: POST https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/abi-decode?utm_source=zero.xyz
- Price: $0.003/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-toolbox-evm-abi-decode-aa9382d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IIkSWrn0YhoEkerYBF5hL

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-toolbox-evm-abi-decode-aa9382d1 -d '<json body>'
```

Example prompt: Decode this ABI-encoded calldata for me — the hex is 0xa9059cbb0000000000000000000000002481e29895b43e87e547a50fb0bb5aa1e70585eb000000000000000000000000000000000000000000000000000000000f4240 — using the function signature transfer(address,uint256).

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call way to decode EVM ABI calldata or return values without setting up a full Web3 library or node connection. Ideal for agents processing blockchain transactions on the fly, auditing contract interactions, or debugging calldata in pipelines that don't already have ethers.js or web3.py available.

## Known failure modes

- Invalid or malformed hex data returns an error response
- Mismatched signature vs. actual data encoding causes decoding failure or garbage output
- Unsupported Solidity types (e.g. complex nested tuples) may fail
- Data truncated or too short for the given types returns an error
- Exceeding the 256KB data limit returns a rejection

## 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=true and a result containing an array of decoded values (each with type and value), the matched function signature string, and a selectorMatched boolean indicating whether the 4-byte selector in the data matched the provided signature.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "maxLength": 262144
  },
  "types": {
   "type": [
    "array",
    "string"
   ],
   "items": {
    "type": "string",
    "maxLength": 200
   },
   "maxItems": 64,
   "maxLength": 2000
  },
  "signature": {
   "type": "string",
   "maxLength": 1000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "abi-decode",
  "result": {
   "values": [
    {
     "type": "address",
     "value": "0x2481E29895b43e87e547a50fB0BB5aa1E70585EB"
    },
    {
     "type": "uint256",
     "value": "1000000"
    }
   ],
   "signature": "transfer(address,uint256)",
   "selectorMatched": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-evm-abi-decode-aa9382d1/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)
