Zum Inhalt
HALOWERK

Govwerk

quadratic funding calc

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

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
contributionsarrayJa
matching_poolnumberJa
per_contribution_capnumberNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "contributions",
    "matching_pool"
  ],
  "additionalProperties": false,
  "properties": {
    "contributions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50000,
      "items": {
        "type": "object",
        "required": [
          "project_id",
          "contributor_id",
          "amount"
        ],
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "contributor_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "amount": {
            "type": "number",
            "minimum": 1e-06,
            "maximum": 1000000000000000
          }
        }
      }
    },
    "matching_pool": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000000000000
    },
    "per_contribution_cap": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000000000000
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "contributions": [
    {
      "project_id": "public-data",
      "contributor_id": "alice",
      "amount": 25
    },
    {
      "project_id": "public-data",
      "contributor_id": "bob",
      "amount": 100
    },
    {
      "project_id": "audit-tools",
      "contributor_id": "alice",
      "amount": 64
    },
    {
      "project_id": "audit-tools",
      "contributor_id": "carol",
      "amount": 36
    }
  ],
  "matching_pool": 1000,
  "per_contribution_cap": 100
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://gov.halowerk.com/v1/quadratic-funding-calc/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →