# CoinOpSelect Proof Commit API

> CoinOpSelect Proof Commit 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).

Generates a cryptographic commitment (hash) for a given value, optionally with a salt, for use in on-chain proof protocols on Base.

## Facts

- Endpoint: GET https://coinop.publicvm.com/api/v1/proof/commit?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-proof-commit-api-ddd02487
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6Bwh7iQmLk68uhUcfytud

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-proof-commit-api-ddd02487
```

Example prompt: Commit the value '0xdeadbeef' using CoinOpSelect's proof commit endpoint — give me back the commitment hex and the salt used, so I can use it in my on-chain reveal step.

## When to prefer this

Choose this endpoint when you need a paid, on-chain-ready cryptographic commitment for a commit-reveal scheme on Base, and you want payment handled via x402 USDC microtransactions. Prefer it over generic hashing utilities when the result must integrate with CoinOpSelect's broader on-chain proof infrastructure or when you need a salt managed server-side.

## Known failure modes

- Missing required 'value' query parameter returns an error
- Invalid hex format for the 'salt' parameter may cause a parsing error
- Payment failure via x402 (insufficient USDC balance or bad payment header) returns HTTP 402
- Network or server unavailability on publicvm.com returns HTTP 5xx
- Malformed 'type' or 'method' fields in the input object may return a 400 error

## How this service works

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

## Output

Returns a JSON object with two hex-encoded fields: 'commitment' (the cryptographic hash of the value, optionally salted) and 'salt' (the hex salt used, either provided or auto-generated). These can be submitted to a smart contract as part of a commit-reveal protocol on Base.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "salt": {
       "type": "string",
       "description": "Optional salt hex"
      },
      "value": {
       "type": "string",
       "description": "Value to commit"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "salt": {
     "type": "string"
    },
    "commitment": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "salt": "hex",
  "commitment": "hex"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopselect-proof-commit-api-ddd02487/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)
