Frequently-Asked Questions
How can I get VRF on an unsupported network?
anyrand is completely open-source! If your network is not in our Supported Networks list, you are free to deploy our contracts which can be found on our GitHub. Alternatively, we'd be happy to provide deployment services and set your network up with our VRF keeper for a fee. Just give us a shout on Twitter/X @anyrandVRF!
I'm running into a problem! Where can I get support?
If you are running into a technical issue with one of our deployed contracts, please join the anyrand VRF Developer Support Telegram group!
How long does it take for the randomness response to be delivered onchain?
The response time depends on 2 things:
- The drand beacon's period; and
- The block time of the chain.
When making an onchain request for randomness, you must specify the deadline, which determines which beacon round your randomness is derived from. The calculation for this is show below.
if (
(deadline < genesisTimestamp) ||
deadline < (block.timestamp + period)
) {
revert InvalidDeadline(deadline);
}
uint256 delta = deadline - genesisTimestamp;
uint64 round = uint64((delta / period) + ((delta % period) > 0 ? 1 : 0));