next

abstract suspend fun next(chainHash: String): Result<RandomnessBeacon>

Waits for and returns the next randomness beacon (long polling).

This is a long-polling endpoint that blocks until the next beacon is produced. Useful for real-time applications that need beacons as soon as they're available.

Return

Result containing the next RandomnessBeacon when available, or DrandError on failure

Parameters

chainHash

The chain hash (hex-encoded, 64 characters, no "0x" prefix)