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.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
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
Send a transaction to requestNewRandomCharacter
to mint the NFT and print it once it's fulfilled.
yarn request:nft
The QRNG Airnodes supported by this example are documented in data/apis.json.