81trust / 100
Quadratic Funding Calc
by gov.halowerk.com in Other
x402 APIPassing, checked 2 h ago
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.
POST https://gov.halowerk.com/v1/quadratic-funding-calc
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 33 ms typical, 33 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://gov.halowerk.com/v1/quadratic-funding-calc" \
-H "content-type: application/json" \
-d '{"contributions":[{"amount":25,"contributor_id":"alice","project_id":"public-data"},{"amount":100,"contributor_id":"bob","project_id":"public-data"},{"amount":64,"contributor_id":"alice","project_id":"audit-tools"},{"amount":36,"contributor_id":"carol","project_id":"audit-tools"}],"matching_pool":1000,"per_contribution_cap":100}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgov.halowerk.com%2Fv1%2Fquadratic-funding-calc
const res = await pay("https://gov.halowerk.com/v1/quadratic-funding-calc", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"contributions":[{"amount":25,"contributor_id":"alice","project_id":"public-data"},{"amount":100,"contributor_id":"bob","project_id":"public-data"},{"amount":64,"contributor_id":"alice","project_id":"audit-tools"},{"amount":36,"contributor_id":"carol","project_id":"audit-tools"}],"matching_pool":1000,"per_contribution_cap":100}),
});
console.log(await res.json());Example input
{
"contributions": [
{
"amount": 25,
"contributor_id": "alice",
"project_id": "public-data"
},
{
"amount": 100,
"contributor_id": "bob",
"project_id": "public-data"
},
{
"amount": 64,
"contributor_id": "alice",
"project_id": "audit-tools"
},
{
"amount": 36,
"contributor_id": "carol",
"project_id": "audit-tools"
}
],
"matching_pool": 1000,
"per_contribution_cap": 100
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 104 ms | $0.004 |
| 7 h ago | Passed | 402 | 33 ms | $0.004 |