GelatoVRFConsumer
contract, there’s an event named RequestedRandomness
. When a randomness request is made, this event is emitted.
The RequestedRandomness
event serves as a beacon, signaling the Gelato VRF system about the need for a random number. It contains 2 parameters:
round
explicitly signifies which Drand round is targeted to fulfill the randomness,data
offers versatility for developers, it can be used to attach any supplementary information or context about the randomness request.RequestedRandomness
event and to fetch the required random number from Drand.
fulfillRandomness
function in the requesting contract.
randomness
parameter to the function. Additionally, the data
parameter can carry any supplementary data provided during the original request or by the Gelato VRF.