Skip to content
Fourohtwo

gov.halowerk.com/v1/delegate-alignment

Joins caller-supplied vote vectors by proposal ID, encodes against/abstain/for as -1/0/1, and computes weighted cosine similarity plus exact agreement. It describes only supplied overlapping votes and does not infer ideology or future behavior.

BaseAnswering
POSThttps://gov.halowerk.com/v1/delegate-alignment

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://gov.halowerk.com/v1/delegate-alignment", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"delegate_votes":[{"proposal_id":"p-101","vote":1,"weight":2},{"proposal_id":"p-102","vote":-1,"weight":1},{"proposal_id":"p-103","vote":0,"weight":1}],"reference_votes":[{"proposal_id":"p-101","vote":1},{"proposal_id":"p-102","vote":1},{"proposal_id":"p-103","vote":0}]}),
});
console.log(await res.json());

Example input

{
  "delegate_votes": [
    {
      "proposal_id": "p-101",
      "vote": 1,
      "weight": 2
    },
    {
      "proposal_id": "p-102",
      "vote": -1,
      "weight": 1
    },
    {
      "proposal_id": "p-103",
      "vote": 0,
      "weight": 1
    }
  ],
  "reference_votes": [
    {
      "proposal_id": "p-101",
      "vote": 1
    },
    {
      "proposal_id": "p-102",
      "vote": 1
    },
    {
      "proposal_id": "p-103",
      "vote": 0
    }
  ]
}