Skip to main content
Every endpoint on this page takes priorityFeeLamports with a minimum of 1000 and tipLamports with a minimum of 1000000, and returns the standard governance write response.

POST /partner/v1/governance/votes

Casts a vote. The voted tokens are locked until the user withdraws them after the proposal closes.
Locked tokens cannot be traded until they are withdrawn, and users who are unaware of this tend to read it as missing funds. We recommend making the lock explicit in your UI.
A second vote on the same proposal fails with already_voted. To change a vote, cancel the existing one first.

POST /partner/v1/governance/votes/cancel

Retracts an active vote while voting is still open.

POST /partner/v1/governance/votes/withdraw

Reclaims tokens locked by a vote, once the proposal has closed.
The voter field exists so that anyone can crank a withdrawal on another wallet’s behalf. Tokens always return to the voter rather than to the caller, and for normal use the field can be left unset.

POST /partner/v1/governance/proposals/settle

Settles a proposal whose voting window has closed, computing the outcome and applying the action if it passed. The operation is permissionless, so anyone can call it, and someone must before the result takes effect. Settling before votingEndsAtUnix fails with proposal_still_open, and settling twice fails with proposal_already_settled.

Response

A status of processed is weaker than confirmed, meaning the transaction was included in a block but is not yet rooted. Confirm the signature against Solana through your own RPC before showing the user a settled result.

Errors