Introduction

Avanite is a web3 Design project that aims to use Chainlink Functions + Avalanche C-Chain Testnet tokens to securely request Fortnite player stats from the fortnite-api at fortnite-api.com endpoints

What it should do

Users provide their Fortnite Usernames and we help request their data from the fortnite-api. We can have a function to store the results as NFTs that can be updated and removed from our network for a fee.

How we would build it

We used the following tools and technologies to build our project:

  • React: To create the frontend of our platform, where users can enter their usernames and view their stats or NFTs.

  • Web3: We would use Web3 to connect our frontend to the Avalanche C-Chain, which is a smart contract platform that supports the Ethereum Virtual Machine (EVM).

  • Chainlink: We would use Chainlink Functions to create and deploy custom functions to access the fortnite-api and retrieve the player data. We usedf Chainlink env-enc to encrypt secrets and node to upload the secrets to the Avalanche Fuji DON, which is a Decentralized Oracle Network that executes our functions.

  • Remix: We used Remix to write, compile, and deploy our smart contract on the Avalanche Fuji Testnet, a test network for the Avalanche C-Chain. We funded a Chainlink subscriptions account on the Avalanche Fuji network with 5 LINK tokens, which are used to pay for the Chainlink Functions requests.

What we learned

We learned a lot from working on this project, such as:

  • How to use the fortnite-api to get data about Fortnite players and their performance in the game.

  • How to use React to create a user-friendly and responsive frontend for our platform.

  • How to use Chainlink Functions to execute arbitrary JavaScript code on the DON and access password-protected APIs using encrypted secrets.

  • How to use Remix to write, compile, and deploy Chainlink smart contracts that execute arbitrary JavaScript code on the Avalanche C-Chain via Avalanche Fuji Testnet

What's next for Avanite

We have many ideas for improving and expanding our project, such as:

  • Adding more features and options for users to customize their NFTs, such as choosing different stats, images, and backgrounds.

Built With

  • avalanche
  • chainlink
  • chainlink-functions
  • chainlink-oracle
Share this project:

Updates