# Agent Rest Stop SHA-256 Hash Comparison

> Agent Rest Stop SHA-256 Hash Comparison is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Compares two values by computing and matching their SHA-256 hashes, returning whether they match.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/HashMatch?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/agent-rest-stop-sha-256-hash-comparison-ee1d3be1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cImi_pRs-kks8m65a1Pcd

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 agent-rest-stop-sha-256-hash-comparison-ee1d3be1 -d '<json body>'
```

Example prompt: Can you check if 'hello world' and 'hello world' produce the same SHA-256 hash — I want to confirm these two values match cryptographically?

## When to prefer this

Use this endpoint when you need a lightweight, fast, pay-per-call SHA-256 hash comparison without spinning up local crypto infrastructure. Ideal for AI agents that need to verify data integrity, confirm identity of two values, or check password hashes within an agentic workflow where local code execution is not available.

## Known failure modes

- Missing 'left' or 'right' field returns an error
- Unsupported algorithm value in 'algo' field causes failure
- Empty string inputs may produce unexpected but valid hash comparisons
- Network timeout on the workers.dev endpoint
- Payment failure (x402) blocks the call if USDC balance is insufficient

## How this service works

SHA-256 compare of two values.

## Output

A boolean or pass/fail result indicating whether the SHA-256 hashes of the two provided values are equal, allowing the agent to confirm cryptographic identity between the inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "algo": {
   "type": "string"
  },
  "left": {
   "type": "string"
  },
  "right": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-sha-256-hash-comparison-ee1d3be1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
