API Reference
Last updated
Last updated
Description | |
---|---|
Description | |
---|---|
_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.
reqId: request id generated when calling function randomnessRequest
_data: includes callbackAddress and callbackFunc after encode
v,r,s: proof vrf
Constructors
Oracle vrf initialization
randomnessRequest
Make a request to generate random numbers
fulfillRandomness
VRF Oracle will call back when receiving valid VRF proof data