In this smart conract tutorial we use Chainlink VRF to improve the lottery smart contract that we created in Part I by replacing the pseudo-random number generator code with a true, verifiable random number.

Chainlink is a decentralized blockchain oracle network built on Ethereum.

Part 1: Smart Contract Tutorial: Create a lottery smart contract in Solidity
https://morioh.com/p/d9b6823de48f?f=5c21fb01c16e2556b555ab32 

Part 3: Web3 Tutorial Project | Build a web3js dApp with a Solidity lottery smart contract on Ethereum
https://morioh.com/p/41b7d3012b99?f=5c21fb01c16e2556b555ab32 

Source code for this tutorial:
https://github.com/jspruance/block-explorer-tutorials/blob/main/smart-contracts/solidity/Lottery_w_Chainlink_VRF.sol 

Chainlink docs:
https://docs.chain.link/docs/chainlink-vrf/ 
https://docs.chain.link/docs/vrf-contracts/ 
https://docs.chain.link/docs/acquire-link/ 

Rinkeby testnet faucet: 
https://faucet.rinkeby.io/ 

LINK faucet: (select Rinkeby testnet):
https://faucets.chain.link/ 

Subscribe: https://www.youtube.com/@BlockExplorerMedia/featured 

#smartcontract #sonidity #chainlink 

Lottery Smart Contract Tutorial - Get a verifiable random number with Chainlink VRF
1.60 GEEK