Coordinating Fabric chaincode approvals across organizations starts with one shared definition
A consortium that wants to deploy or change chaincode on a shared channel cannot do it alone. Under the Fabric chaincode lifecycle described in the Fabric docs, the work moves through four steps: package the chaincode, install it on peers, approve a chaincode definition for each organization, and commit the definition to the channel. Each step belongs to a different party. Packaging is done once, and the package must be a tar file with a package label before installation. Installation happens on each organization's own peers, so every member runs it for the peers it operates. Approval is recorded per organization, and commit is performed once enough approvals exist under the channel's rules. Your team owns the peer-side steps for your organization, but the definition that results is shared by everyone on the channel.
Teams need this coordination whenever the channel's shared chaincode definition changes. That covers a first deployment of new chaincode, a new version, or a changed endorsement policy. Because the definition governs how transactions are endorsed and validated, a change that one organization approves but the others have not will not take effect. Before scheduling a change, confirm with each partner who holds approval authority, which peers they will install on, and how they will exchange and verify the package identifier. Also confirm which channel policy governs the commit, since the LifecycleEndorsement policy determines how many organizations must approve. Upgrades and private data collection changes follow the same mechanics with extra steps, and the sibling pages on upgrading a chaincode definition and changing collection configuration cover those in depth.
How the four lifecycle steps split work between organizations
The Fabric chaincode lifecycle moves one agreed chaincode definition from a single package through each organization's peers and approvals to an active state on the channel. Each step passes a specific artifact forward, and each check confirms every organization is working from identical inputs before the next step begins.
Package the chaincode with a label
One organization, usually the team that builds or maintains the chaincode, packages it as a tar file with a package label. The label and the package ID that Fabric derives from the package are recorded in the change record. Confirm the packaging organization can reproduce the same file from the same source, because later steps depend on this exact artifact. The output is the tar file and its recorded label.
Distribute the identical package to each organization
The packaging organization passes the same tar file to the operator of every consortium member that will run peers for the channel. Each operator stores it as received without repackaging. Before installing, each operator compares a checksum of its copy with the checksum recorded at packaging. A matching checksum confirms every organization holds the same artifact.
Install the package on each organization's peers
Each organization's administrator installs the package on every peer that will endorse transactions for the chaincode, using that organization's own identity. Installation is per peer, so every endorsing peer needs the package. The check is a query of installed packages on each peer, confirming the expected package ID is listed. Any peer missing the package cannot endorse once the definition is committed.
Approve the definition for each organization
Each organization approves the chaincode definition on the channel with its own admin identity. The definition covers the chaincode name, version, sequence, endorsement policy, the package ID and any private data collections. Approvals are recorded on the channel, not in the tar file. Before moving on, query the approval status and confirm every organization shows the same parameters, since a single mismatch blocks commit.
Confirm the LifecycleEndorsement majority is satisfied
Before committing, check that the recorded approvals satisfy the channel's LifecycleEndorsement policy. Confirm the policy in the current channel configuration rather than assuming the default, because consortia set their own requirements. A readiness check reports which organizations have approved the exact definition. The output is a confirmed list of approving organizations that meets the policy.
Commit the definition to the channel
One organization submits the commit transaction, and the required organizations endorse it. Once committed, the definition becomes active on the channel at the new sequence number. Verify by querying the committed definition from peers of several organizations and confirming the sequence, version and policy match what was approved. Then run a test invocation on an endorsing peer before the change is considered complete.
How a chaincode definition moves from packager to channel commit
The flow starts with one organization packaging the chaincode as a tar file with a package label. Each member organization then installs that package on its own peers, which stays inside its trust boundary, and approves the chaincode definition with its own admin identity. Once the approvals meet the LifecycleEndorsement policy, which by default is a majority of channel members, a committing organization submits the commit to the channel. Check that every approval references the same definition, including sequence and endorsement policy, before anyone commits.
Packaging, per-organization install and approval, then the channel commit.
What the LifecycleEndorsement majority means for your consortium
The commit step of the chaincode lifecycle depends on the channel's LifecycleEndorsement policy, which governs whether a chaincode definition can be committed to the channel. The default for this policy is a majority of organizations on the channel, so a definition commits only after more than half of the member organizations have approved the same definition. Before you plan any round, confirm the exact policy setting and its default in the Fabric documentation for your release line, since the 3.x and 2.5 lines are maintained in parallel and you should not assume the two behave identically. Check the current channel configuration on a test channel rather than relying on memory of an earlier release.
The policy determines who can block a change. Under a majority rule, a minority of organizations can stall a commit by withholding approval, but they cannot force one through alone. If the policy requires more approvals, or a specific organization's approval is needed, each named party gains a veto over the definition. Map this against your governance agreement before the first round: list which organizations are needed for a majority, whether any single member is effectively required, and who in each organization owns the approval decision. An illustrative four-organization channel with a majority rule needs three approvals, so any two organizations acting together can hold up a change.
Round length follows from the same policy. Every approval is a separate action by an organization's administrator, carried out against the same definition and sequence number, so the commit cannot happen until enough organizations have acted. Plan for the slowest required approver, schedule approvals in a window agreed by all parties, and record who approved what and when. Ask your Fabric operator or consortium lead to confirm how the commit is triggered and what the organizations must do if a definition changes while a round is open.
Approval options and when each fits a consortium
This table compares the main ways to run chaincode approvals across a consortium: who packages the code, how the endorsement policy is set, and whether approvals happen in one batch or in rounds. Read each row for when the option fits, what coordination it costs, and where it tends to fail. The main takeaway is that the more organizations and the stricter the policy, the more the approval round becomes a scheduling problem.
| Option | When it fits | Coordination cost | Main risk |
|---|---|---|---|
| One organization packages, others install the same package | Small consortia with one technical lead who can share a single package file and label | Low: one build, one hash to verify on every peer | Package drift if a member rebuilds from different source or a different label |
| Each organization packages its own copy | Members with separate build pipelines or strict supply chain rules on who builds code | High: every package must be byte-identical in behavior and the package ID must match across peers | Different package IDs cause approvals to fail to match and endorsements to be rejected |
| Shared endorsement policy (default majority of organizations) | Consortia where any majority of approving organizations is an acceptable trust level | Low: approvals are checked against the policy without extra governance design | Weak control over high-impact changes if a majority can act without a specific member |
| Custom LifecycleEndorsement policy | Consortia where specific members or roles must approve changes to chaincode definitions | Medium to high: policy must be written, tested and agreed before the first definition | Policy that is too strict can block upgrades if a required member is unavailable |
| Single batch approval across all organizations | Small networks with a short approval window and members who respond quickly | Medium: one coordination call, one set of approvals to collect and check at once | Mismatched definitions if one organization approves different parameters than the others |
| Staggered rounds across organizations | Large consortia or members in different time zones, or where legal review precedes approval | High: several rounds to track, with a clear owner for each organization's approval status | Long gaps between approvals leave channel members on different definitions for longer |
| Approval before any peer installs the package | Teams that want every organization to confirm the exact package and sequence before work starts | Medium: requires checking installed package IDs first | Installing before agreement can leave packages on peers that no one has approved |
Where approval rounds stall or break
Most chaincode approval failures show up before anyone commits, which makes them cheap to catch. The cards below cover the mismatches that leave organizations approving different things or leave the commit short of approvals, and the checks to run on each organization's peers and approvals before the commit step.
Mismatched package IDs and labels
Each peer computes a package ID from the package label and the package contents. If one organization packaged with a different label, rebuilt the tar file with different file ordering or metadata, or used another build, its package ID differs and its approval will not match the others. Compare the package ID reported by each peer after installation, and confirm every organization approved the same ID before anyone starts the commit. Illustrative case: one peer installs a rebuilt tar with a new timestamp and reports a different ID.
Chaincode lifecycle docsApprovals against different sequence numbers
A chaincode definition carries a sequence number. An organization that approved sequence 2 while others approved sequence 3 has approved a different definition, and those approvals cannot be combined into one commit. This often happens when a change is restarted midway and an earlier proposal is still being approved by some members. Before committing, query each organization's approved definition on the channel and confirm the name, version, sequence, endorsement policy and collection configuration match exactly.
Peers that never installed the package
An organization can approve a definition without having installed the package on the peers that will endorse transactions. Approval only records the agreement, so the chaincode will not run on those peers after commit. Check the installed package list on every endorsing peer of every organization, not only the peer used to submit the approval, and confirm the package ID matches the approved one. Missing installs are often found only when endorsement fails after commit.
Endorsement policy gaps
The endorsement policy is part of the definition each organization approves, and it decides which organizations must endorse transactions. A policy written with organization names or roles that do not match the channel's MSP IDs can be valid to approve but unsatisfiable in practice. Review the policy text against the channel member list, check which organizations' peers would be needed to meet it, and simulate endorsement on a test channel where possible before the commit.
Chaincode lifecycle docsCommits before enough approvals
The commit step succeeds only when enough organizations have approved the same definition to satisfy the LifecycleEndorsement policy, which by default requires a majority of channel members. A commit submitted too early is rejected, while a commit assembled from a stale view of approvals can leave the team waiting on one organization. Query the approval status for the channel from each organization before the commit, and confirm the approval count meets the policy in the channel configuration, including any changes to that policy.
What each team owns during a chaincode approval
The consortium governance lead owns the decision to approve a chaincode definition and the policy that defines who must agree to it. Before any package is built, this role confirms the chaincode name, version, sequence number, endorsement policy, and whether private data collections are part of the definition. The lead also decides how the LifecycleEndorsement majority is reached when the channel's approval rules are set, and confirms which organizations are expected to approve.
- Inputs to supply: the approved chaincode name, version and sequence number, the endorsement policy text, the list of organizations that must approve, and any collection configuration that the definition will carry.
- Decision record: a signed approval memo stating the definition being approved, the approving organizations and the date of sign-off.
- Policy references: the channel configuration and lifecycle endorsement policy in force at the time of the approval.
- Exception log: any organization that declined, deferred or conditioned its approval, with the reason and the agreed follow-up.
- Change history: a record of prior definitions so the next sequence number can be traced to the last committed one.
Before the commit, check that the memo, policy text and organization list match exactly what each member received.
The channel administrator submits the commit once enough approvals exist. This role checks that every approval was made against the same definition, then submits the commit transaction and confirms the new definition is recorded on the channel. Because the commit is the step that changes the live network, the administrator works from a written runbook and records each command and its output.
- Inputs to supply: the approval status for each organization, the exact definition parameters that were approved, and the identity used to submit the commit.
- Pre-commit check: a query showing each organization's approval status for the intended sequence number, compared against the policy in the decision record.
- Commit output: the transaction ID, the command used and the channel query result that shows the committed definition.
- Rollback notes: the previous committed definition and the procedure the team would follow if the new version fails.
- Change ticket: the approval memo, commit output and post-commit query stored together under the change record.
Confirm the commit reached the channel and that the committed parameters match the approved parameters before closing the change.
Each member's peer operations team handles the installation and approval steps on its own organization's peers. The chaincode package must be installed on every endorsing peer that will run the code, and the organization must approve the definition using its own identity. This team owns the peer environment, the key material used for approval and the record that the package installed correctly.
- Inputs to supply: the chaincode package received from the developers, the package label, and the approval parameters the governance lead confirmed.
- Installation record: the package ID returned by each peer after installation, along with the peer names and the date.
- Approval record: the approval transaction ID and the query output showing the organization's approval for the sequence number.
- Key and identity usage: a record of which administrative identity signed the approval, held under the organization's own access controls.
- Peer health evidence: the status of each peer before and after installation, so any failure can be traced to a specific node.
Verify that the installed package ID matches the one in the package label and that the approval query reflects the exact definition that was agreed.
The chaincode developers produce the package that every organization installs. This team controls the source code, the build and the packaging metadata, and it must give members a package that is identical for everyone who installs it. Developers also document the version, the expected endorsement behavior and any collection requirements so that approvers evaluate the same thing that was built and tested.
- Inputs to supply: the source revision, build instructions and the package label, which is recorded in the tar package before installation.
- Package artifact: the tar file, its checksum and the build configuration used to create it, stored in a versioned location.
- Test evidence: results from tests run against the same revision that was packaged, including endorsement and collection behavior.
- Definition notes: a document stating the version, sequence number, endorsement policy and collection settings that the package expects.
- Release notes: a summary of code changes and any behavior change that approvers need to understand before signing.
Confirm that the package distributed to members has the same checksum as the one tested, and that the label and version match the approval memo.
How to run an approval round with checks at each step
This sequence moves a chaincode definition from agreement to a committed channel state, with a verification check after each step so that no organization discovers a mismatch only at commit time.
Agree the definition and endorsement policy in writing
Before anyone packages code, the consortium agrees in writing on the chaincode name, version, sequence number, endorsement policy, private data collection configuration (if any) and which organizations must approve. The channel administrator and each organization's lead sign or record the agreement. Done means every member can point to one document that lists these values, and the team has confirmed that the values match the chaincode source they intend to package. Ask your governance lead to confirm whether the agreement needs formal sign-off under your consortium rules.
Package the chaincode once with an agreed label
One organization builds the chaincode package as a tar file with a package label, following the Fabric lifecycle steps. The package is built once and its hash and label are recorded and distributed to every member, so all organizations install the identical artifact. The check at this step is that every organization can compare the package identifier it receives with the one recorded in the agreement. If a member rebuilds the package locally, its package ID may differ, and the approval round will stall at the install step.
Install the package on every member peer
Each organization installs the same package on its own endorsing peers using the peer lifecycle install command. Installation is local to each peer, so every organization runs this step against its own infrastructure. The verification is to query the installed chaincode on each peer and confirm that the package ID returned matches the recorded identifier. Peers that were skipped here cannot endorse transactions once the definition is committed, so record which peers are installed before moving on.
Have each organization approve the definition
Each organization approves the chaincode definition for the channel using its own admin identity, specifying the name, version, sequence, endorsement policy and collection configuration from the agreement. Approvals are recorded on the channel but do not change the committed definition. The check is that every approving organization reports a successful approval for the same parameter set. Any mismatch in sequence number or policy means that organization's approval does not count toward the same definition, so correct and re-approve before continuing.
Query approval status across organizations
Before committing, run the commit readiness query from the perspective of more than one organization, not only the one that will submit the commit. The query shows which organizations have approved an identical definition. The check is that the approvals satisfy the LifecycleEndorsement policy of the channel, which by default requires a majority of organizations. Confirm the result from each organization's own peer so that a single admin's view is not the only evidence. If the query shows a gap, the round returns to approval rather than moving forward on assumptions.
Commit the definition to the channel
One organization submits the chaincode definition commit, which requires the endorsements the channel's lifecycle policy calls for. Commit is the step that makes the definition active on the channel. The check is that the commit transaction is validated and that the committed definition returned by the query matches the agreed values exactly. Keep the transaction ID and the query output as the record of the round.
Verify the committed definition on each peer
Each organization queries its own peers for the committed chaincode definition and confirms that the name, version, sequence, endorsement policy and collections match the agreement. The verification also confirms that test invocations succeed on endorsing peers in each organization. Only after every member has confirmed the committed state should the round be closed and the agreement archived. Any peer reporting a different definition should be investigated before further transactions are accepted.
Security and operational controls for approval rounds
Each organization's approval is a signed statement that a chaincode definition is acceptable to it, so the keys, people and artifacts behind that statement need the same care as the ledger itself. The cards below cover the controls that connect identity, package integrity, audit trail and live health checks during a rollout.
Protect approval signing identities
Each approval is signed with the organization's admin identity from its MSP. Fabric supports PKCS#11 HSM protection for MSP keys on peers and orderers, but TLS keys must stay file-based, and the prebuilt Docker images are not built with PKCS#11, so custom images are needed. Confirm with your team where the admin signing key lives, who can use it, and whether it is protected by an HSM before the first approval round starts.
Fabric HSM docsRestrict install and approve rights
Installing a package on peers and approving a definition are separate actions, and each organization decides who may run them. Limit peer admin access to the people on the approval rota, and record which named identities can package, install and approve for your organization. Check that no single administrator can both approve and commit a definition on behalf of the consortium without the other organizations' approvals.
Control package artifacts and hashes
A chaincode package is a tar file with a package label, and the package identifier that peers report after installation is derived from its contents. Store each package in a versioned repository, record its hash, and confirm that every organization installs the same bytes before approving. Any change to the source requires a new package and a new hash, and that change belongs in your change record.
Chaincode lifecycle docsKeep an approval audit trail
Each organization should keep its own record of what it approved: the definition name, version, sequence, endorsement policy, collection configuration and package identifier, along with the approver and the time. Fabric records approvals on the channel, but your audit evidence should also live in your own change system. Ask your auditors which evidence they expect to see for a chaincode definition change and confirm that your records can answer that question.
Check health during rollouts
The operations service on peers and orderers exposes a /healthz endpoint, a /logspec endpoint for log level management, a /version endpoint and a Prometheus /metrics endpoint or StatsD push. These endpoints are secured with mutual TLS client certificates. Check each node's health and version before and after an approval round, and raise log levels only for the period you are troubleshooting.
Questions consortium leaders ask about chaincode approvals
Who actually does the chaincode approval work across organizations?
Each member organization approves the chaincode definition with its own identity, so every organization's administrators do their own approval step, and the coordinating party prepares the packages and drives the schedule. In practice the work splits between the lead administrator who packages, installs and tracks approvals, and each member's operators who install packages on their peers and sign their approval. A partner can carry the coordination and technical preparation, but it cannot approve on behalf of a member. Ask any quote to name which steps are performed by the partner, which by your staff, and which need a named signer at each organization.
How much effort does one chaincode approval round take?
Effort scales with the number of organizations, the number of peers each organization must update, and the number of approval rounds a change needs. Every organization in the channel must install the package on each of its endorsing peers and approve the same definition, so a consortium with many members and many peers has more checks to repeat before the commit. Each extra round for a change, such as a corrected endorsement policy that was not agreed the first time, repeats the work. Ask for the effort to be broken down by organization and by round, with the number of peers per organization stated in the scope.
How long does a chaincode approval round take to complete?
Duration depends mostly on coordination, not on the technical steps. The commands for packaging, installing and approving are short, but each organization must review the definition, agree on the endorsement policy and collection settings, and run its own approval through its governance process. If the members have a change-control board or need legal sign-off, the calendar time is set by those meetings. Plan for the slowest organization in the channel, and agree on a commit date only after every approval is confirmed. No fixed duration applies to every consortium, so ask your partner to show how it will track approvals and where delays usually occur in your governance.
What does our team need to provide before the work starts?
The work needs a clear list of channel members, the MSP identities each organization uses for administration, and the peers each organization runs on the channel. You also need the current chaincode definition, the proposed changes, and the decision owner for each organization who can approve in writing. Access to the peers and to the administrator identities must be arranged in your own infrastructure, and the team must be able to reach every organization's operators during the change window. Confirm the approval policy the channel uses and the lifecycle version your network runs before scheduling any round.
Can an internal team run chaincode approvals on its own?
Yes, an internal team can run approvals alone if it has administrators for its own organization, access to its peers, and a documented procedure for the lifecycle steps. The lifecycle is defined in the Fabric chaincode documentation, which lists the four steps of packaging, installing, approving and committing. The harder part is coordination across independent organizations and handling failed rounds, such as a package label mismatch or a definition that differs between approvals. A team that has run one successful round still needs a runbook for rollback and a test on a non-production channel before the first live change. Many teams start with an outside review of their first round and then take over the routine work.
What goes wrong most often in multi-organization approval rounds?
The most common failures come from mismatched definitions and missed steps rather than from the commit itself. Typical problems include an organization approving a definition that differs from the one others approved, a package installed on the wrong peers, an out-of-date sequence number, and an endorsement policy that no longer matches the members who are online. Each of these causes a round to be restarted. Before a live round, confirm that every organization has the same package identifier, that the definition parameters match a written change record, and that the commit will meet the LifecycleEndorsement majority of the channel. Test the same steps on a non-production channel first.
Which Fabric version and upgrade rules affect a chaincode approval round?
The lifecycle version and the release line of your network decide which approval rules apply. Fabric v3.0 removed the v1.x legacy chaincode lifecycle, so networks must move all channels to the v2.x lifecycle before upgrading to the 3.x line. The Fabric upgrade documentation also covers rolling upgrades of orderer and peer binaries and a later step that updates channel capability levels. Fabric v2.5 remains the long-term support release for production users, and the 3.x and 2.5 lines both receive patch releases. Confirm your current version, the target line and the capability settings before you schedule an approval round, because a change in the middle of an upgrade can complicate the commit.
How DeployOpen coordinates Fabric approvals with your consortium
DeployOpen starts every chaincode approval engagement with a written scope that names the channels, the chaincode packages, the organizations that must approve, and the endorsement policy each change will be checked against. Most engagements are fixed-scope, so the deliverables and the approval rounds are agreed on paper before any peer is touched. A quote follows from that written scope, which means the variables that drive effort, such as the number of channels, the number of member organizations, and whether the lifecycle commands are run by hand or scripted, are visible to your procurement team before work begins. Ask for the scope document to list each member's peer administrator and governance contact by name.
During the work, DeployOpen coordinates with each member's peer operations team and its governance or legal approver, since each organization must package or receive the same package, install it on its own peers, and record its own approval. The LifecycleEndorsement policy is the point most consortia misjudge, so DeployOpen confirms with you which organizations hold the majority needed to commit and whether that rule matches your governance charter. Each round is run against a staging channel first, and the evidence is kept per organization: package label and package ID, install output, approval transaction IDs, and the commit transaction. Confirm with your governance lead that these records are the ones your auditors will ask for.
After the commit, DeployOpen documents the final state and offers retainers for later work, such as sequence increments, new package versions and endorsement policy changes, which repeat this same round structure. Retainers are optional and are priced from the scope of the ongoing work, so ask for the recurring scope and the response expectations in writing rather than assuming them. Before signing, ask whether the consortium will want a standing approval calendar, who can call a round, and how a member that falls behind on approvals will be handled, because those answers determine whether a one-time engagement or a retainer fits your network.

