I am trying to interact with the Chainlink VRF function.
I have a Coordinator contract that needs random numbers to draw cards out of a deck. The Coordinator calls a Random Number Generation Oracle that implements Chainlink's VRFConsumerBase contract.
I want my Coordinator/Oracle to purchase LINK tokens automatically using the Ether that the user sent for the draw price so that it can always provide the required LINK fee to the VRF function and it does not need a human to manually top up the contract with LINK.
Is there any working example/tutorial on how one could achieve this? I really wish to avoid forcing the users of my contract to purchase LINK themselves.
Thanks!