Skip to content

NFT mint using Chainlink Verifiably Random Function V2

Notifications You must be signed in to change notification settings

emrahsariboz/NFT-ChainlinkVRF2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT mint functionality, where _mint operation uses Verifiable Random Function (VRF) from Chainlink. Note that this application use Vertion2.

How does Chainlink VRF Version2 work?

  • Deploy your smart contract
  • Create subscription
  • Fund your subscription. In the example, I funded with 2 LINK.
  • Add a consumer of your subscription, which is the address of the contract you deployed.
  • Request randomness, wait for the fallback call.
  • fallback call triggers _mint operation.

How to run?

This version is configured to run on Rinkeby test net. Assuming you have .env file with the private key of your account:

brownie run scripts/create_and_deploy.py --network rinkeby

About

NFT mint using Chainlink Verifiably Random Function V2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published