Skip to content

Utilizing API3 QRNG to generate NFTs and using true Quantum Randomness in your mints.

Notifications You must be signed in to change notification settings

vanshwassan/QRNG-NFT-Mint

Repository files navigation

NFT Mint using API3's Quantum RNG

MIT License

Mint an NFT for your character utilizing API3 QRNG to set random attributes for it (strength, intelligence, mana and experience).


Installation

$ git clone https://github.com/vanshwassan/QRNG-NFT-Mint.git

To install all the dependencies:

$ yarn

Make credentials.json and add your mnemonic for the network/s you will work with. This wallet needs to be funded.

$ cp credentials.example.json credentials.json

Deploy API3QRNG

To deploy the API3QRNG contract, run the following command. This will:

  • Deploy the API3QRNG Contract
  • Set the request parameters on-chain
  • Derive and fund the sponsor wallet from your mnemonic
yarn deploy

Minting the NFT

Send a transaction to requestNewRandomCharacter to mint the NFT and print it once it's fulfilled.

yarn request:nft

QRNG Airnode

The QRNG Airnodes supported by this example are documented in data/apis.json.

About

Utilizing API3 QRNG to generate NFTs and using true Quantum Randomness in your mints.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published