Hypr Docs
  • Introduction
    • What is Hypr Network?
    • Zero-Knowledge Proofs
  • Tokenomics
  • Hypr Growth Ecosystem Fund
  • Hypr Network Roadmap
  • Developer SDKs
    • Hypr Cards SDK
      • Hypr Cards SDK Usage Example
    • Random Number Generator
    • The Anemoi Precompile Contract
  • Tools
    • Thirdweb
  • Reference
    • Network Settings
    • Contracts
    • Bridge
    • MetaMask
    • Deploying Smart Contracts
  • Apps
    • HyprJack
Powered by GitBook
On this page
  • The problem we solved
  • The Solidity APIs for The Randao Wrapper VRF Contract
  1. Developer SDKs

Random Number Generator

The Randao Wrapper VRF Contract

PreviousHypr Cards SDK Usage ExampleNextThe Anemoi Precompile Contract

Last updated 1 year ago

The Randao Wrapper VRF Contract is a smart contract interface that can be used to get multiple random numbers.

The problem we solved

Some smart contract applications need to get random numbers, but currently, most methods of generating random numbers are unsafe on-chain. The Randao Wrapper VRF Contract provides an interface that can be used to get random numbers safely and these random numbers are generated by multiple random productors safely on-chain. These numbers are completely random and cannot be predicted.

The Solidity APIs for The Randao Wrapper VRF Contract

We provide interfaces compatible with Chainlink VRF for generating random numbers. These functions can be invoked via Solidity API. To view the details, please refer to the Solidity Interface of RandaoWrapper on Github:

API Name
Description

charge()

Charge some fee to randao wrapper that can be used to pay bounty when some random numbers generated are successful .

requestRandomWords()

Send a request for random numbers generation.

rawFulfillRandomWords()

Random generation response callback after generating successfully.

https://github.com/HyprNetwork/randao-wrapper/blob/master/contracts/interface/IRandaoWrapper.sol