CantonClientConfiguration
data class CantonClientConfiguration(val host: String, val port: Int = 6865, val useTls: Boolean = true, val accessTokenProvider: suspend () -> String? = null, val tlsTrust: TlsTrust = TlsTrust(), val retryPolicy: RetryPolicy = RetryPolicy.DEFAULT)
Configuration for connecting to a Canton participant's Ledger API.
Properties
Link copied to clipboard
produces a JWT access token for the Ledger API's authorization: Bearer <token> header, or null for unauthenticated (development) ledgers. May suspend — an OIDC refresh belongs here directly. The client caches the token until shortly before its exp claim and re-invokes the provider only then, or when the server rejects a connection for authentication reasons — so the provider must return a current token when asked again, never a stored copy of the one that just failed.
Link copied to clipboard
backoff applied to retryable ledger errors.