For the complete documentation index, see llms.txt. This page is also available as Markdown.

Developer quick start

What you will do

  1. Prepare a supported Rust environment.

  2. Check out a pinned cbtc-lib release.

  3. Configure Canton and authentication values without committing secrets.

  4. Run the balance-check example.

  5. Verify that the response belongs to the intended party.

This read-only outcome is intentionally smaller than minting or transferring CBTC. It verifies the core connection before you create accounts or submit ledger changes.

Prerequisites

  • Access to an approved development or test environment.

  • A supported Canton participant and party.

  • Approved authentication credentials for that party.

  • Git and a compatible Rust toolchain.

  • Network access to the Canton participant and identity provider.

  • A secure local method for storing environment values.

1. Check out the reviewed source

Use an approved release tag. Do not use main in production instructions.

2. Create local configuration

Fill only the values required for the balance check:

  • Canton Ledger API host.

  • Target Canton party.

  • Approved identity-provider and client values required by the selected authentication flow.

  • Any environment selection required by the reviewed example.

Do not paste real credentials into documentation, issue reports, shell history, or source control.

3. Build the example

A successful build confirms that the selected Rust toolchain can resolve the pinned CBTC and shared Canton dependencies.

4. Run the balance check

Expected result

The command should:

  • Authenticate successfully.

  • Query active CBTC holdings for the configured party.

  • Report the party’s balance and holding count, including a valid zero-balance result where applicable.

  • Exit without exposing access tokens or passwords.

Output fields vary by supported release and environment. Verify the response belongs to the intended party, and never substitute a fabricated balance or contract identifier when testing an integration.

If the check fails

Symptom
Check
Next action

Authentication fails

Provider URL, realm or audience, client, grant type, secret, token claims

Use the canonical Authentication guide and confirm the party authorization.

Connection fails

Ledger host, DNS, TLS, proxy, and network access

Verify the participant endpoint with the environment owner.

No holdings are returned

Target party, environment, and whether zero balance is valid

Confirm the configured party before attempting a state-changing operation.

Build or type errors

Checked-out tag, Rust toolchain, lockfile, and shared library access

Return to the approved compatibility matrix.

Response parsing fails

Canton and library compatibility

Capture sanitized output and escalate with the version set.

Next steps

After the balance check passes, choose one task:

Technical sources

Next step

👉 Build your first workflow: Transfer and receive CBTC.

Last updated