Gelato VRF and Trustworthy Randomness

Applications of Gelato VRF

image.png

Steps to Set Up Gelato VRF

  1. Set Up Development Environment: Install either Foundry or Hardhat.
  2. Install Gelato VRF Contracts: Use specific commands for Hardhat or Foundry.
  3. Inherit GelatoVRFConsumerBase Contract: Incorporate it into your contract.
  4. Request Randomness: Call _requestRandomness() function.
  5. Implement Callback Function: Define how your contract handles the randomness response.
  6. Include dedicated msg.sender: Essential for contract security and function.

Quick Start

In order to get your VRF up and running you will need to first make your contract VRF Compatible.

Step 1: Set Up Your Development Environment

Ensure you have either Foundry or Hardhat set up in your development environment.