{"uid":"cap_f_eafhYkSkPwxrLTaXEQe","slug":"quadratic-funding-calculator-92572248","name":"Quadratic Funding Calculator","description":"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.","url":"https://gov.halowerk.com/v1/quadratic-funding-calc","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W7EMbfggf-aCZZfO0pT2M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Gitcoin-style grant round allocation","prompt":"We're running a community grant round with a $50,000 matching pool. Here are 200 contributions across 12 projects — can you run the quadratic funding calculation with a $500 per-contribution cap and tell me how much matching money each project should receive?"},{"title":"Simulating QF impact of a whale donor","prompt":"I want to see what happens to our quadratic funding round if one donor contributes $10,000 to Project X versus spreading $10,000 across 100 small donors. Use a $500 contribution cap and a $20,000 matching pool and show me the match difference."},{"title":"DAO treasury matching pool distribution","prompt":"Our DAO treasury has 5,000 USDC to distribute as matching funds this month. Here's the list of member contributions to 8 proposals — run the quadratic funding formula with no per-contribution cap and tell me the proportional match each proposal earns."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:44:35.284Z","isFirstParty":false}