Mint an NFT for your character utilizing API3 QRNG to set random attributes for it (strength, intelligence, mana and experience).
$ git clone https://github.com/vanshwassan/QRNG-NFT-Mint.gitTo install all the dependencies:
$ yarnMake 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.jsonTo deploy the API3QRNG contract, run the following command. This will:
- Deploy the
API3QRNGContract - Set the request parameters on-chain
- Derive and fund the sponsor wallet from your mnemonic
yarn deploySend a transaction to requestNewRandomCharacter to mint the NFT and print it once it's fulfilled.
yarn request:nftThe QRNG Airnodes supported by this example are documented in data/apis.json.