> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Governance Locks

> How Super Validators and Featured Apps create and manage governance locks of Canton Coin using any token standard wallet

A governance lock is a Canton Coin (CC) holding that is locked to fulfill the locking requirements for Super Validators (SVs) and Featured Apps (FAs). This page explains why governance locks exist, and how lock owners create and manage them with any wallet that supports [CIP-0056](https://docs.canton.network/overview/reference/cip-0056.md) two-step transfers. The screenshots on this page show [Splice Portfolio](https://docs.canton.network/global-synchronizer/deployment/validator-docker-compose.md#wallet-gateway-and-splice-portfolio), but the same steps work in any token standard compliant wallet.

> [!NOTE]
>
> The screenshots below were taken of an earlier version of Splice Portfolio that had a character limit on descriptions. Later versions remove this limit.

Governance locks are available from Splice 0.10.0 onwards. The first two increments described in the [incremental delivery plan](https://github.com/canton-foundation/cips/blob/main/cip-0127/cip-0127.md#incremental-delivery-plan), compatibility mode for SV and FA locks, and support for provisional FA locks, are included in 0.10.0. Future releases will build on this to implement additional increments.

## Why Governance Locks Exist

Two CIPs define locking requirements, and a third specifies how they are enforced on-chain:

* [CIP-0105](https://github.com/canton-foundation/cips/blob/main/cip-0105/cip-0105.md) (SV Locking) requires SVs to lock a percentage of their aggregate lifetime SV rewards to keep their SV weight.
* [CIP-0116](https://github.com/canton-foundation/cips/blob/main/cip-0116/cip-0116.md) (FA Locking) requires each featured app provider party to lock a minimum amount of CC to get and keep its featured app status.
* [CIP-0127](https://github.com/canton-foundation/cips/blob/main/cip-0127/cip-0127.md) (On-Chain Enforcement of FA and SV Locking) is the functional specification of governance locks. It defines the lock lifecycle and the wallet workflows described on this page.

## Concepts

* **Lock owner:** the party that owns the CC in a lock. The lock owner is the party that sends the lock requests described below.
* **Lock subject:** the SV or FA whose locking requirement the lock contributes to. See [Choose the Lock Subject](#choose-the-lock-subject).
* **Lock kind:** the purpose of the lock: `sv-lock`, `fa-lock`, or `provisional-fa-lock`. See [Lock Kinds and Vesting Periods](#lock-kinds-and-vesting-periods).
* **Locked and vesting:** a lock is either locked, or vesting after an unlock. Only locked CC counts toward locking requirements. Vested CC is returned to the lock owner when the owner withdraws it. See [Withdraw Vested Funds](#withdraw-vested-funds).
* **Minimum lock amount:** every lock must hold at least 10,000 CC. The minimum applies to every action that produces an additional lock, such as a new lock, a partial unlock, or a partial substitution: each resulting lock must hold at least the minimum. An action on the full amount of a lock is always allowed. Lock amounts that are multiples of the minimum make partial unlocks and substitutions easier.
* **Automatic merging:** a new lock with the same owner, kind, subject, and vesting state as an existing lock merges into the existing lock. Use this to top up a lock.

### Lock Kinds and Vesting Periods

| Lock kind | Purpose | Vesting period after an unlock |
| - | - | - |
| `sv-lock` | Counts toward the SV locking requirement of its subject ([CIP-0105](https://github.com/canton-foundation/cips/blob/main/cip-0105/cip-0105.md)). | 365.25 days: 1/365.25 of the unlocked amount becomes liquid each day. |
| `fa-lock` | Counts toward the FA locking requirement of its subject ([CIP-0116](https://github.com/canton-foundation/cips/blob/main/cip-0116/cip-0116.md)). | 60 days: 1/60 of the unlocked amount becomes liquid each day. |
| `provisional-fa-lock` | Proves that an applicant has sufficient funds before it applies for featured app status. | None: an unlock returns the CC to the lock owner immediately. |

> [!NOTE]
>
> The vesting periods and the minimum lock amount are network configuration parameters. SVs can change them by vote. The values on this page are the defaults.

### How Locked Funds Are Aggregated

The amount that counts toward a locking requirement is the sum of all locks with the same `lock-subject` and `lock-kind`, and with `lock-status=locked`. The sum includes the locks of all lock owners, so several parties, wallets, or custodians can contribute to the same SV or featured app. Vesting locks do not count. Provisional FA locks are summed separately from FA locks, so they do not count toward the requirement of an existing featured app.

## How Wallets Process and Display Governance Locks

The initial phases of SV and FA locking rely on Token Standard V1 two-step transfers. Later stages will allow automated locking, substitution and other advanced actions via third-party lock providers, using custom controllers.

Until those custom controls are available, all Featured Application providers and Super Validator rights owners must use the ***compatibility mode*** defined in CIP-0127. In compatibility mode:

* Each lock request is a two-step transfer to a master onchain lock manager address:

  ```
  cip-127_lock-manager::1220000000000000000000000000000000000000000000000000000000000000abcd
  ```

  This address is a fixed party ID whose fingerprint does not correspond to any private key, and which cannot perform or accept any transfers. Transfer offers sent to this address remain locked until they are either converted to a vesting lock, or are released via an allowed action. The Splice Daml code recognizes transfers to this address and interprets the memo (Description) on each such transfer as a lock request for governance purposes.
* The transfer memo (the **Description** field in Splice Portfolio) says what to do. The section below titled [Build the Memo](#build-the-memo) explains the format.
* Each lock shows in the wallet as a pending transfer offer from the lock owner to the lock manager address. In Splice Portfolio, locks are on the **Offers** page, under **Transfers**:
  * A **locked** lock has the expiration `9999-12-31 23:59`.
  * A **vesting** lock has the end of its vesting period as its expiration.
* To see the details of a lock in the Splice Portfolio app, click its row on the **Offers** page. The **Description** of a lock lists its parameters, for example `cip-127/memo:lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=locked`. A vesting lock also lists `lock-vesting-duration-micros`, `lock-vesting-end-time-micros`, and a human-readable `lock-vesting-info`.

Compatibility mode has these limitations:

* It manages only owner-controlled locks. CIP-0127 also specifies locks with custom controllers for unlock, substitution, and withdrawal, for example for staking apps. These need a wallet or app with a full-feature integration.
* It does not support minting SV rewards directly into a lock.
* Locks are recorded as long-lived transfer offers, so they should appear as **in-flight** or **pending** in wallet UIs.

## Send a Lock Request

All lock actions on this page use the same transfer form. Only the **Amount** and the **Description** change from one action to the next.

In the Splice Portfolio app:

1. On the **Dashboard**, click **Transfer** to open the **Make a transfer** dialog.
2. Fill in the form:
   * **Recipient Address:** the lock manager address.
     ```
     cip-127_lock-manager::1220000000000000000000000000000000000000000000000000000000000000abcd
     ```
   * **Select Asset:** Canton Coin. *The screenshots on this page come from a local test network, where the asset shows as `Amulet` (`AMT`).*
   * **Amount:** the value in the **Amount** column of the table below.
   * **Expiration Date:** leave the default. This date applies to the transfer request only. It is not the duration or the expiration of the lock.
   * **Description:** the memo for your action. Find your action in the table below, go to its section, and build the memo from the template there. Each section has a table that explains every key in the memo, and a complete example for an SV lock and an FA lock.
3. Click **Make Transfer**.
4. Approve the transaction in your wallet provider UI. If you are using the Wallet Gateway, click **Approve** in the **Activity Details** popup.
5. Close the **Transfer Summary** dialog.
6. Click **Offers** in the left navigation to see the result.

| Action | Who sends it | Amount | Memo template |
| - | - | - | - |
| Create a lock | Lock owner | The amount to lock | [Create a Lock](#create-a-lock) |
| Top up a lock | Lock owner | The amount to add | [Top Up a Lock](#top-up-a-lock) |
| Unlock a lock | Lock owner | `0` | [Unlock a Lock](#unlock-a-lock) |
| Withdraw vested funds | Lock owner | `0` | [Withdraw Vested Funds](#withdraw-vested-funds) |
| Propose a substitution | The party that offers its own CC | The amount to substitute | [Propose a Substitution](#propose-a-substitution) |
| Propose a lock transfer | Lock owner | `0` | [Propose a Lock Transfer](#propose-a-lock-transfer) |
| Unlock a provisional FA lock | Lock owner | `0` | [FA Locks and Provisional FA Locks](#fa-locks-and-provisional-fa-locks) |

Accepting, rejecting, or withdrawing a substitution or lock transfer proposal does not use the Transfer form. Click the proposal on the **Offers** page instead.

## Build the Memo

Every memo follows the same rules:

1. Start with the prefix `cip-127/memo:`.
2. Add `key=value` pairs, joined by `&`. Do not put `&` directly after the prefix.
3. Include the keys in the order the template for your action lists them.
4. Use no spaces, quotes, or line breaks anywhere in the memo.

Values use these formats:

| Value | Format | Example |
| - | - | - |
| Lock kind | One of `sv-lock`, `fa-lock`, `provisional-fa-lock` | `sv-lock` |
| Lock subject | An SV Rights Owner name (`svRightsOwnerName`) or, for Featured Apps, a full party ID. See [Choose the Lock Subject](#choose-the-lock-subject). | `Example-SV-1` `example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1` |
| Party ID | The full party ID: the party hint, `::`, and the fingerprint | `example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346` |
| Amount in a memo key | A plain number of CC, without commas, spaces, or units | `10000` |
| Time | ISO 8601 in UTC, ending in `Z` | `2026-10-24T00:00:00Z` |
| Vesting duration and end time | An integer number of microseconds, copied from the lock's **Description** | `31557600000000` |

Some actions act on an existing lock, and their memo identifies that lock by its kind, subject, and status. For these actions, open the lock's row on the **Offers** page and copy the values from its **Description**.

To build the memo for an action:

1. Copy the template from the section for the action.
2. Replace each `<placeholder>` with a value, using the key table in that section.
3. Check the result against the rules above, and against the example in that section.
4. Paste the result into the **Description** field.

## Choose the Lock Subject

The `lock-subject` in every memo says whose locking requirement the lock counts toward. Its format depends on the lock kind.

> [!WARNING]
>
> Check the lock subject before you send a lock request. The Splice Daml code checks only that an SV name consists of letters, digits, and hyphens, and that an FA party is a party registered on the Global Synchronizer. A lock with a wrong subject is created and does not count toward your locking requirement. To recover the CC, you must unlock the lock and wait for the full vesting period.

### SV Locks

The subject of an `sv-lock` is the SV Rights Owner name: the value of the `svRightsOwnerName` field in [`approved-sv-id-values.yaml`](https://github.com/canton-foundation/configs/blob/main/configs/MainNet/approved-sv-id-values.yaml). This name identifies the entity that owns the SV rewards right.

The SV Rights Owner name is a different field from `name`. Today, `name` exists only on the top-level entries for SV nodes, for example `Global-Synchronizer-Foundation`, and every other SV Rights Owner is listed only by a beneficiary party ID under `extraBeneficiaries`. As part of the move to on-chain locks, `svRightsOwnerName` is added to every SV entry in the file: each node entry with a `name`, and each beneficiary party ID.

An entity with more than one entry uses the same SV Rights Owner name on each of them. For example, Digital Asset uses one SV Rights Owner name for both `Digital-Asset-1` and `Digital-Asset-2`, and Cumberland uses one SV Rights Owner name for both `Cumberland-1` and `Cumberland-2`. Because locked funds are summed by subject, all locks with the same `svRightsOwnerName` count toward the one entity's requirement.

#### If Your Super Validator Already Has an SV Rights Owner Name

1. Open [`approved-sv-id-values.yaml`](https://github.com/canton-foundation/configs/blob/main/configs/MainNet/approved-sv-id-values.yaml).
2. Find the entry for your SV node or beneficiary party ID.
3. Copy the value of its `svRightsOwnerName` field exactly, with the same capitalization and hyphens. Do not use the `name` field or the party ID.

#### If Your SV Does Not Have an SV Name Yet

If your entry in the file has no `svRightsOwnerName`, create an SV Rights Owner name and add it to the file before you create a lock.

1. **Start from the business name.** Use the plain business name of the entity that owns the SV rewards right, written as it appears in that entity's business contracts.
2. **Decide whether to use a legal suffix.** Suffixes such as `LLC`, `Inc`, and `LP` are optional. Include one only if you want it to be part of the SV name.
3. **Replace spaces with hyphens.** Separate the words of the name with `-`, never with spaces.
4. **Remove other characters.** An SV Rights Owner name may contain only letters, digits, and hyphens, so drop commas, periods, ampersands, and other punctuation.
5. **Add the name to the file.** Submit a pull request to [`canton-foundation/configs`](https://github.com/canton-foundation/configs) that adds `svRightsOwnerName` to every entry of your entity in `approved-sv-id-values.yaml`.
6. **Wait for the merge.** Use the SV Rights Owner name in a lock request only after the pull request is merged. Until then, a lock with that subject might not be recorded correctly toward your locking requirement.

For example:

| Name in business contracts | SV name | Memo key |
| - | - | - |
| Example Holdings, Inc. | `Example-Holdings` or `Example-Holdings-Inc` | `lock-subject=Example-Holdings` |
| Northwind Digital Assets LLC | `Northwind-Digital-Assets` or `Northwind-Digital-Assets-LLC` | `lock-subject=Northwind-Digital-Assets` |

Once you have chosen a format for your `svRightsOwnerName`, such as with or without the suffix, use exactly that form in the file and in every lock request.

In the file, the field sits on a node entry next to `name`, and on a beneficiary entry next to `beneficiary`. For example, for a fictional entity with two nodes and another with a beneficiary party ID:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
approvedSvIdentities:
  - name: Example-Holdings-1
    svRightsOwnerName: Example-Holdings
    publicKey: ...
    rewardWeightBps: ...
  - name: Example-Holdings-2
    svRightsOwnerName: Example-Holdings
    publicKey: ...
    rewardWeightBps: ...
    extraBeneficiaries:
      - beneficiary: "northwind-validator-1::1220..."
        svRightsOwnerName: Northwind-Digital-Assets
        weight: ...
```

The other examples on this page use the fictional SV name `Example-SV-1`. Replace it with your SV name.

### FA Locks and Provisional FA Lock Subjects

The subject of an `fa-lock` or a `provisional-fa-lock` is the full party ID of the featured app provider party. This is the party that holds, or will apply for, the featured app right. The lock owner is often a different party.

Use the whole party ID, including the party hint, `::`, and the full fingerprint. For example:

```
lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1
```

The examples on this page use this fictional party ID. Replace it with the party ID of your featured app provider party.

## Create a Lock

Send a lock request with:

**Amount:** the amount of CC to lock, at least the minimum lock amount.

**Memo template:**

```
cip-127/memo:request=create-lock&lock-kind=<lock kind>&lock-subject=<lock subject>
```

| Key | Value |
| - | - |
| `request` | `create-lock` |
| `lock-kind` | `sv-lock`, `fa-lock`, or `provisional-fa-lock` |
| `lock-subject` | The SV name (`svRightsOwnerName`) or FA provider party ID. See [Choose the Lock Subject](#choose-the-lock-subject). |

**Example: SV lock.** To lock 15,000 CC for the SV `Example-SV-1`, enter `15000` in **Amount** and this **Description**:

```
cip-127/memo:request=create-lock&lock-kind=sv-lock&lock-subject=Example-SV-1
```

**Example: FA lock.** To lock 15,000 CC for the featured app provider `example-app-provider::1220d5be…f4c1`, enter `15000` in **Amount** and this **Description**:

```
cip-127/memo:request=create-lock&lock-kind=fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1
```

For a provisional FA lock, use the same memo with `lock-kind=provisional-fa-lock`.

![Make a transfer dialog with a request to create an SV lock of 15,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/create-lock-form.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=6b48f566e04f3014ff6b4e90ac970816)

After submitting the transfer, the **Offers** page shows the new lock as a pending transfer offer to the lock manager address, with the expiration `9999-12-31 23:59`. Its **Description** is `cip-127/memo:lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=locked`.

![Offers page with one lock of 15,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/create-lock-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=a3af05c808fd5016c16b59422b0d3eeb)

## Top Up a Lock

To add CC to an existing lock, send another create request. Use the [Create a Lock](#create-a-lock) template with the same `lock-kind` and `lock-subject` as the existing lock, and the amount to add in **Amount**. The new lock merges automatically into the existing lock.

For example, a second request for 15,000 CC with this memo results in one lock of 30,000:

```
cip-127/memo:request=create-lock&lock-kind=sv-lock&lock-subject=Example-SV-1
```

![Offers page with one merged lock of 30,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/merge-lock-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=7b9b7de10c088eaf1983ebe5477eaac1)

> [!NOTE]
>
> Merging is best-effort. Concurrent create requests can produce separate locks with the same parameters, and one request merges at most 20 locks. To merge the remaining locks, send a create request with an amount of `0`.

## Unlock a Lock

An unlock converts all or part of a locked lock into a vesting lock. Send a lock request with:

**Amount:** `0`. The transfer amount is ignored; `unlock-amount` in the memo sets the amount to unlock.

**Memo template:**

```
cip-127/memo:request=unlock-and-start-vesting&unlock-amount=<amount>&vesting-start-time=<time>&lock-kind=<lock kind>&lock-subject=<lock subject>
```

| Key | Value |
| - | - |
| `request` | `unlock-and-start-vesting` |
| `unlock-amount` | The amount of CC to unlock. To unlock the full lock, use the full lock amount. After a partial unlock, the rest of the lock must hold at least the minimum lock amount. |
| `vesting-start-time` | The start of the vesting period, in ISO 8601 format in UTC. It must still be in the future when the network processes the request, and at most 24 hours in the future. Allow enough time for the approval in your wallet; for example, use the next midnight UTC. |
| `lock-kind` | The kind of the lock to unlock, copied from its **Description** |
| `lock-subject` | The subject of the lock to unlock, copied from its **Description** |

**Example: SV lock.** To unlock 10,000 CC from a 30,000 CC lock for `Example-SV-1`, with vesting starting at midnight UTC on 5 November 2026, enter `0` in **Amount** and this **Description**:

```
cip-127/memo:request=unlock-and-start-vesting&unlock-amount=10000&vesting-start-time=2026-10-24T00:00:00Z&lock-kind=sv-lock&lock-subject=Example-SV-1
```

**Example: FA lock.** The same unlock from an FA lock:

```
cip-127/memo:request=unlock-and-start-vesting&unlock-amount=10000&vesting-start-time=2026-10-24T00:00:00Z&lock-kind=fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1
```

To unlock a provisional FA lock, see [FA Locks and Provisional FA Locks](#fa-locks-and-provisional-fa-locks).

![Make a transfer dialog with a request to unlock 10,000 from an SV lock](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/partial-unlock-form.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=e770a10fb22d60cf3862cfcb418b294b)

After the SV unlock above, the **Offers** page shows two locks:

* a locked lock of 20,000, with the expiration `9999-12-31 23:59`;
* a vesting lock of 10,000, whose expiration is the end of the vesting period: the vesting start plus 365.25 days, `2027-10-24 06:00:00` UTC. Its **Description** is:

  ```
  cip-127/memo:lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=vesting&lock-vesting-duration-micros=31557600000000&lock-vesting-end-time-micros=1824357600000000&lock-vesting-info="vesting for 365.25 days until 2027-10-24 06:00:00Z"
  ```

![Offers page with a vesting lock of 10,000 and a locked lock of 20,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/partial-unlock-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=107da9dc9b85c4ffdbb44d51d1617b42)

If you then unlock the remaining 20,000 with the same vesting start time, you get a second vesting lock with the same expiration. Vesting locks that come from separate unlock requests do not merge immediately, but are merged on withdraw, so you can withdraw from multiple locks in one request.

![Offers page with two vesting locks of 10,000 and 20,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/full-unlock-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=2f953f86c6934a724990d444de045e63)

## Withdraw Vested Funds

Vested CC stays in the vesting lock until you withdraw it.

**Amount:** `0`. The transfer amount is ignored.

**Memo template:**

```
cip-127/memo:request=withdraw-vested-funds&vested-until-time=<time>&lock-kind=<lock kind>&lock-subject=<lock subject>&lock-status=vesting&lock-vesting-duration-micros=<duration>&lock-vesting-end-time-micros=<end time>
```

| Key | Value |
| - | - |
| `request` | `withdraw-vested-funds` |
| `vested-until-time` | The time up to which vested CC is withdrawn, in ISO 8601 format in UTC. It must be in the past, and later than the time of any earlier withdrawal from the same lock. |
| `lock-kind` | Copied from the **Description** of the vesting lock |
| `lock-subject` | Copied from the **Description** of the vesting lock |
| `lock-status` | `vesting` |
| `lock-vesting-duration-micros` | Copied from the **Description** of the vesting lock |
| `lock-vesting-end-time-micros` | Copied from the **Description** of the vesting lock |

The easiest way to build this memo is to start from the vesting lock's **Description**:

1. Click the vesting lock's row on the **Offers** page and copy its **Description**.
2. Delete `&lock-vesting-info=` and everything after it.
3. Directly after `cip-127/memo:`, insert `request=withdraw-vested-funds&vested-until-time=<time>&`, with your withdrawal time in place of `<time>`.

**Example: SV lock.** Take the 10,000 CC vesting lock from [Unlock a Lock](#unlock-a-lock), whose **Description** is:

```
cip-127/memo:lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=vesting&lock-vesting-duration-micros=31557600000000&lock-vesting-end-time-micros=1825394400000000&lock-vesting-info="vesting for 365.25 days until 2027-11-05T06:00:00Z"
```

To withdraw what vested in the first 30 days, enter `0` in **Amount** and this **Description**:

```
cip-127/memo:request=withdraw-vested-funds&vested-until-time=2026-11-23T00:00:00Z&lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=vesting&lock-vesting-duration-micros=31557600000000&lock-vesting-end-time-micros=1825394400000000
```

This returns about 821.36 CC (30/365.25 of 10,000) to the lock owner. The vesting lock keeps the remaining 9,178.64 CC, with the same end of the vesting period.

**Example: FA lock.** For an FA lock unlocked with the same vesting start, the 60-day vesting period gives `lock-vesting-duration-micros=5184000000000` and `lock-vesting-end-time-micros=1798005600000`. The withdrawal after 30 days returns 5,000 CC:

```
cip-127/memo:request=withdraw-vested-funds&vested-until-time=2026-11-23T00:00:00Z&lock-kind=fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1&lock-status=vesting&lock-vesting-duration-micros=5184000000000&lock-vesting-end-time-micros=1798005600000
```

> [!NOTE]
>
> After a withdrawal, the vesting lock holds the remaining amount, and its `lock-vesting-duration-micros` changes to the remaining vesting period. In the SV example, it changes from `31557600000000` to `28965600000000` (335.25 days). Copy the current values from the lock's **Description** before each withdrawal.

> [!NOTE]
>
> The withdrawal screenshots come from a test network with a vesting period of 120 seconds (`lock-vesting-duration-micros=120000000`), so the times are minutes apart.

![Make a transfer dialog with a request to withdraw vested funds](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/withdraw-vested-form.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=9382be97e83708a4c577d59f02ff3269)

In the screenshots, a quarter of a 10,000 vesting lock vested before the withdrawal. The withdrawal returns 2,500 CC to the lock owner, and the vesting lock keeps the remaining 7,500 with the same end of the vesting period:

![Offers page with a vesting lock of 7,500 after the withdrawal](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/withdraw-vested-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=18cf9fc7ee077d0b2b532198d17d983b)

When the vesting period ends, the remaining CC in a vesting lock becomes available as liquid CC without a withdrawal, as the time lock on the holding expires. SVs run automation that archives fully vested vesting locks, which removes them from the Offers page and returns all locked funds.

## Substitute a Lock

In a substitution, a funds owner (the *proposer*) offers to replace part or all of an existing lock of another party (the *target owner*) with their own CC. If the target owner accepts:

* the substituted amount is returned to the target owner as liquid CC;
* the target lock is reduced by that amount;
* the proposer gets a new lock of that amount, with the same kind and subject as the target lock.

Apart from unlocking a [provisional FA lock](#fa-locks-and-provisional-fa-locks), substitution is the only way to return locked CC to its owner as liquid CC without vesting.

### Propose a Substitution

The proposer sends the lock request. The proposer cannot see the target lock in its own wallet, so the target owner must give the proposer its party ID and the lock's kind, subject, and status. For a vesting lock, the target owner also gives the vesting duration and end time from the lock's **Description**.

**Amount:** the amount to substitute. This amount of the proposer's CC is reserved until the proposal is accepted, rejected, withdrawn, or expires.

**Memo template for a locked target lock:**

```
cip-127/memo:request=substitute-lock&target-lock-owner=<party ID>&lock-kind=<lock kind>&lock-subject=<lock subject>&lock-status=locked
```

**Memo template for a vesting target lock:**

```
cip-127/memo:request=substitute-lock&target-lock-owner=<party ID>&lock-kind=<lock kind>&lock-subject=<lock subject>&lock-status=vesting&lock-vesting-duration-micros=<duration>&lock-vesting-end-time-micros=<end time>
```

| Key | Value |
| - | - |
| `request` | `substitute-lock` |
| `target-lock-owner` | The full party ID of the target owner |
| `lock-kind` | The kind of the target lock |
| `lock-subject` | The subject of the target lock |
| `lock-status` | `locked` or `vesting`, the status of the target lock |
| `lock-vesting-duration-micros` | Vesting target locks only. Copied from the **Description** of the target lock. |
| `lock-vesting-end-time-micros` | Vesting target locks only. Copied from the **Description** of the target lock. |

The memo identifies the target lock by its owner, kind, subject, and vesting state, not by its amount. After a partial substitution, the rest of the target lock must still hold at least the minimum lock amount.

**Example: SV lock.** The party `example-proposer::1220…2e4` offers to substitute 10,000 CC of the 30,000 CC locked SV lock that `example-custodian::1220…7346` holds for `Example-SV-1`. The proposer enters `10000` in **Amount** and this **Description**:

```
cip-127/memo:request=substitute-lock&target-lock-owner=example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346&lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=locked
```

**Example: FA lock.** The same substitution against a locked FA lock:

```
cip-127/memo:request=substitute-lock&target-lock-owner=example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346&lock-kind=fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1&lock-status=locked
```

![Make a transfer dialog with a substitution proposal for 10,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-propose-form.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=bdc2e233542f04d6637b3a87be3e6e87)

The proposal is a pending transfer offer from the proposer to the target owner. Both parties see it on their **Offers** page. Its **Description** starts with `cip-127/memo:request=accept-to-substitute-lock`, followed by the kind, subject, and status of the target lock. The proposal expires after 90 days.

![Offers page of the target owner with the substitution proposal and the target lock](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-owner-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=d596d87badd1b03742973683db59b1b3)

### Accept or Reject a Substitution

The target owner clicks the proposal on the **Offers** page. The **Transfer Offer** dialog shows the amount, the proposer as the sender, and the memo:

![Transfer Offer dialog of the target owner with Reject and Accept](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-owner-dialog.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=ff27ceceecba9e4abc8ae41d2bec6b3d)

* Click **Accept** to accept the substitution.
* Click **Reject** to reject it. The reserved CC is returned to the proposer, and the target lock does not change.

After an accepted substitution of 10,000 from a lock of 30,000, the target owner has a lock of 20,000 and 10,000 more liquid CC:

![Offers page of the target owner with a lock of 20,000 after the substitution](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-owner-offers-after.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=a34a7b9ba469ec47418b39498731b5ca)

The proposer has a new lock of 10,000 with the same kind and subject:

![Offers page of the proposer with a new lock of 10,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-proposer-offers-after.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=85fc0712d13902c1f6499b39ca8e783f)

### Withdraw a Substitution Proposal

Until the target owner accepts, the proposer can withdraw the proposal. The proposer clicks the proposal on the **Offers** page and clicks **Withdraw**. The reserved CC is returned to the proposer.

![Transfer Offer dialog of the proposer with Withdraw](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/substitution-proposer-dialog.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=22a091070f8e2b17c0c538a099061dec)

## Transfer a Lock

A lock transfer moves all or part of a lock to a new owner, without vesting and without new funds. It keeps the lock kind, subject, and vesting state. Use it, for example, to move a lock to a different custodian. Unlike a substitution, the current lock owner starts the transfer, and no CC is paid out: the locked CC moves from the current owner to the new owner. The total balance of the current owner decreases by the transferred amount, and the total balance of the new owner increases by the same amount.

### Propose a Lock Transfer

The current lock owner sends the lock request.

**Amount:** `0`. The transfer amount is ignored; `transfer-amount` in the memo sets the amount to transfer.

**Memo template for a locked lock:**

```
cip-127/memo:request=transfer-lock&new-lock-owner=<party ID>&transfer-amount=<amount>&lock-kind=<lock kind>&lock-subject=<lock subject>&lock-status=locked
```

**Memo template for a vesting lock:**

```
cip-127/memo:request=transfer-lock&new-lock-owner=<party ID>&transfer-amount=<amount>&lock-kind=<lock kind>&lock-subject=<lock subject>&lock-status=vesting&lock-vesting-duration-micros=<duration>&lock-vesting-end-time-micros=<end time>
```

| Key | Value |
| - | - |
| `request` | `transfer-lock` |
| `new-lock-owner` | The full party ID of the new owner |
| `transfer-amount` | The amount of CC to transfer. After a partial transfer, both resulting locks must hold at least the minimum lock amount. |
| `lock-kind` | Copied from the **Description** of the lock |
| `lock-subject` | Copied from the **Description** of the lock |
| `lock-status` | `locked` or `vesting`, copied from the **Description** of the lock |
| `lock-vesting-duration-micros` | Vesting locks only. Copied from the **Description** of the lock. |
| `lock-vesting-end-time-micros` | Vesting locks only. Copied from the **Description** of the lock. |

The memo identifies the lock by its owner, kind, subject, and vesting state, not by its amount.

**Example: SV lock.** To transfer 10,000 CC of a 30,000 CC locked SV lock for `Example-SV-1` to `example-custodian::1220…7346`, enter `0` in **Amount** and this **Description**:

```
cip-127/memo:request=transfer-lock&new-lock-owner=example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346&transfer-amount=10000&lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=locked
```

**Example: vesting SV lock.** To transfer the whole 10,000 CC vesting lock from [Unlock a Lock](#unlock-a-lock) to the same custodian:

```
cip-127/memo:request=transfer-lock&new-lock-owner=example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346&transfer-amount=10000&lock-kind=sv-lock&lock-subject=Example-SV-1&lock-status=vesting&lock-vesting-duration-micros=31557600000000&lock-vesting-end-time-micros=1825394400000000
```

**Example: FA lock.** To transfer 10,000 CC of a locked FA lock:

```
cip-127/memo:request=transfer-lock&new-lock-owner=example-custodian::12200cc0ace45dd89c627d67669391ce0cf519dffff1aeedd643a56b2fe822f37346&transfer-amount=10000&lock-kind=fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1&lock-status=locked
```

![Make a transfer dialog with a proposal to transfer 10,000 of an SV lock](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-propose-form.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=a7cdc072f1cde4d5e893c56e8cc5a873)

The proposal is a pending transfer offer from the current owner to the new owner, for the transferred amount. Both parties see it on their **Offers** page. Its **Description** starts with `cip-127/memo:request=accept-to-transfer-lock`, followed by the kind, subject, and status of the lock. The proposal expires after 90 days.

![Offers page of the new owner with the lock transfer proposal](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-new-owner-offers.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=eb3a87ad4c20b801867de28f22ee8401)

### Accept or Reject a Lock Transfer

The new owner clicks the proposal on the **Offers** page. The **Transfer Offer** dialog shows the amount, the current owner as the sender, and the memo:

![Transfer Offer dialog of the new owner with Reject and Accept](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-new-owner-dialog.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=ed455213db3a89ce211001acbd4c8c8c)

* Click **Accept** to accept the lock transfer.
* Click **Reject** to reject it. The lock does not change.

After an accepted transfer of 10,000 from a lock of 30,000, the current owner has a lock of 20,000:

![Offers page of the current owner with a lock of 20,000 after the transfer](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-owner-offers-after.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=3d816c0e24fca507ca88fa3103876cd1)

The new owner has an owner-controlled lock of 10,000 with the same kind and subject:

![Offers page of the new owner with a new lock of 10,000](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-new-owner-offers-after.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=25e0e31fb747d812f78891ac39deabc2)

### Withdraw a Lock Transfer Proposal

Until the new owner accepts, the current owner can withdraw the proposal. The current owner clicks the proposal on the **Offers** page and clicks **Withdraw**. The lock does not change.

![Transfer Offer dialog of the current owner with Withdraw](https://mintcdn.com/cantonfoundation/o4mfFhDFSInX1ISq/images/governance-locks/transfer-owner-dialog.png?fit=max\&auto=format\&n=o4mfFhDFSInX1ISq\&q=85\&s=93d2b5c7549b4b2cb591118305cabbda)

## FA Locks and Provisional FA Locks

FA locks work like SV locks, and every memo template on this page applies to them. These are the differences:

* **Lock kind:** `lock-kind=fa-lock`.
* **Lock subject:** the full party ID of the featured app provider party, not a name. See [FA Locks and Provisional FA Lock Subjects](#fa-locks-and-provisional-fa-lock-subjects).
* **Vesting period:** 60 days, so `lock-vesting-duration-micros` of a freshly unlocked FA lock is `5184000000000`.

A *provisional FA lock* (`lock-kind=provisional-fa-lock`) proves that an applicant has sufficient funds before it applies for featured app status. Create it with the [Create a Lock](#create-a-lock) template. For example, to provisionally lock 15,000 CC for `example-app-provider::1220d5be…f4c1`, enter `15000` in **Amount** and this **Description**:

```
cip-127/memo:request=create-lock&lock-kind=provisional-fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1
```

A provisional FA lock works like an FA lock, with these differences:

* It does not count toward the locking requirement of an existing featured app.
* It will be automatically converted to an FA lock by SV automation once the featured app right for the subject is created.
* An unlock returns the CC to the lock owner immediately, without vesting. The unlock memo leaves out `vesting-start-time`.

**Memo template for unlocking a provisional FA lock:**

```
cip-127/memo:request=unlock-and-start-vesting&unlock-amount=<amount>&lock-kind=provisional-fa-lock&lock-subject=<FA provider party ID>
```

**Example.** To unlock the whole 15,000 CC provisional lock above, enter `0` in **Amount** and this **Description**:

```
cip-127/memo:request=unlock-and-start-vesting&unlock-amount=15000&lock-kind=provisional-fa-lock&lock-subject=example-app-provider::1220d5bef46570772b73448a710e0160035982683f2bc07d89de1fe8f05df877f4c1
```

## Integrate Governance Locks

This section is for developers of wallets and explorers. Wallets and explorers read governance locks from different sources, so they integrate in different ways.

### Wallets

Wallets work with both the locks and the requests that change them. All of them are [CIP-0056](https://docs.canton.network/overview/reference/cip-0056.md) token standard transfers, and the memo of each transfer says what it is. The memo is in the `splice.lfdecentralizedtrust.org/reason` metadata key, and it starts with `cip-127/memo:`. Its keys and values are the ones described in [Build the Memo](#build-the-memo).

* **Locks:** each lock implements the `TransferInstruction` interface (V1 and V2) as a pending transfer:
  * The sender is the lock owner, and the receiver is the lock manager address.
  * The memo lists `lock-kind`, `lock-subject`, and `lock-status`. A vesting lock also lists `lock-vesting-duration-micros`, `lock-vesting-end-time-micros`, and `lock-vesting-info`.
  * The V1 status is `TransferPendingInternalWorkflow`.
  * The expiration (`executeBefore` in V1) is the maximum time for a locked lock, and the end of the vesting period for a vesting lock. In V2, `expiresAt` is empty for a locked lock.
  * Show locks as in-flight or pending transfers. Do not offer to accept, reject, or withdraw a lock: the lock contract rejects these choices.
* **Proposals:** substitution and lock transfer proposals also implement the `TransferInstruction` interface. Their memos start with `cip-127/memo:request=accept-to-substitute-lock` or `cip-127/memo:request=accept-to-transfer-lock`. The receiver can accept or reject a proposal with the standard token standard choices, and the sender can withdraw it.
* **Requests:** a wallet sends a lock request as a standard two-step transfer, with the `TransferFactory_Transfer` choice, to the lock manager address. Put the memo in the `splice.lfdecentralizedtrust.org/reason` metadata key. The Splice Daml code reads the lock request only from this memo, and checks that the receiver is the lock manager address.

We recommend that wallets list governance locks and their multi-step workflows (transfers and substitutions) separately from token standard transfer offers. We also recommend that wallets build custom forms for creating lock requests, and support their users with extra validation (e.g., SV right owner name validation).

### Explorers

We recommend that explorers use the `/v2/updates` stream of the Scan API and the corresponding active contract set (ACS) endpoint as their data source. These endpoints do not serve interface views. Explorers should thus read the locksusing the underlying `Splice.GovernanceLock:GovernanceLock` template directly.

We recommend explorer developers to consult the corresponding [Daml code](https://github.com/canton-network/splice/blob/main/daml/splice-amulet/daml/Splice/GovernanceLock.daml) to understand the structure.

To compute the locked amounts:

1. Select the `GovernanceLock` contracts whose `specification` is `GLS_FullLock`. Contracts with `GLS_VestingLock` are vesting locks, and do not count toward locking requirements.
2. Group the contracts by `specification.kind`. The kind is one of:
   * `GLK_SuperValidatorRightsOwner`, with the SV name in `svName`
   * `GLK_FeaturedApp`, with the featured app provider party in `provider`
   * `GLK_ProvisionalFeaturedApp`, with the featured app provider party in `provider`
3. Sum the `amount` field of each group, across all values of `owner`.

Provisional FA locks form their own groups, separate from FA locks with the same provider. See [How Locked Funds Are Aggregated](#how-locked-funds-are-aggregated).

## Further Reading

* [CIP-0105: Super Validator Locking & Long-Term Commitment Framework](https://github.com/canton-foundation/cips/blob/main/cip-0105/cip-0105.md)
* [CIP-0116: Featured App Locking](https://github.com/canton-foundation/cips/blob/main/cip-0116/cip-0116.md)
* [CIP-0127: On-Chain Enforcement of FA and SV Locking](https://github.com/canton-foundation/cips/blob/main/cip-0127/cip-0127.md)
* [Splice Portfolio transfers](https://docs.canton.network/sdks-tools/development-tools/splice-portfolio/transfers.md)
