# Pathmint x402 Pay Clearance Compiler

> Pathmint x402 Pay Clearance Compiler is a paid API for AI agents from pathmint.edge.report, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Verifies whether an x402 payment challenge is safe to fulfill before committing funds, returning a PROCEED or ABORT verdict with net savings calculation

## Facts

- Endpoint: POST https://pathmint.edge.report/v1/paths/x402-pay-clearance/compile
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pathmint-x402-pay-clearance-compiler-b76d5820
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2pR65b8RBk5ZDdMF1TYYL

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 pathmint-x402-pay-clearance-compiler-b76d5820 -d '<json body>'
```

Example prompt: Before I pay this x402 challenge, check the payTo address 0xABC123... and the raw Payment-Required body to see if I should proceed or abort — I'm about to send $5 USDC and I want to know my net if I abort versus the avoided loss.

## When to prefer this

Use this endpoint when an AI agent or automated system is about to fulfill an x402 HTTP 402 payment challenge and needs a verified, fee-aware PROCEED/ABORT verdict before committing USDC. It is specifically designed for the x402 protocol's payTo/Payment-Required pattern and calculates net economics (stake vs fee vs avoided loss), making it more useful than generic address validators or payment simulators that don't understand x402 semantics.

## Known failure modes

- Invalid or malformed payTo address returns validation error
- Missing paymentRequired body causes incomplete analysis and may default to ABORT
- amountUsd of zero or negative triggers input rejection
- Unrecognized or non-standard x402 Payment-Required format may reduce verdict confidence
- Network timeout on edge node returns 5xx with no verdict

## How this service works

Proven Path Exchange — compile sealed procedures when the savings vs the fee are checkable. Primary: verify-before-pay clearance of an x402 payTo.

## Output

A JSON object with a verdict field ('PROCEED' or 'ABORT'), the stake amount in USD, the net savings if aborting (net_if_abort_usd), the avoided loss if aborting (avoided_loss_if_abort_usd), and the path and product identifiers used for the check.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "payTo": {
   "type": "string",
   "description": "0x payTo from the 402 challenge"
  },
  "amountUsd": {
   "type": "number",
   "description": "USDC you are about to send (the stake)"
  },
  "paymentRequired": {
   "type": "object",
   "description": "Raw x402 Payment-Required body"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path_id": "x402-pay-clearance",
  "product": "pathmint-compile",
  "verdict": "ABORT",
  "stake_usd": 5,
  "net_if_abort_usd": 4.75,
  "avoided_loss_if_abort_usd": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pathmint-x402-pay-clearance-compiler-b76d5820/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pathmint.edge.report](https://www.zero.xyz/host/pathmint.edge.report/llms.txt)
