# Quadratic Funding Calculator

> Quadratic Funding Calculator is a paid API for AI agents from gov.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Computes quadratic funding match amounts for projects given a list of contributions, an optional per-contribution cap, and a fixed matching pool to allocate proportionally.

## Facts

- Endpoint: POST https://gov.halowerk.com/v1/quadratic-funding-calc
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quadratic-funding-calculator-92572248
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f_eafhYkSkPwxrLTaXEQe

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 quadratic-funding-calculator-92572248 -d '<json body>'
```

Example prompt: Calculate the quadratic funding matches for our grant round: I have 3 projects and the following contributions — Project A got $100 from Alice and $25 from Bob; Project B got $50 from Alice and $50 from Carol; Project C got $200 from Dave. Cap each individual contribution at $150 and allocate a $10,000 matching pool.

## When to prefer this

Use this endpoint when you need a pure, stateless quadratic funding computation with optional contribution capping and proportional pool allocation. Ideal for grant rounds, DAO governance, and public goods funding simulations where you supply your own contribution data and matching pool. Do not use it if you need Sybil detection, fund transfers, or eligibility filtering — those must be handled separately.

## Known failure modes

- contributions array is empty or missing — validation error
- amount below minimum 0.000001 or exceeds maximum — rejected
- project_id or contributor_id exceeds 128 characters — rejected
- matching_pool set to 0 — all matches return 0
- per_contribution_cap set lower than all contributions — all contributions truncated to cap, possibly zeroing small scores
- more than 50,000 contribution records — request rejected
- payment not attached or insufficient — 402 Payment Required

## How this service works

Caps individual contributions when requested, computes each project’s raw quadratic match as (sum sqrt(contribution))² minus direct contributions, and allocates a fixed matching pool proportionally. It does not detect Sybil identities, move funds, or decide project eligibility.

## Output

Returns for each project: the capped per-contributor amounts, the raw quadratic score (sum of square roots of contributions, squared, minus direct contributions), and the final proportional match allocated from the fixed pool. Does not transfer funds, detect Sybil attacks, or enforce eligibility.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "contributions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "project_id",
     "contributor_id",
     "amount"
    ],
    "properties": {
     "amount": {
      "type": "number",
      "maximum": 1000000000000000,
      "minimum": 0.000001
     },
     "project_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
     },
     "contributor_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50000,
   "minItems": 1
  },
  "matching_pool": {
   "type": "number",
   "maximum": 1000000000000000000,
   "minimum": 0
  },
  "per_contribution_cap": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": 0.000001
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quadratic-funding-calculator-92572248/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gov.halowerk.com](https://www.zero.xyz/host/gov.halowerk.com/llms.txt)
