- CHYPE
- Get started
- Developer quick start
Developer quick start
CHYPE overview · CHYPE environments and prerequisites
What you will do
Section titled “What you will do”- Prepare a supported Rust environment.
- Check out a pinned
bitsafe-token-librelease. - Configure Canton and authentication values without committing secrets.
- Run the balance-check example.
- Verify that the response belongs to the intended party.
This read-only outcome is intentionally smaller than minting or transferring CHYPE. It verifies the core connection before you create accounts or submit ledger changes.
Prerequisites
Section titled “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
Section titled “1. Check out the reviewed source”git clone https://github.com/DLC-link/bitsafe-token-lib.gitcd bitsafe-token-libgit checkout v0.6.0Use an approved release tag. Do not use main in production instructions.
2. Create local configuration
Section titled “2. Create local configuration”cp .env.example .envFill only the values required for the balance check:
- Canton JSON Ledger API host, including the API path.
- Target Canton party.
- Approved identity-provider and client values required by the selected authentication flow.
- The
ENVIRONMENTvalue:devnet,testnet, ormainnet. - The
ASSETvalue:chype.
Do not paste real credentials into documentation, issue reports, shell history, or source control.
3. Build the example
Section titled “3. Build the example”cargo build --example check_balanceA successful build confirms that the selected Rust toolchain can resolve the pinned CHYPE and shared Canton dependencies.
4. Run the balance check
Section titled “4. Run the balance check”cargo run --example check_balanceExpected result
Section titled “Expected result”The command should:
- Authenticate successfully.
- Query active CHYPE holdings for the configured party. The query keeps only holdings whose instrument ID and admin both match the CHYPE instrument.
- Report the party’s balance and holding count, including a valid zero-balance result where applicable.
- Exit without exposing access tokens or passwords.
If the check fails
Section titled “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
Section titled “Next steps”After the balance check passes, choose one task:
- Transfer and receive CHYPE.
- Create a deposit account and follow Mint CHYPE.
- Create a withdrawal account and follow Redeem CHYPE.
- Use CHYPE SDK, API, and integration reference to integrate balance and transfer behavior into a wallet or application.
Technical sources
Section titled “Technical sources”Related pages
Section titled “Related pages”- Install and validate CHYPE DARs
- CHYPE authentication
- Mint CHYPE
- Redeem CHYPE
- Transfer and receive CHYPE
- CHYPE SDK, API, and integration reference
- CHYPE errors, retries, and troubleshooting
Next step
Section titled “Next step”Build your first workflow: Transfer and receive CHYPE.
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: