A client to the drand randomness beacon network.
npm install drand-client
A JavaScript client to the drand randomness beacon network.
- Install
- Usage
- Browser
- Deno
- Node.js
- Contribute
- License
- Limitations
In the browser or Deno you can grab and use the client from a CDN
e.g. https://cdn.jsdelivr.net/npm/drand-client/index.js.
In Node.js or when using a bundler, install with:
``sh`
npm install drand-client
Typescript types are included and don't need installed separately.
The drand-client contains HTTP implementations, but other transports can be supported by implementing the DrandNodeChain
, and ChainClient interfaces where appropriate.
`html
`
Usage in Deno is the same as the browser, minus the HTML