Skip to main content
The Burn workflow removes existing holdings from circulation. Burning always takes two steps: one party proposes the burn, and the counterparty accepts it. Holdings are only burned when both the registrar and the holder have authorized the burn.

Overview

There are two ways to burn: In both flows, the holder is the party whose holdings are burned, and the party that proposed the burn can cancel it until it is accepted. The flows differ in when the holdings are selected:
  • Burn request: the holder selects the holdings when requesting the burn. The burn amount is locked immediately, so it can’t be transferred while the request is pending.
  • Burn offer: the holder selects the holdings when accepting the offer. Nothing is locked while the offer is pending.
You can jump straight to a flow: Burn request · Burn offer · API integration · Troubleshooting.

Prerequisites

Before a burn can be accepted:
  • The holder must own holdings of the instrument that cover the burn amount.
  • 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 burn must be accepted before its executeBefore time.
These checks run on-ledger, using the Instrument Configuration and credentials that the Registry App backend provides as choice context. For burn requests, they also run when the request is created.
Holder credential requirements aren’t checked for burns. Only the issuer credential requirements apply to the holder.

API integration

Every API step follows the same pattern:
  1. 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 the AllocationFactory.
  2. Exercise the choice through the JSON Ledger API, passing the choice context in extraArgs.context and the disclosures in disclosedContracts.
The endpoint paths are relative to the base URL of the Operator Backend API for your environment, see Base URLs. To accept, reject, or cancel a burn, first find the contract ID of the active BurnRequest or BurnOffer by querying the active contracts of the acting party, for example by matching the burn reference. To select holdings, query the holder’s active Holding contracts of the instrument.
Burn 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.

Burn request

The holder requests a burn, and the registrar accepts or rejects it.
1

Holder requests a burn

  1. Go to Burns and click Request Burn.
  2. Select the instrument.
  3. Enter the amount to burn.
  4. Enter a reference, for example the reason for the burn or the redemption it relates to.
  5. Optionally, enter a label, which is the account ID to burn from, see Labels. Leave it empty to burn from the basic account.
  6. Submit the request.
The dApp UI only selects holdings with this label to cover the amount, and locks the burn amount. The request is listed under Burns until the registrar accepts or rejects it.
2

Registrar accepts or rejects the request

  1. Go to Burns and select the burn request.
  2. Click Accept, or click Reject and enter a reason.
After acceptance, the locked holding is burned. After rejection, the holding is unlocked and can be used again.
3

Optional: Holder cancels the request

The holder can cancel a burn request until the registrar accepts it. The holding is unlocked and can be used again.
Go to Burns, select the burn request, and click Cancel.

Burn offer

The registrar offers a burn to a holder, and the holder accepts or rejects it.
The burn offer flow is currently not available in the dApp UI. Use the API to offer, accept, reject, or cancel burn offers.
1

Registrar offers a burn

  1. Get the AllocationFactory and choice context with POST /api/utilities/v0/registry/burn/v0/offer, passing the holder and the instrumentId.
  2. As the registrar, exercise AllocationFactory_OfferBurn on the factory. The choice argument has the same shape as for a burn request, without holdingCids.
The transaction creates a BurnOffer contract. No holdings are locked.
2

Holder accepts or rejects the offer

  1. Get the choice context with POST /api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/accept (or /reject).
  2. As the holder, exercise BurnOffer_Accept on the BurnOffer with the holdingCids to burn, or BurnOffer_Reject with a reason.
BurnOffer_Accept returns the remaining holding if the selected holdings exceed the burn amount.
3

Optional: Registrar cancels the offer

The registrar can cancel a burn offer until the holder accepts it.As the registrar, exercise BurnOffer_Cancel on the BurnOffer, using the choice context from POST /api/utilities/v0/registry/burn/v0/offer/{burnOfferId}/choice-contexts/cancel.

Burn details

Both flows use the same Burn payload:

Labels

Labels in mint and burn workflows require all involved parties to use Registry App version 0.14.2 or later.
The optional label of a burn is the sender account ID (cip-112/sender.id) in the burn metadata. It identifies the holder’s account that the burn is booked from. See Accounts and Labels.
  • Through the API, input holdings may have any label. Holdings with a different label are faded in to the sender account, see Input Holdings and Fade-in. The dApp UI only selects input holdings that match the label.
  • Any change is left on the holder’s sender account. In a burn request, the locked holding also gets the sender account ID as its label.
  • The sender account is part of the Burn payload, so it is set by the party that proposes the burn:
    • Burn request: the holder sets the sender account when requesting the burn.
    • Burn offer: the sender account is taken from the offer. BurnOffer_Accept doesn’t take a label, so the holder can’t change it when accepting.
In the API, add the sender account to the burn metadata:
  • If no sender account ID is set, the holder’s basic account with account ID "" is used.

Troubleshooting

Next steps