ChainId
Type-safe chain identifier following CAIP-2 format.
Provides compile-time type safety for chain IDs, preventing typos and invalid values. Supports both predefined chain IDs and custom chain IDs for extensibility.
Example Usage:
// Predefined chain IDs
val chainId = ChainId.Algorand.Testnet
val client = AlgorandBlockchainAnchorClient(chainId.toString(), options)
// Custom chain IDs
val customChain = ChainId.Custom("algorand:custom", "algorand")Content copied to clipboard
String Conversion: Chain IDs can be converted to strings using toString() for backward compatibility with existing APIs.