Skip to content

theethernaut/vrf

Repository files navigation

Chainlink VRF (random number) example

See https://docs.chain.link/docs/get-a-random-number/

Set up

  1. Clone repo =P
  2. npm i
  3. cp .env.sample .env
  4. Populate .env with a Kovan provider and a private key that has Kovan ETH

Testing

  1. Run npx hardhat run scripts/deploy.js
  2. Get your deployed contract some LINK: https://faucets.chain.link/kovan
  3. Run npx hardhat run scripts/get-random-number.js
  4. (in another terminal) Run npx hardhat run scripts/monitor-random-numbers.js
  5. Repeat 2 ad infinitum

About

Playing with Chainlink's VRF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published