This is a project by team O.N.C.E. (Operation Nifty Carbon Emissions)! The team is comprised of experienced software engineers from RSK and Indorse!
In every serious conversation about blockchains, in particular NFTs, there are always detractors who talk about how harmful the NFTs are for the environment. One of the rebuttals to this argument is the renewable energy sources used by miners across the world. Still, we do not have the actual numbers to prove our point and show how “green” the NFTs are. In this project, we assess the actual environmental impact of the NFTs by going drilled down all the way to the transaction level. Several projects showcase the environmental impact of a blockchain network as a whole. This project attempts to go further, by segregating the NFT transactions independently.
We have used a sample Smart Contract for an NFT on the Ethereum blockchain and look at various types of transactions such as “deploy”, “mint”, and “transfer”. Each transaction will have a different gas cost associated with that, hence varying carbon emission impact. We also consider other factors like the energy mix used for mining these transactions and try to make it palatable and easy to understand by comparing these values against trees felled or miles travelled in a typical car.
XXX
- Frontend - ReactJS
- Backend - NodeJS + web3.js
- Smart Contract - Solidity
- We have created 2 repos for this project. This is the repo for the frontend of the SPA (Single Page App)
- This repo is the main visualization of the project where we compare the different NFT transactions and showcase how much energy they consume as compared to cutting down trees or driving around in a car!
- The backend can be found in this repo
- This is the repo where we have APIs that feed data to the React visualization
- This repo also connects to a script that calculates the estimated energy consumption and the carbon costs associated with the various transactions
- Project Lead - Brendan Graetz, RSK
- Gaurang Torvekar, Indorse
- Vijay Krishnavanshi, Indorse
- Utkarsh Gupta, Indorse
This project is released under the Apache 2 license
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to install either npm
or yarn
to build this project. Here are the link to resources to get started.
First of all clone the repository using the following command.
git clone https://github.com/utkarshg6/blockchain-carbon-cost-visualizer.git
Traverse to the blockchain-carbon-cost-visualizer
.
cd blockchain-carbon-cost-visualizer
In case you are installing through npm
follow the instructions below. If you are installing through yarn
then jump ahead to installation through yarn
.
npm i
To run the app in development mode, use this command.
npm run dev
To install the dependencies you can do it by using the following command.
yarn
To run the app in development mode, use this command.
yarn dev
You can open http://localhost:3000/ to view it in the browser.
You may find the dependencies inside the package.json
file.
- React.js
- Next.js
Vercel is used for hosting.