Alephium
dApps built on Alephium can leverage DIA oracles to consume verifiable & decentralized random numbers on-chain, generated by the drand protocol.
Last updated
dApps built on Alephium can leverage DIA oracles to consume verifiable & decentralized random numbers on-chain, generated by the drand protocol.
Last updated
Alephium Mainnet
Alephium Testnet
The oracle uses randomness from the quicknet mainnet to provide randomness on Alephium.
To consume randomness data, you’ll need to invoke the getLastRound
method on the oracle contract. It will return the round ID of the latest update.
Using this round ID, you can call getRandomValue
and will receive a return value of that randomness, the round ID and the BLS signature from the drand API.
Note that round IDs are used round-robin and will repeat after 1000 iterations.
Below is the DIARandomOracle
contract implementation in :
You can learn more .
For developer assistance, connect with the DIA team directly on or .
Developers seeking other specialized, production-grade oracle with tailored data feeds and configurations can initiate the request by .