# CoinOpSelect Intent Surplus Calculator

> CoinOpSelect Intent Surplus Calculator 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).

Computes the surplus (profit or savings) for a given intent order by comparing a limit price against a fill price on-chain.

## Facts

- Endpoint: GET https://coinop.publicvm.com/api/v1/intent/surplus?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-intent-surplus-calculator-4f8010a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IRbzzJbTyM3dlgpnfRzJz

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-intent-surplus-calculator-4f8010a6
```

Example prompt: What's the surplus for my limit-order intent on Base where my limit price was 1.05 and the fill price was 1.03?

## When to prefer this

Use this endpoint when you need to calculate or verify the surplus generated by an intent-based order on the Base blockchain by comparing the user's limit price against the actual fill price. Prefer this over generic DeFi analytics tools when you specifically need per-intent surplus computation in an x402 micropayment context.

## Known failure modes

- Missing required queryParams (limitPrice or fillPrice) returns an error or empty result
- Invalid price format (non-numeric string) may cause computation failure
- Payment not received via x402 protocol results in 402 Payment Required response
- Network or on-chain data unavailability returns an empty result object
- Type or method parameters not matching supported intent types returns an error

## 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 set to 'intent-surplus' and a 'result' object containing the computed surplus data for the provided limit price and fill price parameters.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "limitPrice",
      "fillPrice"
     ],
     "properties": {
      "fillPrice": {
       "type": "string",
       "description": "Fill price"
      },
      "limitPrice": {
       "type": "string",
       "description": "Limit price"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "query": {
     "type": "string"
    },
    "result": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "intent-surplus",
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopselect-intent-surplus-calculator-4f8010a6/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)
