Govwerk
governance ballot weight snapshot
Replay supplied governance-unit transfers up to a snapshot and return weighted ballot totals.
POST https://gov.halowerk.com/v1/governance-ballot-weight-snapshotInputs
| Field | Type | Required | Description |
|---|---|---|---|
| initial | object | Yes | |
| transfers | array | Yes | |
| snapshot_block | Reference | Yes | |
| ballots | array | Yes |
Show full input schema
{
"type": "object",
"properties": {
"initial": {
"type": "object",
"maxProperties": 100,
"additionalProperties": {
"$ref": "#/$defs/s0"
}
},
"transfers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"block": {
"$ref": "#/$defs/s0"
},
"from": {
"$ref": "#/$defs/s1"
},
"to": {
"$ref": "#/$defs/s1"
},
"units": {
"$ref": "#/$defs/s0"
}
},
"required": [
"block",
"from",
"to",
"units"
],
"additionalProperties": false
},
"maxItems": 200,
"minItems": 0
},
"snapshot_block": {
"$ref": "#/$defs/s0"
},
"ballots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/$defs/s1"
},
"choice": {
"$ref": "#/$defs/s1"
}
},
"required": [
"account",
"choice"
],
"additionalProperties": false
},
"maxItems": 100,
"minItems": 0
}
},
"required": [
"initial",
"transfers",
"snapshot_block",
"ballots"
],
"additionalProperties": false,
"$id": "urn:h:w3:J1:input",
"$defs": {
"s0": {
"type": "integer",
"minimum": 0,
"maximum": 1000000000000
},
"s1": {
"type": "string",
"maxLength": 64,
"minLength": 1
}
}
}Published input example
{
"initial": {
"operations": 10,
"treasury": 0
},
"transfers": [
{
"block": 5,
"from": "operations",
"to": "treasury",
"units": 3
}
],
"snapshot_block": 5,
"ballots": [
{
"account": "operations",
"choice": "approve"
},
{
"account": "treasury",
"choice": "reject"
}
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.
More endpoints in this hub
- Govwerk0.003 USDC
delegate alignment
POSThttps://gov.halowerk.com/v1/delegate-alignmentJoins 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 behav
- Govwerk0.005 USDC
governance approval coalition counts
POSThttps://gov.halowerk.com/v1/governance-approval-coalition-countsReturn weighted winning-coalition counts and normalized Banzhaf critical-vote power.
- Govwerk0.005 USDC
governance budget cap allocation
POSThttps://gov.halowerk.com/v1/governance-budget-cap-allocationReturn a declared-priority allocation of non-monetary governance units subject to request minima and a hard cap.