- BETH
- Get started
- Environments and prerequisites
Environments and prerequisites
Before you start
Section titled “Before you start”Choose the BETH operation you need to perform before configuring an environment. Balance queries, transfers, minting, redemption, batch distribution, and UTXO management do not all share the same prerequisites.
Choose an environment
Section titled “Choose an environment”| Environment | Use it for | Before proceeding |
|---|---|---|
| Development | Local development and early workflow testing | Confirm the current participant, registry, BitSafe API, credential, and test-asset setup. |
| Testnet | Integration testing against shared infrastructure | Confirm endpoint ownership, faucet availability, reset policy, and differences from production. |
| Mainnet | Production workloads | Use only an Engineering-approved compatibility row, production credentials, monitoring, recovery procedures, and security review. |
Obtain current endpoints, party identifiers, and package identifiers from the maintained environment reference. Check its owner and last-verified date before use.
Ethereum bridge contracts
Section titled “Ethereum bridge contracts”Canton Devnet and Testnet both use Ethereum Sepolia, with a separate bridge contract for each. Canton Mainnet uses Ethereum Mainnet.
| Environment | Ethereum network | Bridge contract |
|---|---|---|
| Devnet | Sepolia (chain ID 11155111) | 0xaAafDA111EAf5a49359e5C15B9B58DED7313f979 |
| Testnet | Sepolia (chain ID 11155111) | 0x5D60b6C3eC2FD5E4227AE0008BABE95Be86dD172 |
| Mainnet | Ethereum (chain ID 1) | 0xb5d425d678B10949dD0f7bB0dd0427C47451D57E |
Each address is an upgradeable proxy, so the address stays the same when the contract code is upgraded. bitsafe-token-lib v0.6.0 uses these addresses, and the ENVIRONMENT value selects one.
Core prerequisites
Section titled “Core prerequisites”All BETH development paths require:
- Access to a supported Canton participant.
- A Canton party authorized for the intended operation.
- A supported authentication configuration and a safe method for storing credentials.
- A compatible Rust toolchain when using the current Rust library.
- A pinned
bitsafe-token-librelease and compatible sharedcanton-libcrates. - Network access to the required Canton and external service endpoints.
- A test plan that states the expected ledger and application result.
Operation-specific prerequisites
Section titled “Operation-specific prerequisites”| Operation | Additional prerequisites |
|---|---|
| Check balances or contracts | Ledger host, authenticated party, and compatible query interface. |
| Send, receive, accept, reject, or cancel | Digital Asset Registry Utility components, receiver party details, required transfer context, and sufficient holdings. |
| Mint BETH | BitSafe API access, required Minter credential, compatible BETH DAR packages, account rules, and an Ethereum deposit flow. |
| Redeem BETH | BitSafe API access, required Minter credential, compatible BETH DAR packages, sufficient holdings, and a valid Ethereum destination address. |
| Batch distribution | Transfer prerequisites plus recipient input validation, limits, callbacks or result capture, and reconciliation. |
| UTXO management | Current holdings, approved split or consolidation policy, and a clear reason for changing the holding layout. |
Install compatible components
Section titled “Install compatible components”The examples on this page use:
bitsafe-tokenpackage version0.6.0.canton-libdependencies pinned tov0.13.0.- A Canton API client generated from Canton
3.6.1specifications.
For deployment, use the approved compatibility matrix for the BitSafe token library, shared Canton library, Canton version, DAR packages, API behavior, and target environment.
Configure safely
Section titled “Configure safely”Configuration falls into four groups:
- Canton connection: ledger host and party identity.
- Authentication: approved identity-provider host, realm or audience, client identity, and secret-handling method.
- BETH network: the
ENVIRONMENTvalue (devnet,testnet, ormainnet). It selects the Decentralized Party, the registry, the BitSafe API, and the Ethereum bridge for the target network. - Mint and redeem: BitSafe API selection and Ethereum destination details where needed.
Never commit .env files, tokens, passwords, client secrets, party-specific credentials, or production addresses. Use placeholders in public examples and document how readers obtain real values through approved channels.
Preflight checklist
Section titled “Preflight checklist”- The target environment is approved for the intended test.
- The Canton participant is reachable.
- Authentication succeeds for the intended party.
- The pinned library set builds successfully.
- Required DAR packages are installed and validated.
- Registry and BitSafe services required by the operation are reachable.
- The party has the required credential and holdings.
- The expected result and rollback or recovery path are documented.
- Logs and identifiers needed for support can be collected without exposing secrets.
Verify the setup
Section titled “Verify the setup”Start with a read-only operation such as a connection or balance check. A successful preflight should confirm:
- Authentication completed.
- The intended party was used.
- The ledger query returned a valid response.
- The application can parse the response with the pinned library set.
Continue to a state-changing operation only after the read-only check passes.
Technical sources
Section titled “Technical sources”bitsafe-token-libv0.6.0bitsafe-token-libenvironment example- BETH DAR guidance
canton-libv0.13.0- BETH network values in
bitsafe-token-libv0.6.0
Related pages
Section titled “Related pages”- BETH developer Quick Start
- Install and validate BETH DARs
- BETH authentication
- Mint BETH
- Redeem BETH
- Transfer and receive BETH
- BETH compatibility and release notes
Next step
Section titled “Next step”Verify your setup: BETH developer Quick Start.
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: