# VRF on Robinhood

Robinhood has no usable randomness of its own. Its `block.prevrandao` returns a constant, and Robinhood's docs tell contracts to use a VRF oracle instead. The oracle those docs name, Chainlink VRF, is not deployed on Robinhood. Randoo, D20DAO and RH-VRF are. Randoo answers both Chainlink VRF v2.5 and D20DAO calls, so a consumer written for either runs on it with one address changed.

## Why prevrandao and blockhash do not work

Robinhood's [Differences from Ethereum](https://docs.robinhood.com/chain/differences-from-ethereum) page says `block.prevrandao` and `block.difficulty` "return a constant value on Robinhood Chain and are not a source of randomness", and that `blockhash(n)` is only reliable for recent blocks. Every block we read on 2026-11-25 returned 1, and on Ronin and Base `prevrandao` is a public Ethereum value instead ([Is block.prevrandao random?](/docs/prevrandao)). On Robinhood, `blockhash(n)` takes Ethereum block numbers but returns hashes of Robinhood blocks. For the numbers that `block.number` skips, it returns a hash that has been public for 51 minutes ([block.number on Robinhood](/docs/block-number)). Any roll that hashes those values gives the same answer to everyone who can read the chain, including the player deciding whether to send the transaction.

A VRF fixes this. An oracle signs an input that nobody chose, the signature is the random number, and the contract checks the proof before it uses the number.

## VRF providers on Robinhood

Chainlink's [v2.5 supported networks](https://docs.chain.link/vrf/v2-5/supported-networks) do not include Robinhood. Prices below are in ETH, read on Robinhood mainnet on 2026-11-11 at block 111,886,130, with ETH at $2,094.

| | Randoo | D20DAO | RH-VRF |
| --- | --- | --- | --- |
| Coordinator | `0xC66eB2e7EE91145875000Ad46B55600000000001` | `0xEc8b95B168c87294c45727Bd2ac903d09316D132` | `0x1637195a674630E475ACD18B3D27b13C0EefDac1` |
| Request interfaces | Ronin VRF (`requestRandomSeed`), Chainlink VRF v2.5 wrapper (`requestRandomWordsInNative`) and D20DAO's `ID20VRF` (`requestRandomness`) | `requestRandomness` on `D20VRFConsumer` | Its own, from a prepaid account |
| Payment | Per request in ETH; unused gas refunded | Per request in ETH, gas included | Prepaid account in ETH, charged per request |
| Cost per request | 0.0000195 ETH (about $0.041) including gas: a $0.035 service fee plus the gas the fulfillment used, averaged over Randoo's three Robinhood fulfillments at blocks 111,912,975 to 111,913,030 | 0.000025 ETH (about $0.052) from `quoteFee` at 100,000 and at 250,000 callback gas | 0.00016 ETH (about $0.34) from `price(1, 150000)`: one word, 150,000 callback gas |
| How the number is made | ECVRF proof from Randoo's oracle key, checked on-chain by a Chainlink-format `VRF.sol` | drand beacon round | Threshold BLS signature, 5 of 9 operators, per [rh-vrf.com](https://rh-vrf.com/docs) |

[Randoo vs D20DAO](/docs/d20dao#randoo-vs-d20dao) adds time to fulfill, what each random number depends on, and what happens to a request nobody fulfills.

Randoo's request quote is higher than its cost. The quote prepays gas for the fulfillment, and the coordinator returns what the fulfillment does not use. [Fees and failures](/docs/gas) has the formula.

## Using Randoo on Robinhood

The coordinator is `0xC66eB2e7EE91145875000Ad46B55600000000001` on Robinhood (chain ID 4663) and on Robinhood Testnet (chain ID 46630). It is the same address on every network.

| Your code | Read |
| --- | --- |
| Written for Chainlink VRF v2.5, as Robinhood's docs suggest | [Migrate from Chainlink VRF v2.5](/docs/chainlink-wrapper): point the wrapper address at `0xC66eB2e7EE91145875000Ad46B55600000000001` and pay in ETH |
| A D20DAO consumer | [Migrate from D20DAO](/docs/d20dao): deploy it with `0xC66eB2e7EE91145875000Ad46B55600000000001` as its coordinator; nothing else changes |
| No VRF yet | [Quickstart](/docs/quickstart) |

Declare the network gas price, `tx.gasprice` in the requesting transaction. A request priced below the chain's current gas price waits until the price falls.

To see it work first, roll a free seed on Robinhood Testnet in the [playground](/playground?network=robinhood-testnet), then check it on [/verify](/verify). The playground's Robinhood race runs Randoo and D20DAO in the same transaction.

_Updated 2026-11-26._
