# AgentResolver Hash & Encode

> AgentResolver Hash & Encode is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Performs cryptographic hashing and encoding operations (SHA-256, SHA-512, HMAC-SHA256, Base64 encode/decode, JWT decode) on a given string input.

## Facts

- Endpoint: GET https://agentresolver.vercel.app/api/hash-encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-hash-encode-ee001f68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8-ct2s9L7SHzZ4wQV2nJQ

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-hash-encode-ee001f68
```

Example prompt: Can you compute the SHA-256 hash of the string 'hello world' for me?

## When to prefer this

Choose this endpoint when an agent needs quick, serverless cryptographic hashing or encoding without standing up its own compute — especially for SHA-256/SHA-512 fingerprinting, HMAC signing for webhook payloads, base64 encode/decode, or inspecting JWT payloads. Ideal for lightweight, single-call cryptographic operations within an agent workflow where local code execution is not available.

## Known failure modes

- Missing required 'operation' field returns a validation error
- Unsupported operation value (outside the allowed enum) returns an error
- HMAC-SHA256 operation without a 'secret' field may return an error or empty result
- Invalid base64 input for base64-decode returns a decoding error
- Malformed JWT for jwt-decode returns a parse error
- Payment of 0.001 USDC required per call; missing or failed payment returns HTTP 402

## 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

Returns the result of the requested cryptographic or encoding operation as a string — for example, a hex-encoded hash digest, a base64 string, a decoded plaintext, or a decoded JWT payload object.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "operation",
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "maxLength": 4096,
       "description": "Bounded query input for the selected deterministic transform."
      },
      "operation": {
       "enum": [
        "sha256",
        "sha512",
        "base64-encode",
        "base64-decode",
        "jwt-decode"
       ],
       "type": "string",
       "description": "GET-safe operation. hmac-sha256 stays POST-only so secrets never appear in URLs."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentresolver-hash-encode-ee001f68/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)
