Skip to content

Earn dynamic NFTs as you grow your Twitch channel, for #Chainlink Hackathon 2021

License

Notifications You must be signed in to change notification settings

AntonStrickland/nftwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nftwitch

Earn dynamic NFTs as you grow your Twitch channel, for Chainlink Hackathon 2021

Live Demo (use Rinkeby testnet): https://nftwitch.link/

Watch the demo video here

Project Structure

This project is composed of three parts:

  1. The front-end web app (my-eth-app)
  2. The dynamic NFT contracts (dynamic-nft)
  3. Custom-built external adapter for Twitch (cl-ea-twitch)

Inspiration

While brainstorming project ideas, I thought maybe I should try doing something related to NFTs since they are popular right now. Then, I found this article: https://blog.chain.link/create-dynamic-nfts-using-chainlink-oracles/ One of those ideas involves minting NFTs based on external conditions. As a gamer, game developer, and streamer, it was not long before I realized I could try to integrate with Twitch for this purpose.

I also wanted to pick an idea that was small enough for me to actually finish within the time limit while also teaching me about Chainlink. So far this project has taught me a little bit about every aspect of it, from running a node, external adapters, and external API calls from within smart contracts.

Purpose

By interacting with smart contracts and Chainlink oracles, Twitch streamers can mint dynamic NFTs as they grow their channels. Every X followers, the streamer is allowed to mint Y NFTs that they can then re-sell to their fans directly or on open marketplaces. Both parties have something to gain: the funds can be used as a source of income to help bootstrap a streamer, and fans can hold onto a rare and unique, one-of-a-kind collectible. Due to the dynamic nature of the NFT, the value may change over time and fans can re-sell to each other. Since the act of following a streamer on Twitch costs nothing to the viewer, it has never been easier for a streamer to start earning income from their fans.

How it works

Streamers register with a smart contract via the front-end, using Chainlink's API to verify ownership of their Twitch account. Streamers can periodically return to the site and mint a number of NFTs when a new follower threshold is reached (verified by Chainlink). Upon minting, the NFTs are allocated to the streamer and can then be redistributed and/or sold to fans.

Releases

No releases published

Packages

No packages published