You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2026. It is now read-only.
We should implement a fallback to other API endpoints when the primary one is down.
A possibly better & easier alternative is to use FastestNodeClient, see drand-client docs:
// if you're happy to get randomness from many APIs and automatically use the fastest// you can construct a `FastestNodeClient` with multiple URLs// note: the randomness beacons are cryptographically verifiable, so as long as you fill// in the `chainVerificationParams` in the options, you don't need to worry about malicious // providers sending you fake randomness!consturls=['https://api.drand.sh','https://drand.cloudflare.com'// ...]constfastestNodeClient=newFastestNodeClient(urls,options)// don't forget to start the client, or it won't periodically optimise for the fastest node!fastestNodeClient.start()