finds.dev

PatrickAlphaC/dungeons-and-dragons-nft

#chainlink #nft

View on GitHub

★ 639JavaScriptMITupdated Jun 2021

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
639
Forks
270
Language
JavaScript
License
MIT
Last commit
28 Jun 2021

// nearby

If dungeons-and-dragons-nft isn't quite it.

All repos →