VRFCoordinatorV2_5

Verified contract

Active on Ethereum with 15,829 txns
Deployed by via 0xd9dc4ec7 at 19584854
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
Native
Value $188,465.35
ERC-20
Value $32,006
0xd206b9736d9a43503b339af1ca55ee2ef73fc50835877473d47f99bd67a4135e
0x3fcce8f5fa76128a363868342ea54d1d4279537f5e98e6b5cd5a04d43b829560
0x6dac92d57b062fe0564ac70bcaaad8e3a192faee1a73a7bf1d4bfbbc9b28687d
0x1ff4f795fee11459051763f12d3b67a8580758b6ada2199fce61b715f7e31bf2
0x30ac6cbcd08e624769ffd7a580d22812b7758a8ddbfe82288594f55072d74fdb
0xde1a7f63bdb6833778b134cb71bca745cb536f7b04b8953fc53964c040af54ed
0x01cd540e7f1ee2b61e2e4e326e4376f8829f9fa3220d4001b79ed47419a7c67c
0x48e28c1d2bfa0cae1e1463e0e3192b5f9267270160cc68430cae99a5ef736ae3
0xb400c1c8a3d33f904805d17f051750f880222046c42fd51f81a53ec63c5a4e60
0xd2a308cfdc8dcdf3a09a0e18f433f18ba537aaf2715abf4be415e7ff585a5f01

Functions
Getter at block 21183942
BLOCKHASH_STORE(view returns (address)
0xaa25602bccf3bbde8e2f0f09f3a1f6def54593c0
LINK(view returns (address)
0x514910771af9ca656af840dff83e8264ecf986ca
LINK_NATIVE_FEED(view returns (address)
0xdc530d9457755926550b59e8eccdae7624181557
MAX_CONSUMERS(view returns (uint16)
100
MAX_NUM_WORDS(view returns (uint32)
500
MAX_REQUEST_CONFIRMATIONS(view returns (uint16)
200
owner(view returns (address)
0x21f73d42eb58ba49ddb685dc29d3bf5c0f0373ca
s_config(view returns (uint16 minimumRequestConfirmationsuint32 maxGasLimitbool reentrancyLockuint32 stalenessSecondsuint32 gasAfterPaymentCalculationuint32 fulfillmentFlatFeeNativePPMuint32 fulfillmentFlatFeeLinkDiscountPPMuint8 nativePremiumPercentageuint8 linkPremiumPercentage)
(minimumRequestConfirmations=3, maxGasLimit=2500000, reentrancyLock=false, stalenessSeconds=172800, gasAfterPaymentCalculation=38900, fulfillmentFlatFeeNativePPM=0, fulfillmentFlatFeeLinkDiscountPPM=0, nativePremiumPercentage=24, linkPremiumPercentage=20)
s_currentSubNonce(view returns (uint64)
48
s_fallbackWeiPerUnitLink(view returns (int256)
5354747932930759
s_totalBalance(view returns (uint96)
2353382307617675797407
s_totalNativeBalance(view returns (uint96)
58540521277798677360
Read-only
getActiveSubscriptionIds(uint256 startIndexuint256 maxCountview returns (uint256[] ids)
getSubscription(uint256 subIdview returns (uint96 balanceuint96 nativeBalanceuint64 reqCountaddress subOwneraddress[] consumers)
hashOfKey(uint256[2] publicKeypure returns (bytes32)
pendingRequestExists(uint256 subIdview returns (bool)
s_provingKeyHashes(uint256view returns (bytes32)
s_provingKeys(bytes32view returns (bool existsuint64 maxGas)
s_requestCommitments(uint256view returns (bytes32)
State-modifying
acceptOwnership(
acceptSubscriptionOwnerTransfer(uint256 subId
addConsumer(uint256 subIdaddress consumer
cancelSubscription(uint256 subIdaddress to
createSubscription(returns (uint256 subId)
deregisterMigratableCoordinator(address target
deregisterProvingKey(uint256[2] publicProvingKey
fulfillRandomWords(struct VRFProof proofstruct VRFTypesRequestCommitmentV2Plus rcbool onlyPremiumreturns (uint96 payment)
fundSubscriptionWithNative(uint256 subIdpayable 
migrate(uint256 subIdaddress newCoordinator
onTokenTransfer(addressuint256 amountbytes data
ownerCancelSubscription(uint256 subId
recoverFunds(address to
recoverNativeFunds(address to
registerMigratableCoordinator(address target
registerProvingKey(uint256[2] publicProvingKeyuint64 maxGas
removeConsumer(uint256 subIdaddress consumer
requestRandomWords(struct VRFV2PlusClientRandomWordsRequest reqreturns (uint256 requestId)
requestSubscriptionOwnerTransfer(uint256 subIdaddress newOwner
setConfig(uint16 minimumRequestConfirmationsuint32 maxGasLimituint32 stalenessSecondsuint32 gasAfterPaymentCalculationint256 fallbackWeiPerUnitLinkuint32 fulfillmentFlatFeeNativePPMuint32 fulfillmentFlatFeeLinkDiscountPPMuint8 nativePremiumPercentageuint8 linkPremiumPercentage
setLINKAndLINKNativeFeed(address linkaddress linkNativeFeed
transferOwnership(address to
withdraw(address recipient
withdrawNative(address recipient
Events
ConfigSet(uint16 minimumRequestConfirmationsuint32 maxGasLimituint32 stalenessSecondsuint32 gasAfterPaymentCalculationint256 fallbackWeiPerUnitLinkuint32 fulfillmentFlatFeeNativePPMuint32 fulfillmentFlatFeeLinkDiscountPPMuint8 nativePremiumPercentageuint8 linkPremiumPercentage
CoordinatorDeregistered(address coordinatorAddress
CoordinatorRegistered(address coordinatorAddress
FallbackWeiPerUnitLinkUsed(uint256 requestIdint256 fallbackWeiPerUnitLink
FundsRecovered(address touint256 amount
MigrationCompleted(address newCoordinatoruint256 subId
NativeFundsRecovered(address touint256 amount
OwnershipTransferRequested(address indexed fromaddress indexed to
OwnershipTransferred(address indexed fromaddress indexed to
ProvingKeyDeregistered(bytes32 keyHashuint64 maxGas
ProvingKeyRegistered(bytes32 keyHashuint64 maxGas
RandomWordsFulfilled(uint256 indexed requestIduint256 outputSeeduint256 indexed subIduint96 paymentbool nativePaymentbool successbool onlyPremium
RandomWordsRequested(bytes32 indexed keyHashuint256 requestIduint256 preSeeduint256 indexed subIduint16 minimumRequestConfirmationsuint32 callbackGasLimituint32 numWordsbytes extraArgsaddress indexed sender
SubscriptionCanceled(uint256 indexed subIdaddress touint256 amountLinkuint256 amountNative
SubscriptionConsumerAdded(uint256 indexed subIdaddress consumer
SubscriptionConsumerRemoved(uint256 indexed subIdaddress consumer
SubscriptionCreated(uint256 indexed subIdaddress owner
SubscriptionFunded(uint256 indexed subIduint256 oldBalanceuint256 newBalance
SubscriptionFundedWithNative(uint256 indexed subIduint256 oldNativeBalanceuint256 newNativeBalance
SubscriptionOwnerTransferRequested(uint256 indexed subIdaddress fromaddress to
SubscriptionOwnerTransferred(uint256 indexed subIdaddress fromaddress to
Constructor
constructor(address blockhashStore
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BalanceInvariantViolated(uint256 internalBalanceuint256 externalBalance
BlockhashNotInStore(uint256 blockNum
CoordinatorAlreadyRegistered(address coordinatorAddress
CoordinatorNotRegistered(address coordinatorAddress
FailedToSendNative(
FailedToTransferLink(
GasLimitTooBig(uint32 haveuint32 want
GasPriceExceeded(uint256 gasPriceuint256 maxGas
IncorrectCommitment(
IndexOutOfRange(
InsufficientBalance(
InvalidCalldata(
InvalidConsumer(uint256 subIdaddress consumer
InvalidExtraArgsTag(
InvalidLinkWeiPrice(int256 linkWei
InvalidPremiumPercentage(uint8 premiumPercentageuint8 max
InvalidRequestConfirmations(uint16 haveuint16 minuint16 max
InvalidSubscription(
LinkAlreadySet(
LinkDiscountTooHigh(uint32 flatFeeLinkDiscountPPMuint32 flatFeeNativePPM
LinkNotSet(
MsgDataTooBig(uint256 haveuint32 max
MustBeRequestedOwner(address proposedOwner
MustBeSubOwner(address owner
NoCorrespondingRequest(
NoSuchProvingKey(bytes32 keyHash
NumWordsTooBig(uint32 haveuint32 want
OnlyCallableFromLink(
PaymentTooLarge(
PendingRequestExists(
ProvingKeyAlreadyRegistered(bytes32 keyHash
Reentrant(
TooManyConsumers(