# ABI Decode Hex Data

> ABI Decode Hex Data is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Decodes EVM ABI-encoded hex data into typed Solidity values given an ordered list of Solidity types

## Facts

- Endpoint: POST https://api.x402node.dev/crypto/abi-decode
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/abi-decode-hex-data-c735ab54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1sK19aYdslAXtE3ojHqS-

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 abi-decode-hex-data-c735ab54 -d '<json body>'
```

Example prompt: Decode this ABI-encoded hex blob for me — the types are (address, uint256, bool) in that order: 0x000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9b0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001

## When to prefer this

Use this endpoint when you need to programmatically decode ABI-encoded hex blobs from EVM chains — such as transaction calldata, smart contract return values, or event log data — and you need typed output back. Prefer this over manual decoding libraries when running in an agent context without a local Ethereum toolchain.

## Known failure modes

- Invalid or malformed hex input — returns error indicating unparseable data
- Type list length does not match encoded data structure — decoding fails or produces incorrect values
- Unsupported Solidity type supplied — returns error for unrecognized type keyword
- Missing required fields (hex data or type list) — returns 400 bad request
- Payment not included or insufficient — returns 402 Payment Required

## How this service works

ABI-decode hex data given an ordered list of solidity types. Returns the decoded values. For agents parsing calldata, return values and event payloads. abi decode, decode calldata, parse return data, solidity types, evm

## Output

Returns the decoded values as typed primitives (e.g. address strings, uint256 integers, booleans, bytes arrays) corresponding to each Solidity type provided, making raw hex calldata, return data, or event payloads human- and agent-readable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "0x-prefixed hex data to decode (required)"
  },
  "types": {
   "type": "string",
   "description": "JSON array of solidity types (required)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/abi-decode-hex-data-c735ab54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
