Introduction to Pythia VRF


Overview

Pythia VRF is a provably fair and verifiable random number generator that enables smart contracts to access random values without compromising security or usability. For each request, Pythia VRF generates one or more random values and cryptographic proof of how those values were determined. This process ensures that results cannot be tampered with or manipulated by any single entity including oracle operators, miners, users, or smart contract developers.

Pythia VRF can be used to build reliable smart contracts for any applications that rely on unpredictable outcomes. Some of such are:

  • Blockchain games.
  • NFT launchpads and marketplaces.
  • Random selection of users or resources. For example, randomly selecting the winner in social airdrops.

How it works

Pythia VRF offers a subscription based system, In which users create a subscription account and fund its balance with network's native token. Users can then connect multiple consuming contracts to the subscription account. When the consuming contracts request randomness, the transaction costs are calculated after the randomness requests are fulfilled and the subscription balance is deducted accordingly.

The subscription system allows users to fund requests for multiple consumer contracts from a single subscription. Depends on the need and preference users may also prefer to have separate subscription for each of their cosumer contracts.

Be sure to review your contracts with the security considerations in mind.