Overview
There are two ways to mint:
In both flows, the holder is the party that receives the minted holding, and the party that
proposed the mint can cancel it until it is accepted.
Prerequisites
Before a mint can be accepted:- The Instrument Configuration for the instrument must exist.
- The holder must satisfy the instrument’s issuer credential requirements. If no issuer credential requirements are defined, the credential check passes for any holder. See How Requirements Are Evaluated.
- The instrument must not be paused, unless the holder is the registrar.
- If the blocklist check is enabled for the instrument, the holder must not be on the registrar’s blocklist.
- The mint must be accepted before its
executeBeforetime.
Holder credential requirements aren’t checked for mints. A holder that only satisfies the issuer
credential requirements can receive a mint, but can’t transfer or allocate the minted holdings
unless it also satisfies the holder credential requirements.
API integration
Every API step follows the same pattern:- Call the Operator Backend API to get the choice context
and the contracts that must be disclosed, such as the
InstrumentConfiguration, the holder’s credentials, and theAllocationFactory. - Exercise the choice through the JSON Ledger API, passing the choice context in
extraArgs.contextand the disclosures indisclosedContracts.
MintRequest or
MintOffer by querying the active contracts of the acting party, for example by matching the mint
reference.
Mint requests and offers are created through the registrar’s
AllocationFactory contract.
Despite its name, it doesn’t only implement the Token Standard allocation interfaces, but also
the transfer interfaces and the mint and burn workflows. The name is kept for backwards
compatibility.Mint request
The holder requests a mint, and the registrar accepts or rejects it.1
Holder requests a mint
- dApp UI
- API
- Go to Mints and click Request Mint.
- Select the instrument.
- Enter the amount to mint.
- Enter a reference, for example the reason for the mint or the agreement under which the tokens are issued.
- Optionally, enter a label for the minted holding.
- Submit the request.
2
Registrar accepts or rejects the request
- dApp UI
- API
- Go to Mints and select the mint request.
- Click Accept, or click Reject and enter a reason.
3
Optional: Holder cancels the request
The holder can cancel a mint request until the registrar accepts it.
- dApp UI
- API
Go to Mints, select the mint request, and click Cancel.
Mint offer
The registrar offers a mint to a holder, and the holder accepts or rejects it.The mint offer flow is currently not available in the dApp UI. Use the API to offer, accept,
reject, or cancel mint offers.
1
Registrar offers a mint
- Get the
AllocationFactoryand choice context withPOST /api/utilities/v0/registry/mint/v0/offer, passing theholderand theinstrumentId. - As the registrar, exercise
AllocationFactory_OfferMinton the factory. The choice argument has the same shape as for a mint request.
MintOffer contract.2
Holder accepts or rejects the offer
- Get the choice context with
POST /api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/accept(or/reject). - As the holder, exercise
MintOffer_Accepton theMintOffer, orMintOffer_Rejectwith areason.
MintOffer_Accept returns the holdingCid of the minted holding.3
Optional: Registrar cancels the offer
The registrar can cancel a mint offer until the holder accepts it.As the registrar, exercise
MintOffer_Cancel on the MintOffer, using the choice context
from POST /api/utilities/v0/registry/mint/v0/offer/{mintOfferId}/choice-contexts/cancel.Mint details
Both flows use the sameMint payload:
Labels
Labels in mint and burn workflows require all involved parties to use Registry App version
0.14.2 or later.Mint payload, so it is set by the party that proposes the
mint and is applied unchanged when the mint is accepted:
- Mint request: the holder sets the receiver account when requesting the mint.
- Mint offer: the receiver account is taken from the offer.
MintOffer_Acceptdoesn’t take a label, so the holder can’t change it when accepting.
- If no receiver account ID is set, the holding is minted to the holder’s basic account with account
ID
"".
Troubleshooting
Next steps
- To move holdings between parties, see Transfer.
- To reduce supply, see Burn.
- To detect executed mints in the transaction history, see Transaction history parsing.
- To burn and mint holdings atomically from your own Daml code, see Custom burn / mint workflows.