Programmable Tokens
A plain native token has no built-in transfer logic. Once minted, it moves through ordinary transactions with no script execution. That keeps it cheap, and it means an issuer cannot enforce rules on who holds it or how it moves. Programmable tokens (CIP-113) add validation logic that runs on every transfer, mint, and burn. This page explains the design. For the overview, the modules that exist today and where to start, see the Programmable Tokens page.
The idea
A minting policy gives you control at mint and burn, but nothing in between. Programmable tokens extend that control to circulation: every movement passes through a validator, so an issuer can encode rules the ledger then enforces on their behalf.
The model works without changing the protocol:
- Shared script custody. All programmable tokens of a given standard are locked at a shared smart-contract address rather than sitting free in user wallets. Every transfer is a spend from that script, so the validation logic always runs.
- Ownership by stake credential. The tokens live at a script address, and the holder's stake credential decides who can move them, so the holder signs with their own key.
- An on-chain registry. A registry records which tokens are programmable and which rules apply, so wallets, indexers, and dApps can discover and respect the logic.
- Modules. Specific behaviors, such as freeze and seize for a regulated asset, are defined as modules, which the CIP calls substandards, on top of the shared base framework, so an issuer picks a module and does not rebuild the shared part.
Why it matters
Regulated assets need rules checked on every transfer, which a plain native token cannot do:
- Stablecoins and tokenized securities that must support freeze, seize, or allowlist controls.
- Real-world assets (RWAs) that carry compliance obligations like sanctions screening or KYC/AML gating.
- Any asset whose issuer must be able to enforce rules after issuance, not just at mint.
Because it builds on Cardano's existing native-asset and scripting machinery, none of this requires a hard fork.
The trade-off
Programmability has a cost, and it is the exact thing plain native tokens avoid. Once transfers run through a validator, you are back to script execution on every movement, with the fees and validation surface that come with it. That is the point of the design, not a flaw, but it means programmable tokens are for assets that genuinely need enforced rules, not a default for every token. For a token that only needs control at mint and burn, a plain minting policy is still the right tool.
How custody and ownership work
Every programmable token sits at one shared script address, programmableLogicBase. Moving it is a spend from that script, so the checks always run. This page uses the names from the CIP. The reference contracts write the same names in snake case, for example programmable_logic_base.
Ownership comes from the other half of the address. A holder's smart wallet address uses programmableLogicBase as the payment credential and a credential of the holder in the stake part. Whether that is the holder's payment key or stake key is the token's convention. Given the convention, anyone can compute the address from a wallet address, so tokens can be sent to someone who has never used the standard, and the holder still signs with their own key.
The custody check on each input only requires the shared checks to be part of the transaction. Those run once per transaction, through a zero-amount withdrawal from a stake script (withdraw-zero).
Three layers
Two layers are shared infrastructure, deployed once for every programmable token. The third is what an issuer writes.
| Layer | Deployed | What it holds |
|---|---|---|
| Registry | Once, shared | A sorted on-chain list of registered policies. Each entry is a UTxO marked by an NFT, with the token's configuration in its datum. |
| Standard | Once, shared | The custody address every token lives at, the dispatcher behind it, one delegate per action, and the protocol parameters that wire them together. |
| Module | Per token | The issuer's rules: who can move the token, who can act on it without the holder, and who can mint and burn it. |
A new token deploys none of the shared scripts. The wiring is read from the protocol parameters when a transaction is validated.
Actions
Tokens enter through a mint. After that, every spend from the shared address declares one of three actions, each with its own delegate.
| Operation | Started by | Authorized by | What is checked |
|---|---|---|---|
| Mint (issuance) | The issuer | The token's minting logic | Minted tokens land at programmableLogicBase addresses. The minting logic runs in the same transaction. The issuance policy is permanent, so the policy ID never changes. |
| Transfer | The holder | The holder's stake credential: a signature, or the holder's script runs | One registry proof per policy spent or minted. Every registered policy's transfer logic runs. Programmable value stays at programmableLogicBase addresses. |
| Third party | Whoever the module allows, for example an issuer admin | The token's third-party logic, with no holder signature | Each input pairs with an output at the same address. Only the acted-on policy may change. Its total in custody never drops, except by a burn in the same transaction. This covers seizure, partial seizure and wipe. |
| Unfracking | The holder | The holder, and the token's unfracking logic. It is off unless the issuer opts in | One policy is moved out of a shared UTxO into its own, so a frozen token no longer blocks the others. Ownership does not change. The reference platform's deployment parameters disable it. |
Before you integrate a token, read its third-party script. It decides what can happen to a holder's balance without their signature, and who can trigger it.
Upgrades
- The protocol. The dispatcher and the protocol-level issuance logic are read from the protocol parameters at validation time, so re-pointing them upgrades every token at once. The right to upgrade is a credential recorded there, and handing it over takes two transactions: a nomination, then the nominee accepting.
- Each token. In the reference implementation, a token's issuer can re-point its transfer, third-party and unfracking logic and its global state in place. The issuer's authority is the token's minting logic credential.
- What never moves. The
programmableLogicBasecredential, so every holder's address stays where it is, and each token's minting policy, so its policy ID survives every upgrade.
To judge how far to trust a deployment, look at who holds the upgrade authority recorded in the protocol parameters. Integrators should read current wiring from the protocol parameters UTxO and the token's registry node, never from a cached script hash.
The registry node
A token is one registry node. Write the module, then register its scripts.
pub type RegistryNode {
// The token's policy ID
key: ByteArray,
// The next entry in the registry
next: ByteArray,
// Who can mint and burn
minting_logic_script: Credential,
// Which transfers pass
transfer_logic_script: Credential,
// Third-party actions, such as seizure
third_party_logic_script: Credential,
// Holders restructuring their own UTxOs
unfracking_logic_script: Credential,
// Optional state, such as a denylist
global_state_cs: ByteArray,
}
Registration binds the node to the token. The registry rebuilds the issuance policy from the node's minting logic credential and requires it to hash to key, and that minting logic must run in the same transaction.
Integrating as a wallet or dApp
From the ledger's side, programmable tokens are ordinary native assets at a script address. What changes is how you find them and how you build the transactions that move them.
Wallets:
- Show balances by querying the holder's smart wallet address.
- Identify programmable tokens by looking up their policy in the registry.
- Build history from balance changes at the smart wallet address.
- Optionally, build transfer transactions for native sends.
dApps and DEXes, for each transaction:
- Reference the protocol parameters UTxO and point each spend's redeemer at it.
- Reference a registry node per policy, or its covering node.
- Withdraw 0 from
programmableLogicGlobaland point each spend's redeemer at it. - Withdraw 0 from the action's delegate, with its own redeemer.
- Withdraw 0 from each token's transfer logic.
- Send tokens only to derived smart wallet addresses.
If a dApp script owns the tokens, add a zero withdrawal from that script as the owner's consent. Steps 1 and 3 are the easy ones to miss, because neither shows up in a token's own configuration. The integration guides and the DeFi section of the CIP have the detail.
CIP-113 is merged into the CIPs repository. The Cardano Foundation's reference implementation has been security-audited, and its audit reports are public. The architecture and integration guides sit next to the contracts in the cip113-programmable-tokens repository. For an audited module that CMTA has recognized for tokenized shares, see the CMTA reference. Example modules such as freeze and seize live in the cip113-programmable-tokens-platform repository. For the overview, the modules that exist today and where to start, see the Programmable Tokens page.
Next steps
- Staking & Governance: the next module, how delegation, rewards, and on-chain governance work, and how to build against them
- Minting policies: the control layer plain native tokens do have, at mint and burn