Skip to main content
Governance reads mirror public on-chain state, so any valid access token may call them.

GET /partner/v1/governance/

Returns everything needed to render a governance UI in a single call.
If the token has no governance account, the endpoint returns 404 governance_not_found.

Response

Up to 100 proposals are returned, newest first.
That 100 is a hard ceiling rather than a page. There is no cursor, offset, or limit parameter on this endpoint, so a governance with more than 100 proposals will return the newest 100 with no way to reach the rest through the Partner API. We recommend building on the assumption that older proposals may be unreachable.

The Governance Object

We recommend checking the per-field *Locked flags before offering an edit. A proposal that touches a locked field fails at build time rather than at vote time, so filtering the UI up front saves the user a wasted bond.

The Proposal Object

The baseContentRevision field is how Trench detects edit conflicts. If the token’s contentRevision advanced after a proposal was authored, that proposal is stale, and building another against the old revision fails with stale_content_revision.

viewerVotes

This array contains the connected user’s own votes, derived from the access token rather than a caller-supplied address, so you can render whether a user has voted without making a second request. Each entry has the same shape as the vote objects described below.

GET /partner/v1/governance/proposals//votes

Returns the voters on a single proposal, largest stake first.
The limit parameter fails soft. A value that is not a positive number, such as 0, abc, or an empty string, is silently treated as 50 rather than rejected, and anything above 200 is clamped down. Since you will never receive a 400 from this parameter, we recommend validating it yourself if the value comes from user input.As with proposals, there is no cursor, so a proposal with more than 200 voters cannot be fully enumerated here.
The {mint} and {proposal} path segments are not checked for Base58 validity before the lookup runs. A malformed address returns 404 governance_not_found or an empty votes array rather than 400 invalid_input, so an empty result is not evidence that the address was well-formed.

Response

A vote can have countedAsVoter: false while still carrying weight, because votes below minLockAmount contribute to the tally but not to the distinct-voter quorum. We recommend displaying participatingVoters from the proposal rather than counting this array.

Errors