DrandClient

constructor(baseUrl: String = "https://api.drand.sh")

Creates a client using HTTP transport with the specified base URL.

Parameters

baseUrl

The base URL of the drand API endpoint (default: https://api.drand.sh)


constructor(api: DrandApi, cache: Cache<String, ChainInfo> = Cache(), verifier: BeaconVerificationService = BeaconVerificationService())

Parameters

api

The underlying API implementation for network transport (default: HTTP)

cache

Thread-safe cache for storing chain information to reduce network calls

verifier

Service for cryptographic verification of beacons