# Compliance modules

Source: https://docs.settlemint.com/docs/concepts/compliance-and-identity/compliance-modules
Reference for what each compliance module permits or refuses, its parameters and units, and where you configure it.

Twenty compliance modules enforce DALP's on-chain transfer, mint, and burn rules. This reference defines what each module permits or refuses, its parameters and units, and any edge cases. For installation steps, see [Global controls](https://docs.settlemint.com/docs/console/compliance/global-controls), [Policy templates](https://docs.settlemint.com/docs/console/compliance/policy-templates), and the [Platform API](https://docs.settlemint.com/docs/api-reference/v2).

Active modules within scope evaluate every ordinary transfer and mint, and stateful modules update their counts after burns. For which paths bypass or narrow module checks (bypassed recipients, forced transfers, wallet recovery, and burns), see [Transfer-Path Compliance](https://docs.settlemint.com/docs/concepts/compliance-and-identity/transfer-path-compliance#controls-and-evidence).

Rules reach a token in four ways:

- **Global controls** apply organisation-wide from **Global controls** (including the platform-installed [wallet restriction](#wallet-restriction) module).
- **Policy templates** copy their modules onto a token when issued.
- **Issue asset** compliance steps fill values a policy leaves open.
- **Compliance tab** edits add, update, or turn off rules on a live token under its Governance role.

Token-level rules add to inherited global controls and cannot switch them off. See compliance policy for how the two layers compose.

Second-generation (V2) modules run as per-token instances with machine-readable reason codes and scoped rules. DALP assets accept only second-generation modules, refusing first-generation (V1) installs and naming the V2 replacement (such as `collateral-v2` for `collateral`). The entries below document the current generation and note where V1 differs.

## Keep stateful rules counting [#keep-stateful-rules-counting]

Seven modules maintain on-chain state in post-movement hooks across both generations: Wallet count, Identity count, Token supply limit, Issuance volume limit, Capital raise limit, Time lock, and Transfer approval.

Disabling a stateful rule stops its state updates, and re-enabling it never replays missed movements. Turning off a rule on a token or in global controls prompts for wallet verification without warning about state drift, so verify whether a rule is stateful first.

New scopes default to `ACCOUNTING_ONLY` ("Track transfers outside this scope"), which skips validation outside the scope while keeping state current. Clearing that option selects `SKIP_ALL`, skipping both validation and accounting. To pause enforcement without losing state, keep the rule enabled under an `ACCOUNTING_ONLY` scope or relax its cap to zero rather than disabling the binding.

[Figure] Where a token's compliance rules come from. Four sources feed a token's compliance evaluation. Global controls apply platform-wide and reach every bound token. At issuance, a policy template's controls become the token's rules, with Issue asset's compliance steps filling in the values the policy leaves open. The token's Compliance tab adds or edits rules after issuance. Together those three form the token rules. When a transfer, mint, or burn executes, every enabled rule checks the operation. If all rules pass, the operation executes. If one rule refuses, the operation fails and names the rule. Labels: Where a token's compliance rules come from; Global controls; Platform-wide,; every bound token.; Policy template; Sets rules; at issuance.; Compliance step; Issuer fills the; open values.; Compliance tab; Add or edit; after issuance.; Token rules; Every enabled rule checks the operation when it executes; A transfer, mint, or burn reads the rules live at that moment.; All rules pass; The operation executes.; One rule refuses; The operation fails and names the rule.

Active rules evaluate movements within their scope, and a failure reverts the transaction.

## Check a change before you confirm it [#check-a-change-before-you-confirm-it]

When you add or remove a rule on a token's **Compliance** tab, the Console runs a read-only preflight check before prompting for your PIN. If the platform would refuse the change (such as a duplicate rule or unregistered type), the dialog shows the reason and keeps confirm disabled.

For refusal error codes and troubleshooting, see [When a compliance module refuses](https://docs.settlemint.com/docs/concepts/compliance-and-identity/compliance-module-refusals).

## Choose the module by what it keys on [#choose-the-module-by-what-it-keys-on]

Pick a module by the fact your requirement evaluates:

| Console category | Modules | The rule keys on |
| --- | --- | --- |
| "Eligibility" | Identity verification, Identity allow list, Identity block list, Claim expiry | Who the receiver is: their registered identity and its claims |
| "Restrictions" | Country allow list, Country block list, Block addresses | Where a party is registered, or the raw wallet address |
| "Transfer controls" | Transfer approval, Own custody gateway | A named authority approving first, or the holder's own custody gateway |
| "Issuance & supply" | Supply cap, Token supply limit, Capital raise limit, Wallet count, Identity count, Issuance volume limit, Minimum holding | How much exists: supply, issuance, raised capital, holder count, position size |
| "Time-based rules" | Time lock, Lock-up | How long tokens have been held, or whether an unlock date has passed |
| "Settlement & collateral" | Collateral requirement | Proof of collateral behind the supply |

Within eligibility, choose [Identity verification](#identity-verification) for open credentialed populations, [Identity allow list](#identity-allow-list) for closed private placements, [Identity block list](#identity-block-list) for sanctions exclusions, and [Claim expiry](#claim-expiry) to enforce fresh credentials.

Within supply, choose [Supply cap](#supply-cap) for a hard total ceiling, [Issuance volume limit](#issuance-volume-limit) for periodic unit quotas, [Capital raise limit](#capital-raise-limit) for periodic fiat quotas, [Wallet count](#wallet-count) or [Identity count](#identity-count) for holder caps, and [Minimum holding](#minimum-holding) for position floors.

## Configure modules while issuing an asset [#configure-modules-while-issuing-an-asset]

When issuing from an instrument template with a policy, every module marked "Make configurable in Issue asset" (plus any unconfigured required control) appears as a step under **Compliance details** in [Issue asset](https://docs.settlemint.com/docs/console/asset-management/issue-new-asset). Fixed policy rules install directly without a step.

Multi-instance rules get one step per instance ("Inherited from template (N rules)" and "Rule 1 of N"). Rule scope is read-only during issuance. Contradictory country rules surface "Contradictory country rules", and a capital raise limit requires the system price resolver add-on before creation succeeds.

## Write the policy in words [#write-the-policy-in-words]

When the Console assistant and its drafts capability are enabled, **Write the policy** appears on a token's **Compliance** tab and on **Issue asset** compliance steps.

Enter your investor policy in English or German (up to 2,000 characters), then select **Read the policy**. The assistant maps each clause to a module while copying values verbatim from your text, flagging any clause no module supports.

On a live token, **Check today's holders** tests the draft rules against the 50 largest holders (exempting escrow-claim wallets from minimum holding and skipping future-only time locks) without modifying state.

Nothing installs automatically. Select **Open N rules** on a token to confirm each pre-filled rule sheet with wallet verification, or **Fill N rules into the design** in **Issue asset**. The platform stores the source text under **Policy** on the **Compliance** tab and marks each clause until an identical active rule is installed.

## Block addresses [#block-addresses]

Refuses an ordinary transfer or mint when a checked sender or receiver address is listed. Burns skip this pre-check. Because it inspects raw wallet addresses, it works before identity registration. Use it for sanctions or compromised wallets. Unlike a [wallet restriction](https://docs.settlemint.com/docs/console/participants/restrict-a-wallet), which blocks only outgoing sends, Block addresses stops a wallet receiving tokens as well.

| Parameter | Description |
| --- | --- |
| Blocked addresses | Wallet addresses the module refuses on either side of a transfer. |

## Capital raise limit [#capital-raise-limit]

Caps gross fiat value raised through minting over a fixed or rolling window (for example 5,000,000 in base currency per 365 days). Each mint converts to fiat through the installed price resolver and fails closed if pricing is missing, zero, negative, or stale.

Burns never release capacity because the module tracks gross capital raised rather than net supply. Parameters lock permanently once installed, so edits require removing and reinstalling the module. The system must have the price resolver add-on installed, or creation fails with `compliance.price.RESOLVER_MISSING`.

| Parameter | Description |
| --- | --- |
| Maximum raised (fiat) | Fiat amount, in whole base-currency units, that may be raised in each window. |
| Period length (days) | Tracking window in days, 1 to 730. |
| Rolling window | A continuous rolling window (sum over the last N days) instead of discrete fixed periods. |

## Claim expiry [#claim-expiry]

Refuses a mint or transfer when the receiver's claim on any required topic has expired or was never issued, checking only live claims from trusted issuers. Senders are never checked so lapsed holders can exit. Stack it with [Identity verification](#identity-verification). The Console warns if a required topic sits on an optional `OR` branch of the holder rule. Second generation only.

| Parameter | Description |
| --- | --- |
| Topics that must stay current | Verification topics checked on every receiver. At least one, at most 16. |
| Grace period (days) | Days past the expiry date a claim is still accepted, to absorb a re-issuance backlog. 0 requires claims to be current. At most 3,650. |
| Require every claim to carry an expiry date | Claims issued without an expiry date count as valid by default. Turn this on to reject them once holders have re-issued claims. |

## Collateral requirement [#collateral-requirement]

Refuses a mint unless the token's own on-chain identity holds a live collateral claim from a trusted issuer covering at least the configured ratio of the post-mint total supply. Expired claims never count.

| Parameter | Description |
| --- | --- |
| Proof topic ID | The verification topic representing collateral proof. |
| Collateral ratio | Basis points: 10000 = 100%, 20000 = 200%. 0 disables the check. |
| Trusted issuers | Extra claim issuer addresses trusted alongside the identity registry's issuers. Removing an address or disabling the module ends that extra trust immediately. |

## Country allow list [#country-allow-list]

Resolves the receiver's registered identity and country, refusing the movement unless that country is listed. Use it when permitted jurisdictions form a fixed enumerable list.

| Parameter | Description |
| --- | --- |
| Allowed countries | ISO 3166-1 numeric country codes. |

## Country block list [#country-block-list]

Resolves the receiver's registered identity and country, refusing the movement if the country is blocked, missing, or unregistered. Only receivers with a known non-blocked country pass. Use it for sanctions and embargo lists.

| Parameter | Description |
| --- | --- |
| Blocked countries | ISO 3166-1 numeric country codes. |

## Identity allow list [#identity-allow-list]

Requires the receiver's registered identity-contract address (not wallet address) to appear on the list. A token carries at most one identity allow list because every rule must pass, so **Add rule** opens the existing list for editing.

| Parameter | Description |
| --- | --- |
| Allowed identities | Identity-contract addresses. |

## Identity block list [#identity-block-list]

Refuses a movement when the receiver's registered identity-contract address appears on the list. Unregistered receivers pass (unlike the allow list). Use it for sanctions because holders have no key to edit the list, unlike [holder-removable claims](#excluding-holders-of-a-claim). Update the list if a blocked holder undergoes wallet recovery.

| Parameter | Description |
| --- | --- |
| Blocked identities | Identity-contract addresses. |

## Identity verification [#identity-verification]

Refuses a mint or transfer unless the receiver's registered identity satisfies the configured boolean verification expression (`AND`, `OR`, `NOT`) over trusted-issuer claims. Failures return [DALP-4266](https://docs.settlemint.com/docs/api-reference/errors) without naming missing topics.

While designing a template or asset, the expression can be left empty. Live module editors and global controls refuse empty expressions, whereas the token's **Holder rule** editor accepts an empty rule leaving only identity registration active.

### Excluding holders of a claim [#excluding-holders-of-a-claim]

Putting a verification topic under `NOT` (such as "verified and not sanctioned") is risky because holders can delete claims from their own identity. Every save checks the topic's "Use in exclusions" setting ([Verification topics](https://docs.settlemint.com/docs/console/compliance/verification-topics#decide-who-a-rule-may-exclude-with-it)):

- "Not allowed" refuses the save with `422`.
- "Allowed with acknowledgement" (or unset) refuses the save unless acknowledged (`holderRemovableNot.accepted: true`) from a non-impersonated session. The token's **Holder rule** editor provides an acknowledgement checkbox, while module editors and global controls refuse until narrowed.
- "Allowed" saves directly.

Prefer an identity block list, country block list, or positive eligibility claim wherever holders must not be able to self-clear an exclusion.

## Identity count [#identity-count]

Limits distinct registered identities holding the token. Multiple wallets sharing one identity take one slot, and unregistered receivers are refused. Second generation only.

| Parameter | Description |
| --- | --- |
| Counting policy | Current holders (default) or lifetime. Locked at installation. |
| Maximum investors | Total cap on counted identities. 0 means no total cap. |
| Country limits | Optional cap per country, bound to the country the identity first entered with. |

Current-holder counting installs only on tokens with zero holders (never in global controls) and frees a slot when all of an identity's wallets hit zero balance. When full, even a full-balance transfer to a new identity reverts because the rule checks before the sender exits.

Lifetime counting counts only identities receiving tokens after installation and never frees slots on exit. Moving a balance between wallets of one identity keeps its original country. Bypassed recipients take no slot, while forced transfers can exceed the cap and still count non-bypassed receivers.

## Issuance volume limit [#issuance-volume-limit]

Caps token units minted in a fixed or rolling window. Burns restore capacity in last-in-first-out (LIFO) order against the newest issuance in the window. First-generation module only (accepted by V1 tokens, V1 templates, and global controls, refused on V2 tokens).

| Parameter | Description |
| --- | --- |
| Maximum issuance per period | Token units that may be issued within one period. Editable later. |
| Period length (days) | Window length in days: 1 to 36,500 (fixed) or 1 to 730 (rolling). Locked once enabled. |
| Rolling window | Slides day by day instead of resetting discrete periods. Locked once enabled. |

## Lock-up [#lock-up]

Blocks transfers until an unlock timestamp in two forms: a **class lock** blocking all transfers across the token, and **holder locks** keeping a named amount untransferable per identity until a future date. Both lift automatically at their timestamp. Mints, burns, redemptions, principal-burning conversions, forced transfers, and wallet recovery bypass locks. Second generation only.

| Parameter | Description |
| --- | --- |
| Class unlock date (UTC) | UTC date and time (`unlockTime` in Unix seconds, `0` for none). Editable later. Incomplete date entries show "Enter a full date and time." and cannot be saved. |

Because a class lock blocks issuer contracts too, grant sender scope exemptions to treasuries, offerings, settlements, or venues that must deliver during a lock, and a receiver exemption to any burn-fee collector.

### Holder locks [#holder-locks]

Governance sets and clears holder locks from the token's holders list (**Set lock-up** / **Clear lock-up**) or through the API below. Unlock timestamps must exceed the latest block time. Locks follow the holder's identity across wallets (internal consolidation is allowed), do not transfer across wallet recovery, and do not support staged tranches.

| Request | Body | Effect |
| --- | --- | --- |
| `PUT /api/v2/tokens/{assetId}/compliance-modules/{instanceAddress}/holder-locks` | Holder wallet, amount in base units, unlock time. | Sets or replaces the holder's lock. |
| `DELETE /api/v2/tokens/{assetId}/compliance-modules/{instanceAddress}/holder-locks` | Holder wallet. | Clears the holder's lock. |

## Minimum holding [#minimum-holding]

Keeps every non-zero position at or above a floor, refusing mints or transfers that leave a receiver below the minimum or leave a sender with a non-zero stub below it (full exit to zero passes). Exempt fee-collector wallets if the token charges transfer fees. Bypassed recipients skip the receiver floor while senders remain checked. Second generation only.

| Parameter | Description |
| --- | --- |
| Minimum holding | Smallest non-zero position allowed, in whole token units. |
| Exempt wallets | Up to 20 wallets ignored on both sides of a transfer. Use only for terminal issuer-controlled wallets. |
| Exempt claims | Up to 5 claims whose holders skip their own floor (defaults to "Escrow account" so escrows can hold and pay out sub-minimum amounts). |

## Own custody gateway [#own-custody-gateway]

Restricts a custody receipt to its holder's own [custody gateway](https://docs.settlemint.com/docs/concepts/custody-and-signing/custody-gateway) and that gateway's escrow, blocking transfers, mints, and burns outside that loop even for bypassed recipients. Install unscoped on custody receipts only (the gateway refuses to enable a coin without an active rule bound to its factory). Second generation only.

| Parameter | Description |
| --- | --- |
| Custody gateway factory | Address of the custody gateway factory whose gateways this receipt is bound to. Prefilled with the organisation's custody gateway add-on. |

## Supply cap [#supply-cap]

Refuses any mint that would push live total supply past the ceiling. Never refuses transfers or burns, and burns free capacity immediately.

| Parameter | Description |
| --- | --- |
| Maximum supply | Maximum total supply allowed, in whole token units. |

## Time lock [#time-lock]

Requires tokens to age for a minimum hold period before transfer, tracking batches FIFO so oldest units unlock first. Mints and burns pass. New token rules exempt escrow senders by default while continuing to track their movements.

| Parameter | Description |
| --- | --- |
| Hold period (seconds) | Minimum hold period (1 second to 10 years). Locked once enabled. |
| Lock starts | V2 only: "When tokens are issued" (`issuance`, default) or "On every receipt" (`every-receipt`). Editable later without altering existing locks. |

Under `issuance`, mints and transfers from Supply management wallets start new locks while peer transfers preserve the sender's unlock schedule. Under `every-receipt`, every receipt locks for the full period. New locks quantise to buckets (hold period divided by 498, rounded up to whole days for holds of 30 days or more, capping entries at 500 per holder).

Systems still running the older V2 time-lock implementation refuse `every-receipt` configuration with `compliance.module.TIME_LOCK_UPGRADE_REQUIRED` (`409`) until upgraded. Holder reads expose `locked`, `transferable`, and `nextUnlockAt` ("Locked" and "Next unlock" in the Console). Balances held before module installation count as locked. V1 stores hold periods per hook call with claim exemptions instead of rule scopes.

## Token supply limit [#token-supply-limit]

First-generation module capping supply against a lifetime, fixed-period, or rolling-period limit (burns reduce tracked supply). On new V2 deployments, use [Supply cap](#supply-cap), [Issuance volume limit](#issuance-volume-limit), or [Capital raise limit](#capital-raise-limit) instead.

| Parameter | Description |
| --- | --- |
| Maximum supply | Maximum allowed in whole token units, or base-currency units when "Use base price" is enabled. |
| Period length (days) | Tracking window in days (`0` for lifetime, positive for periodic). |
| Rolling window | Rolling window instead of discrete periods (requires positive period length). |
| Use base price | Converts token units to base currency via price claims before checking the cap. |
| Global (issuer-wide) | Tracks supply across every token of the issuer rather than per token. |

## Transfer approval [#transfer-approval]

Requires pre-approval from a designated identity before transfers execute (mints and burns pass). Both parties need registered identities, and revoking an authority invalidates its approvals immediately.

| Parameter | Description |
| --- | --- |
| Approval authorities | Identity addresses authorised to grant or revoke approvals (at least one). |
| Approval expiry (seconds) | Validity window in whole seconds, from 1 to 31,536,000 (365 days). |
| Approval mode | Exact amount, up to once, or up to a total. Locked once enabled. |

On tokens charging transfer fees, avoid exact-amount mode because the net leg differs from the gross approved amount. Use up-to-once or up-to-total mode and exempt the fee collector via a direct contract call from an approval authority. V1 supports only exact amounts with a one-time flag and claim exemptions.

## Wallet count [#wallet-count]

Limits distinct wallets holding the token, counting each wallet separately regardless of identity (unregistered wallets count, bypassed recipients do not). Installation and completeness rules match [Identity count](#identity-count).

| Parameter | Description |
| --- | --- |
| Counting policy | Current holders (default) or lifetime. Locked at installation. |
| Maximum investors | Total cap on counted wallets. 0 means no total cap. |
| Country limits | Optional cap per country, bound to the wallet's country when first counted. |

Lifetime counting counts only wallets receiving tokens after installation (so to cap a token that already has 3 holders at N total, set the cap to N minus 3). Existing Investor count rules upgrade into lifetime Wallet count rules without losing counts, though they cannot add country limits because historical entries lack countries. V1 tracks caps with a claim filter and drops zero-balance wallets.

## Wallet restriction [#wallet-restriction]

Refuses transfers (and on DALP 3.2 token contracts, ordinary burns) sent from any restricted wallet, including transfers to bypassed recipients. Incoming transfers and mints pass, and forced transfers or forced burns skip it. A wallet recovery moving funds out of a restricted wallet propagates the restriction to the replacement wallet while the rule is active. Second generation only, with no parameters.

DALP installs this module automatically as a global control during system creation and [System updates](https://docs.settlemint.com/docs/console/organisation-settings/system-updates#the-wallet-restriction-row), populating active [wallet restrictions](https://docs.settlemint.com/docs/console/participants/restricted-wallet-on-chain#on-chain-enforcement). Manual installs are refused with [DALP-12285](https://docs.settlemint.com/docs/api-reference/errors) (`system-installed-only`).

In [Global controls](https://docs.settlemint.com/docs/console/compliance/global-controls#the-wallet-restriction-rule), a Compliance manager can turn the module off (preserving stored wallets across updates) or remove it (dropping stored wallets until the next update restores them), without lifting the restriction or freezes in DALP. Direct contract calls require Compliance manager.

## Frequently asked questions [#frequently-asked-questions]

### Does burning tokens free up capacity under a limit?

It depends on the module. Supply cap reads live total supply so burns free room immediately, Token supply limit reduces tracked supply, and Issuance volume limit credits burns LIFO. Capital raise limit never credits burns because it measures gross fiat raised.

### Can one control apply different limits to different holders?

Yes, on V2 modules. Each binding can carry multiple rules with distinct parameters and sender, receiver, country, or claim scopes, optionally keeping accounting active for movements skipped by validation.

### What happens to existing holders when a stricter rule is enabled?

Nothing until they transact. Enabling or tightening a rule never claws back settled holdings, though non-qualifying holders are refused as recipients on future movements.

## Related concepts [#related-concepts]

- [Compliance Policy](https://docs.settlemint.com/docs/concepts/compliance-and-identity/compliance-policy): How policy templates and global controls bring these modules to a token.
- [Transfer-Path Compliance](https://docs.settlemint.com/docs/concepts/compliance-and-identity/transfer-path-compliance): How a token runs its modules inside the transfer, and how a simulation finds the blocker.
- [On-Chain Identity](https://docs.settlemint.com/docs/concepts/compliance-and-identity/onchain-identity): The claims and identities that the identity modules read.