- CBTC
- Guides
- Mint CBTC
Mint CBTC
CBTC overview · CBTC environments and prerequisites
Outcome
Section titled “Outcome”Create a CBTC deposit account, obtain its Bitcoin address, deposit Bitcoin, and verify that the corresponding CBTC becomes available to the intended Canton party.
Before you start
Section titled “Before you start”- Complete the CBTC environment preflight.
- Use a supported Canton participant and authenticated party.
- Install and validate the CBTC DAR packages required for minting.
- Confirm that the party has the required Minter credential.
- Configure the approved BitSafe API for the selected environment.
- Use a pinned
bitsafe-token-librelease and compatible shared Canton libraries. - Confirm the approved Bitcoin network and test-asset source.
Minting has additional prerequisites beyond ordinary CBTC transfers. Do not begin from the Send CBTC setup alone.
1. Confirm the Minter credential
Section titled “1. Confirm the Minter credential”Use the credential example or the approved application interface to:
- Check whether the party already holds the required credential.
- Find an eligible pending credential offer if none exists.
- Accept only the intended offer through the approved flow.
- Record the resulting credential contract identifier securely for the current operation.
Do not copy a real credential contract identifier into documentation or support tickets.
2. Retrieve current account rules
Section titled “2. Retrieve current account rules”Retrieve the deposit and withdrawal account rules from the approved BitSafe service. Verify that:
- The response belongs to the selected environment.
- The package and template references match the approved DAR set.
- The returned rules are current for the intended party and operation.
Treat rules as runtime data. Do not hard-code them into a long-lived integration.
3. Create a deposit account
Section titled “3. Create a deposit account”Create a deposit account using:
- The authenticated Canton party.
- The approved Minter credential.
- The current deposit-account rules.
- A unique command or request identifier where the interface supports one.
Verify that the resulting account is owned by the intended party before continuing.
4. Obtain the Bitcoin deposit address
Section titled “4. Obtain the Bitcoin deposit address”Request the Bitcoin address associated with the deposit account through the approved BitSafe API.
Before sending Bitcoin:
- Confirm the Bitcoin network.
- Confirm the address belongs to the expected deposit account.
- Confirm the address format is valid for that network.
- Confirm whether addresses are reusable or single-purpose.
- Record the account and address association in the integration’s reconciliation data.
5. Deposit Bitcoin
Section titled “5. Deposit Bitcoin”Send the approved test amount to the verified address. Use the transaction identifier to monitor Bitcoin confirmation state.
6. Monitor the mint lifecycle
Section titled “6. Monitor the mint lifecycle”Track the deposit account and CBTC state until the approved completion condition is met. Monitor:
- Bitcoin deposit detected.
- Required confirmation state reached.
- Verification or attestation state.
- Mint submitted on Canton.
- CBTC holding created for the intended party.
- Terminal failure or escalation state.
7. Verify the result
Section titled “7. Verify the result”A successful mint should be verified in two places:
- The deposit workflow shows the approved completed state.
- The intended Canton party’s CBTC balance or holdings increase by the expected amount.
Reconcile the Bitcoin transaction, deposit account, mint result, Canton update, and resulting holdings without exposing secrets.
Source example
Section titled “Source example”The repository includes a guided example:
cargo run --example cbtc_credentialscargo run --example cbtc_mint_flowUse these commands only with the reviewed source tag and an approved environment. Link to the source for exhaustive implementation details rather than duplicating the full code.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Check | Safe next action |
|---|---|---|
| No eligible credential | Party, environment, registrar, and pending offers | Stop and use the approved credential-request path. |
| Account rules unavailable | BitSafe API, authentication, environment, and service status | Do not reuse cached rules unless the support policy permits it. |
| Deposit account creation fails | DAR compatibility, credential, party rights, rule identifiers, and Canton response | Capture sanitized identifiers and the version set. |
| Bitcoin deposit is not detected | Network, address, transaction identifier, and confirmation state | Do not send a second deposit until the first transaction is reconciled. |
| Bitcoin confirms but CBTC is absent | Verification state, mint status, Canton update, and target party | Escalate with sanitized account, transaction, and update identifiers. |
Technical sources
Section titled “Technical sources”Related pages
Section titled “Related pages”- Install and validate CBTC DARs
- CBTC authentication
- CBTC errors, retries, and troubleshooting
- CBTC compatibility and release notes
Next step
Section titled “Next step”Prepare for failures safely: CBTC errors, retries, and troubleshooting.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: