Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.1 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.1 KB

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.