Skip to main content

Governance votes

Create a holder vote on a token, cast ballots, queue and execute the result, and run signed off-chain polls with the governance routes of the Platform API.

The governance routes under /api/v2/addons/governance run holder votes and off-chain polls on tokens that have the voting-power feature attached. A resolution (mode: "binary") approves or rejects a decision and can carry executable token actions, a multi-option vote (mode: "multiOption") chooses among named options, and a poll records signed ballots off chain. See Governance votes in the Console for the UI screens.

Routes

All paths below sit under /api/v2/addons/governance:

Route
Use
GET /proposals, POST /proposals
List or create a vote.
GET /governors/{governorAddress}/proposals/{proposalId}
Read one vote.
GET .../proposals/{proposalId}/ballots, .../turnout, .../export
Read ballots, turnout over time, or CSV ballot export.
POST /votes
Cast a ballot on an open vote.
POST /queue-operations, POST /executions, POST /cancellations
Queue a passed vote, execute a queued vote, or cancel a vote.
GET /instances/{assetId}, POST /preflights
Read a token's governor and timelock, or preflight a vote before creation.
POST /document-uploads, POST /document-downloads
Get presigned URLs to upload or download a vote document.
POST /polls, GET /polls, GET /polls/{pollId}, POST /polls/{pollId}/close, GET .../export
Create, list, read, close, and export a poll.
POST /polls/{pollId}/ballots, POST /polls/{pollId}/ballots/sign
Record a signed ballot, or sign and record with the caller's wallet.

Access and write rules

GET .../ballots, GET .../export, and GET /api/v2/tokens/{assetId}/voting-delegations return all records to token role holders, organisation owners, platform administrators, and Permission manager, Auditor, Compliance manager, or System manager system role holders. Other callers receive only their own wallets' rows (with total scoped accordingly), while tallies, quorum, turnout, and export summaries remain complete.

Creating, casting, queueing, executing, and cancelling a vote submit transactions under the idempotency and async settlement contract. Signed-in sessions require walletVerification, while API keys do not (see Authentication and API keys). Creating or cancelling requires the token's governance role on the wallet that signs, while queueing and executing require no role. A wallet without that role is refused with 403 GOVERNANCE_ROLE_REQUIRED (DALP-9198) before anything is submitted.

POST /preflights, POST /polls, and POST /proposals for an EVM token accept only a token your organisation issued. For any other token they return 404 TOKEN_NOT_FOUND, the same answer GET /api/v2/tokens/{assetId} gives.

Rule violations fail with 422 DALP-14259. Failed creates name the rule in data.reason (recordDateTooEarly, recordDateTooLate, votingPowerMissing, documentNotOwned, optionsInvalid, votingPeriodOutOfRange, executionDelayOutOfRange, quorumOutOfRange, approvalThresholdOutOfRange, treasuryIsToken, or metadataKeyLocked). Run POST /preflights first to inspect metadataKeyLocks by actionIndex and entryIndex.

Create a vote

POST /api/v2/addons/governance/proposals accepts tokenAddress, mode, title, descriptionRichText, recordDateAt, and quorumBps, plus optional approvalThresholdBps, votingPeriodSeconds (default 7 days), executionDelaySeconds (default 2 days), options, actions, and documents.

  • Record dates must be 1 to 90 days ahead, and voting periods and execution delays must be 1 to 30 days.
  • Multi-option labels must differ, ignoring case and surrounding spaces. Otherwise creation fails with 422 GOVERNANCE_PROPOSAL_PREFLIGHT_FAILED (DALP-14259) and data.reason optionsInvalid.
  • Attached documents must reference your own upload objectKey and exact mimeType and fileSize (mismatched files are rejected and deleted).
curl -X POST "$DALP_API_URL/api/v2/addons/governance/proposals" \
  -H "X-Api-Key: $DALP_API_KEY" \
  -H "Prefer: wait=30" \
  -H "Content-Type: application/json" \
  -d '{
    "tokenAddress": "0x8a791620dd6260079bf849dc5567adc3f2fdc318",
    "mode": "binary",
    "title": "Approve the 2027 dividend policy",
    "descriptionRichText": "Holders approve paying 40 percent of 2026 net profit as a dividend in 2027.",
    "recordDateAt": "2026-11-23T00:00:00.000Z",
    "quorumBps": 2000
  }'

A settled create returns 200 OK with governorAddress, timelockAddress, and proposalId:

{
  "data": {
    "transactionHash": "0x7d1e4b2a9c3f5e6d8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f",
    "governorAddress": "0x3Aa5ebB10DC797CAC828524e59A333d0A371443c",
    "timelockAddress": "0xc6e7DF5E7b4f2A278906862b61205850344D4e7d",
    "proposalId": "48219370651823409171526401837265940018273645501928374650192837465019283746"
  },
  "meta": {
    "txHashes": ["0x7d1e4b2a9c3f5e6d8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f"],
    "transactionId": "0198f3c2-5a1b-7c4d-8e9f-0a1b2c3d4e5f"
  },
  "links": { "self": "/api/v2/addons/governance/proposals" }
}

Without Prefer: wait, creation returns 202 Accepted with transactionId, status: "QUEUED", and statusUrl.

The first vote on a token deploys its governor and timelock contracts and accepts quorumFloorBps (default 500) and approvalThresholdFloorBps (default 0), setting permanent minimum floors for all votes on that token. Votes carrying actions require the timelock to hold the token's governance role, otherwise creation returns 409 GOVERNANCE_TIMELOCK_MISSING_ROLE (DALP-9155).

How a vote is counted

Ballot weight is the voting power a wallet holds at recordDateAt: its own balance once the wallet has delegated to itself, plus every balance other holders delegated to it. Read historical weights via GET /api/v2/tokens/{assetId}/voting-power/snapshot-weights and distribution via GET /api/v2/tokens/{assetId}/voting-power/distribution. Holder-register access applies to both, while other callers may query snapshot-weights only with filter[account] set to their own wallet (otherwise 403 DALP-9485).

  • Quorum: ceil(quorumBps * totalSupplyAtRecordDate / 10000). Counts all cast ballots including abstentions against the token's full supply at the record date (100 bps equals 1%).
  • Approval (resolutions only): for must strictly exceed against. When approvalThresholdBps is set, for must also reach ceil(approvalThresholdBps * (for + against) / 10000). Abstentions are excluded from both terms.
  • Multi-option votes: Succeed on quorum alone. A tie reports no winner.

Cast, queue, and execute

POST /api/v2/addons/governance/votes takes tokenAddress, governorAddress, proposalId, optional reason, and either support (for, against, abstain) for resolutions or optionIndex for multi-option votes (never both). Ballots are final once cast.

GET .../ballots returns voter, weight, reason, castAt, support (for, against, abstain, or option), optionIndex (zero-based for multi-option, null for resolutions), and optionLabel. GET .../export returns the same rows as CSV with summary tally headers above the ballots.

Once a vote succeeds, POST /queue-operations queues it on the timelock to start the execution delay, and POST /executions runs all actions atomically after the delay. Any holder of the token's governance role can call POST /cancellations while pending or queued. All three accept tokenAddress, governorAddress, and proposalId.

Polls

POST /api/v2/addons/governance/polls creates an off-chain poll with tokenAddress, title, optional description, unique options, and recordDateAt, opensAt, and closesAt (in strict chronological order). Duplicate options fail with 422 GOVERNANCE_PROPOSAL_PREFLIGHT_FAILED (DALP-14259). Creating, closing, and exporting polls require the token's governance role.

A poll ballot submits voter, optionIndex, definitionHash, and the voter's signature. The platform refuses mismatched hashes, wallets outside the caller's control, invalid signatures, and voters with zero voting power at the record date. Check callerWalletVotes on GET /polls/{pollId} (ordered by voting power descending) before signing to confirm eligibility.

GET /polls and GET /polls/{pollId} return the creator's user id in createdBy only when one of the caller's wallets holds the governance role on the poll's token, and return null for all other callers. Polls never use the queue or execute routes.

Next steps