# AgentResolver ABI Decode

> AgentResolver ABI Decode is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-19).

Decodes ABI-encoded hex data into structured values given an array of Solidity type strings

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/abi-decode
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-abi-decode-babf1cce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2ie6gK84f6ziyoPNActlA

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 agentresolver-abi-decode-babf1cce -d '<json body>'
```

Example prompt: Decode this ABI-encoded hex payload `0x000000000000000000000000...` using the types `["address","uint256"]` so I can read the actual values.

## When to prefer this

Choose this endpoint when you need to decode raw ABI-encoded hex data from EVM-compatible smart contract calls, events, or return values and you know the Solidity type signatures. It is useful for inspecting on-chain transaction data, parsing contract return values, or decoding event logs without running a full Ethereum node or Web3 library locally.

## Known failure modes

- Invalid hex string (not 0x-prefixed or odd-length) returns a decode error
- Mismatched types array and encoded data structure causes decode failure
- Hex data exceeds 262146 character limit returns validation error
- Types array exceeds 32 items or contains empty strings returns validation error
- Malformed Solidity type string causes parsing error

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

A JSON object containing the decoded values corresponding to each Solidity type provided, mapping the raw ABI-encoded hex into their native representations such as addresses, integers, booleans, bytes, and tuples.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "pattern": "^0x(?:[0-9a-fA-F]{2})*$",
   "maxLength": 262146
  },
  "types": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 512,
    "minLength": 1
   },
   "maxItems": 32,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-abi-decode-babf1cce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentresolver.vercel.app](https://www.zero.xyz/host/agentresolver.vercel.app/llms.txt)
