// the find
PatrickAlphaC/dungeons-and-dragons-nft
#chainlink #nft
A tutorial repo showing how to use Chainlink VRF to generate verifiably random stats for on-chain D&D characters as NFTs. Targets Solidity beginners who want a concrete example of oracle-backed randomness. Last touched in 2021 and hardcoded to Rinkeby, which no longer exists.
Chainlink VRF integration is the right way to do on-chain randomness — no blockhash shortcuts that miners can manipulate. The six-stat character structure maps cleanly to ERC-721, making the mental model easy to follow. Scripts are broken into discrete steps (fund, generate, get) which makes the oracle request/response lifecycle visible rather than hidden.
Rinkeby was deprecated in 2022, so nothing here runs without porting to a live testnet. Stores the wallet seed phrase in a .env file and checks it into the tree next to .env.example — a habit that will eventually cost someone real money. No tests worth mentioning: the test file exists but the repo hasn't been maintained to verify anything still works. TokenURI is set manually via script after minting, which means your NFT is metadata-blind until you run a second transaction — solvable with a base URI pattern but not done here.