Verifiable Random Function (VRF)

These documents are rapidly changing, be sure to consult the documentation often through your development lifecycle.
On-chain and off-chain applications connected to gaming, lottery and sampling rely heavily on entropy. It could be a dynamic NFT mint, loot boxes, random opponent pairing, randomized spawn environments, an in-game item upgrade, a lottery or a selection of contributors for an IDO. Randomness in applications is supposed to ensure fair and equal possibilities for participants. Random Number Generation (RNG) has to be unbiased and tamper proof to be called fair; the process cannot be influenced or controlled by any centralized entity.
Blockchain-based verifiable random functions (VRFs) enable the generation of numbers that are as good as random (pseudorandom), and can be (publicly) verified cryptographically. Pseudorandomness guarantees both unpredictability and fairness, whereas tamper-proofness is guaranteed by their public verifiability.

Supra VRF

Supra’s VRF can provide the exact properties required for a random number generator (RNG) to be fair with tamper proof, unbiased and cryptographically verifiable random numbers to be employed by smart contracts.
Unbiased and Unpredictable - The threshold signature of the nonce, client provided input and blockhash of the transaction that requests the randomness (which is unknown at the time of request) is used as the seed for the RNG function.
Tamper proof and Verifiable - Cryptographic proof will be provided to verify that random numbers were generated and communicated with fidelity.
SUPRA VRF Architecture
Supra distributed VRF architecture overview

Available Networks

Please refer to the Network Addresses for the networks supported.

Accessing Supra VRF

Supra VRF V1 is permissionless and only available on testnets. VRF V2 comes with a subscription model where a user can manage their own gas expenses for multiple consumer smart contracts. Please refer to the VRF Developer Guides for a step-by-step explanation of how to access Supra’s VRF services. Please register with our Supra Network Activate Program(SNAP) to access Supra VRF for free in mainnets.