API Reference
Index
Constructors
Description
Constructors
Oracle vrf initialization
Functions
Description
randomnessRequest
Make a request to generate random numbers
fulfillRandomness
VRF Oracle will call back when receiving valid VRF proof data
Constructors
�Funtions
randomnessRequest
_seed : a random number provided by the caller
_data : the result of callbackAddress and callbackFunc after encoding
callbackAddress: smart contract address receive random number
callbackFunct : hen a function is called, the first 4 bytes of
calldata
specifies which function to call.
fulfillRandomness
reqId: request id generated when calling function randomnessRequest
_data: includes callbackAddress and callbackFunc after encode
v,r,s: proof vrf
Last updated