VRFV2WrapperInterface
Methods
calculateRequestPrice
Calculates the price of a VRF request with the given callbackGasLimit at the currentblock.
This function relies on the transaction gas price which is not automatically set duringsimulation. To estimate the price at a specific gas price, use the estimatePrice function.
Parameters
_callbackGasLimit
uint32
is the gas limit used to estimate the price.
Returns
_0
uint256
undefined
estimateRequestPrice
Estimates the price of a VRF request with a specific gas limit and gas price.
This is a convenience function that can be called in simulation to better understandpricing.
Parameters
_callbackGasLimit
uint32
is the gas limit used to estimate the price.
_requestGasPriceWei
uint256
is the gas price in wei used for the estimation.
Returns
_0
uint256
undefined
lastRequestId
Returns
_0
uint256
the request ID of the most recent VRF V2 request made by this wrapper. This should only be relied option within the same transaction that the request was made.
Last updated