- Decentralization Manager
- Get started
- Complete your first governance action
Complete your first governance action
Overview · Create a Decentralized Party
Why start with a generic vote?
Section titled “Why start with a generic vote?”A generic vote runs the full propose, confirm, and execute flow. It pauses no service, moves no token, and changes no membership or threshold. Execution records the vote in a GovernanceExecutionResult contract. The vote has no other effect on the ledger.
Before you start
Section titled “Before you start”- A Decentralized Party exists, and the participant node of each organization hosts it.
- Each node stores party credentials for the party, and Test Auth succeeds. See Create a Decentralized Party.
- The party has an active
GovernanceRulescontract. The party page then shows a Governance section and a Gov Threshold card. To deploy the contract, see Package and contract operations. - On each node, the Authentication section shows the member party as Member.
- On each node, the operator holds the admin role when
DECPM_ADMIN_ROLEis set. Propose, confirm, execute, expire, and cancel-proposal require that role. See Authentication and operator roles. - The Action Timeout card shows enough time for every member to confirm.
Three thresholds
Section titled “Three thresholds”The party page shows three thresholds:
- Threshold is the topology threshold. It counts the namespace owners that must sign a topology change. You set it when you create the party.
- Confirmation Threshold counts the hosts that must confirm each transaction that needs the party’s approval. By default it equals Threshold.
- Gov Threshold is the governance threshold from the
GovernanceRulescontract. It counts the member confirmations that an action needs before execution.
A governance action needs Gov Threshold confirmations.
1. Define the decision
Section titled “1. Define the decision”Write a short, clear statement that the members can approve or reject as written. Include no secrets, no personal data, no contract IDs that can change, and no promises that the vote cannot keep.
Example development decision:
Approve the documentation workflow test for this development Decentralized Party.
2. Create the proposal
Section titled “2. Create the proposal”Create the first proposal from one Decentralization Manager node. On that node:
- Open Parties and click the party.
- Click New Proposal. The New Proposal dialog opens.
- In Proposal Type, select Generic Vote.
- Enter the decision in Vote Description.
- Click Submit Proposal.
Decentralization Manager creates a GenericVoteProposal contract. It then submits a confirmation for the member party of the proposer. The proposal therefore starts with one confirmation.
To use the API, send an operator access token. First, read the ID of the rules contract:
curl -sS "http://localhost:8080/governance/state?party_id=my-party::1220..." \ -H "Authorization: Bearer $TOKEN"The response holds state.contract_id, state.members, and state.threshold. Then create the proposal:
curl -sS -X POST http://localhost:8080/governance/propose \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "party_id": "my-party::1220...", "rules_contract_id": "<rules-contract-id>", "proposal": { "type": "generic_vote", "description": "Approve the documentation workflow test for this development Decentralized Party." } }'A successful call returns {"message": "Proposal created and confirmed"}.
3. Review the proposal
Section titled “3. Review the proposal”On each Decentralization Manager node:
- Open Approvals. On the other Decentralization Manager nodes, the GenericVote card is under Needs your action. On the node of the proposer, the card is under In progress and shows Awaiting others.
- Click Review ▾ on the card.
- Check the description and the proposal contract ID.
- Read the Full payload JSON. It holds the
contract_id, thetemplate_id, and every create argument of the proposal undercreate_arguments.
Match the proposal by its contract ID, label, description, and proposer. Do not confirm a proposal based on its description alone.
With the API, GET /governance/confirmations returns the open proposals under domain_actions:
curl -sS "http://localhost:8080/governance/confirmations?party_id=my-party::1220..." \ -H "Authorization: Bearer $TOKEN"Each entry holds proposal_cid, action_label, description, proposer, confirmations, confirmation_count, executable_confirmation_cids, and can_execute. The entry also holds proposal_template_id and proposal_payload under the same role rule as the Full payload JSON.
4. Confirm the proposal
Section titled “4. Confirm the proposal”On each other Decentralization Manager node, click Confirm on the card. The ring on the card shows the confirmation count against Gov Threshold. Stop when the count reaches the threshold.
With the API:
curl -sS -X POST http://localhost:8080/governance/confirm \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "party_id": "my-party::1220...", "rules_contract_id": "<rules-contract-id>", "action": { "type": "governance_set_threshold", "new_threshold": 0 }, "governance_type": "core_domain", "proposal_cid": "<proposal-cid>" }'The request schema requires action. A core_domain confirmation does not use it. The proposal_cid identifies the proposal.
5. Execute the approved action
Section titled “5. Execute the approved action”When the count reaches Gov Threshold, the card shows Execute on each Decentralization Manager node. One member clicks Execute.
With the API:
curl -sS -X POST http://localhost:8080/governance/execute \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "party_id": "my-party::1220...", "rules_contract_id": "<rules-contract-id>", "action": { "type": "governance_set_threshold", "new_threshold": 0 }, "confirmation_cids": ["<confirmation-cid-1>", "<confirmation-cid-2>"], "disclosed_contracts": [], "governance_type": "core_domain", "proposal_cid": "<proposal-cid>" }'Take the confirmation_cids from executable_confirmation_cids in the confirmations response. Execution archives the proposal and consumes the confirmations.
6. Verify the result
Section titled “6. Verify the result”Confirm that:
- The proposal no longer appears under Needs your action or In progress, or in
domain_actions. - A
GovernanceExecutionResultcontract exists. It recordsactionLabel(GenericVote),description,executor,confirmers, andexecutedAt. - The Audit Trail section of the party page lists the proposal, the confirmations, and the execution in the Governance view. The API call is
GET /governance/chain-audit?party_id=<party-id>. - No membership, threshold, or application contract changed.
- Every Decentralization Manager node can see the result.
Under Approvals, the Completed section of the node that executed the proposal shows Executed. The other nodes show You proposed or You confirmed, because each node records only its own actions.
Cancel or expire
Section titled “Cancel or expire”Before execution, three separate actions remove governance state:
| Action | Who | UI | API |
|---|---|---|---|
| Revoke a confirmation | The member that confirmed | Revoke on the card | POST /governance/cancel with party_id, confirmation_cid, and governance_type |
| Cancel the proposal | The proposer only | Cancel proposal on the card | POST /governance/cancel-proposal with party_id, proposal_cid, and confirmation_cid |
| Expire a confirmation | Any member, after the confirmation expires | Dismiss on an orphaned card | POST /governance/expire with party_id, rules_contract_id, confirmation_cid, and governance_type |
Cancel proposal archives the proposal and the confirmation of the proposer in one transaction. The confirmations of the other members stay on the ledger. Their card then shows Orphaned. Each member revokes its own confirmation, or any member expires it after its expiry time.
If governance changes during the vote
Section titled “If governance changes during the vote”Membership, the governance threshold, or the rights of the proposer can change while a proposal is open. The rules contract that is active at execution decides whether the confirmations are enough.
When the rules no longer list the proposer as a member or an additional proposer, the card shows Proposer not authorized. The ledger then rejects every new confirmation. The UI therefore hides Confirm. Only the proposer can cancel that proposal.
Keep the first test short. Do not run other governance changes at the same time.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Check | Next action |
|---|---|---|
| New Proposal opens the Deploy Contracts dialog | Whether the party has a GovernanceRules contract | Deploy the governance rules first. See Package and contract operations. |
| Propose fails with “No credentials configured for party” | The party credentials on this node | Store the party credentials, then propose again. |
| Propose reports that the proposal exists but the confirmation failed | The member party of this node and its user rights | Fix the cause, then click Confirm on the card. |
| The proposal does not appear on a node | Party credentials, Test Auth, and the target network | Find the proposal contract ID before you create a new proposal. |
| Confirm does not appear | Your own confirmation on the card, or the Proposer not authorized pill | Wait for the other members, or ask the proposer to cancel. |
| Execute does not appear | The confirmation count against Gov Threshold | Collect more confirmations from current members. |
| Confirmations expire | Action Timeout and the ledger time | Expire the old confirmations, then propose again if necessary. |
| The result does not appear | Party visibility and the Audit Trail view | Refresh the audit trail. Record the sanitized contract and update IDs. |
Technical sources
Section titled “Technical sources”- Generic-vote walkthrough
- Custom action lifecycle
- Governance architecture
- Governance API handlers
- Governance response types
- Approvals view
- Execution result template
Related pages
Section titled “Related pages”Next step
Section titled “Next step”Understand the control flow: Governance lifecycle.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: