Why is $LINK needed?
Last updated
Last updated
To put it short, Chainlink requires $LINK on its .
The revealing process is powered by , and it needs $LINK to provide the on-chain randomness. That $LINK is added to the contract subscription balance at the VRF Coordinator contract. At the revealing moment, we request a $LINK value, based on this calculation:
((Gas price * (Verification gas + Callback gas)))/ (ETH/LINK) + Chainlink Charge = Total gas cost
See more about this
The $LINK required to reveal depends on the ETH/LINK ratio, which can change over time, although it is very stable. The value of LINK is also provided by Chainlink's , so everything used to provide relevant data and randomness exists on-chain.
The calculation is required by Chainlink to cover all the costs up to the value obtained through the equation above.