The governance routes under / 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: "multi) 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 /:
Access and write rules
GET .../, GET .../, and GET /api/ 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/ gives.
Rule violations fail with 422 DALP-14259. Failed creates name the rule in data.reason (recordDateTooEarly, recordDateTooLate, votingPowerMissing, documentNotOwned, optionsInvalid, votingPeriodOutOfRange, executionDelayOutOfRange, quorumOutOfRange, approval, treasuryIsToken, or metadataKeyLocked). Run POST /preflights first to inspect metadataKeyLocks by actionIndex and entryIndex.
Create a vote
POST /api/ 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
422GOVERNANCE_(DALP-14259) andPROPOSAL_ PREFLIGHT_ FAILED data.reasonoptionsInvalid. - Attached documents must reference your own upload
objectKeyand exactmimeTypeandfileSize(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 approval (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_ (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/ and distribution via GET /api/. 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(quorum. Counts all cast ballots including abstentions against the token's full supply at the record date (100 bps equals 1%).Bps * total Supply At Record Date / 10000) - Approval (resolutions only):
formust strictly exceedagainst. WhenapprovalThresholdBpsis set,formust also reachceil(approval. Abstentions are excluded from both terms.Threshold Bps * (for + against) / 10000) - Multi-option votes: Succeed on quorum alone. A tie reports no winner.
Cast, queue, and execute
POST /api/ 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 .../ returns voter, weight, reason, castAt, support (for, against, abstain, or option), optionIndex (zero-based for multi-option, null for resolutions), and optionLabel. GET .../ returns the same rows as CSV with summary tally headers above the ballots.
Once a vote succeeds, POST /queue- 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/ 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_ (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/ (ordered by voting power descending) before signing to confirm eligibility.
GET /polls and GET /polls/ 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
- Governance votes in the Console for screens, statuses, and preset durations.
- Platform API error reference for refusal codes.
- Idempotency and async settlement for
Idempotency-KeyandPreferhandling.