getChainInfo

suspend fun getChainInfo(beaconId: String): Result<ChainInfo>

Fetches chain configuration information, with automatic caching.

Chain information is cached per beacon ID to avoid redundant network calls. The cache is thread-safe and persists for the lifetime of this client instance.

Return

Result containing ChainInfo on success, or DrandError on failure

Parameters

beaconId

The beacon identifier (e.g., "default", "quicknet")