CantonClient

constructor(channel: ManagedChannel, callCredentials: CallCredentials? = null, retryPolicy: RetryPolicy = RetryPolicy.DEFAULT, accessTokenProvider: suspend () -> String? = null)


constructor(configuration: CantonClientConfiguration)

Opens an OkHttp-backed gRPC channel to CantonClientConfiguration.host — TLS with the configured TlsTrust unless useTls is off — and takes the retry policy and access-token provider from the same configuration. The client owns the channel it built: close shuts it down.