Hi, does anyone have successful experience with Chainlink VRF here? How do I get to send 0.1 LINK when calling getRandomNumber function interacting with this smart contract?
Mar 30, 2021, 9:33 AM
https://docs.chain.link/docs/get-a-random-number
Mar 30, 2021, 9:33 AM
You should load your contract beforehand with link
And it'll automatically deduct
Mar 30, 2021, 10:08 AM
@mrrobot3_3 Thanks for this. I assume it cannot be done on remix?
Never mind, it can. https://docs.chain.link/docs/fund-your-contract
Hey Mr. Robot, is it true for every seed provided, only one random number can be generated via Chainlink VRF? If so, that would be really costly to run a DAPP with randomness. As of now, the unit price is 0.1 LINK or roughly $2.8 to get a single random number!
Or is it generating one single random number per block given one seed?
Mar 30, 2021, 11:07 AM
I think its one number per call
Mar 30, 2021, 11:20 AM
Re: cost, it looks like documentation was updated here: https://docs.chain.link/docs/vrf-contracts
"For the most efficient consumption of Chainlink VRF on Ethereum, please contact us at [email protected] to create a payment channel, through which we can provide VRF to you at the cost of Ethereum network gas fees. You will only be paying for the gas costs incurred by the Chainlink node from calling your smart contract."
"For the most efficient consumption of Chainlink VRF on Ethereum, please contact us at [email protected] to create a payment channel, through which we can provide VRF to you at the cost of Ethereum network gas fees. You will only be paying for the gas costs incurred by the Chainlink node from calling your smart contract."
Mar 30, 2021, 11:25 AM
About cost, you could get a little crafty with the random number and generate any amount of random numbers you want
Mar 30, 2021, 11:31 AM
I can see what you mean. I'll do some experiments.
Mar 30, 2021, 12:07 PM
Yes, Your contract must have required amount.
Mar 31, 2021, 5:46 PM