Unlocking Free VRFs on Solana
Product Updates

Unlocking Free VRFs on Solana

MagicBlock
MagicBlock
@ magicblock

Today, we’re making a major update to how developers access randomness on Solana: All VRF requests on Ephemeral Rollups are now completely free. 

At MagicBlock, we believe that infrastructure shouldn’t limit imagination. When basic tools like randomness aren’t widely available, it constrains possibilities across verticals like Defi, Gaming,  DePIN and more.

Solana is already the best place to Build Everything Onchain, and free, open-source, audited, verifiable randomness pushes that frontier forward.

Want to see how fast our ER VRF is? Try out a demo here.

Why this matters

Randomness is a foundational primitive of software systems. Right now, a single VRF call on Solana can cost up to 0.002 SOL ($0.26). This is a prohibitive cost to do something as simple as rolling a dice. Almost all experiences on Solana design around this fact, shrinking the design space available to builders. 

If your contract makes even just one VRF request a minute, that adds up to 86 SOL/month (~11k) at $130 SOL (without  even considering base chain transaction and priority fees to actually land your transaction). This is completely unviable for early-stage teams, forcing developers to cap randomness usage or avoid it altogether. 

Try out this simulator yourself here

To reach a future where we truly build everything onchain, access to randomness needs to be a default, universally available building block. 

How it works

  1. Our VRF starts with a “Request for randomness”.
  2. Your program will CPI into the MagicBlock VRF program and append a request to the queue.
  3. Once your randomness request is in the queue, an oracle will release the request and perform the randomness computation.
  4. Upon completion, it returns the result and proof to the MagicBlock VRF program. After verifying the proof, the VRF program will callback into your program into a predefined function that will “consume” the randomness.

Since the entire request and verification pipeline executes on our gasless Ephemeral Rollups, we’re able to offer the same VRF proofs and guarantees without costs. 

VRF requests that settle directly on Solana still cost 0.0005 SOL, which primarily covers the costs of landing the callback transaction. 

What it unlocks

By removing per-request fees, we’re unlocking new categories that were previously economically impossible:

  • Realtime PvP games with thousands of random rolls per match
  • Truly decentralized onchain casinos where the house is the contract
  • Dynamic NFTs whose traits evolve over time
  • Autonomous worlds with persistent entropy 

Get Started Today: https://docs.magicblock.gg/pages/verifiable-randomness-functions-vrfs/how-to-guide/quickstart

MagicBlock’s VRF Program is Open-Source and Audited by Zenith.