# CoinOpSelect Merkle Proof Verification API

> CoinOpSelect Merkle Proof Verification API is a paid API for AI agents from coinop.publicvm.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Verifies a Merkle proof by checking whether a given leaf and proof path are valid against a specified Merkle root

## Facts

- Endpoint: GET https://coinop.publicvm.com/api/v1/proof/merkle-verify?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinopselect-merkle-proof-verification-api-e4c85d38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_208j42eSb56ujzF0ynR74

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 coinopselect-merkle-proof-verification-api-e4c85d38
```

Example prompt: Can you verify this Merkle proof for me? The leaf preimage is '0xabc123', the Merkle root is '0xdeadbeef...', and the proof array is '["0x111...","0x222..."]' — I need to know if this inclusion proof is valid.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call cryptographic Merkle proof inclusion check without deploying your own verifier infrastructure. It is especially useful for AI agents operating on Base/blockchain workflows that need to verify whitelist membership, airdrop eligibility, or data integrity proofs before taking further on-chain actions. Prefer this over rolling your own verifier when cost-per-call economics ($0.01 USDC) are acceptable and you want a hosted, stateless verification service.

## Known failure modes

- Invalid or malformed proof JSON array causes validation failure or error
- Incorrect leaf preimage (wrong encoding or hash) results in valid=false even if proof structure is correct
- Root hex mismatch returns valid=false without further detail
- Missing required query parameters (leaf, proof, or root) may return a 4xx error
- Payment failure via x402 protocol blocks the request before verification occurs
- Non-hex or improperly formatted root returns an error response

## How this service works

Paid on-chain token, wallet, contract and research data over x402 on Base.

## Output

Returns a JSON object with a 'query' field (string, value 'merkle-verify') and a 'valid' boolean indicating whether the supplied leaf, proof path, and Merkle root form a cryptographically valid inclusion proof.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "leaf",
      "proof",
      "root"
     ],
     "properties": {
      "leaf": {
       "type": "string",
       "description": "Leaf preimage"
      },
      "root": {
       "type": "string",
       "description": "Merkle root hex"
      },
      "proof": {
       "type": "string",
       "description": "JSON proof array"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "query": {
     "type": "string"
    },
    "valid": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "merkle-verify",
  "valid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopselect-merkle-proof-verification-api-e4c85d38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinop.publicvm.com](https://www.zero.xyz/host/coinop.publicvm.com/llms.txt)
