The Smart Contract-Based Footprint Calculator is a decentralized tool designed to estimate the carbon footprint associated with pete consumption. This smart contract operates on a blockchain platform and provides a straightforward way to calculate and retrieve carbon emission data from the blockchain.
Users can calculate the carbon footprint from the set AirPlane carbon emission factor. This public function returns an estimate of the carbon footprint associated with the weight of the AirPlane.
Overview:
- This function calculates the carbon footprint according to parameters of the airplane.
Parameter:
- isBusiness(Boolean): "isBusiness" is the parameter whether the seat is business class or not
- distance(km): "distance" is distance during flight
- p(Number): "p" is ratio of passenger weight to total payload weight
- seat(Number): "seat" is total number of seats
- k(Number): "k" is ratio of seats occupied during flight
- averageFuelBurn(kg/km): "averageFuelBurn" is average fuel burn amount during flight
Example:
- isBusiness: true, distance: 1000(km), p: 0.8, seat: 100, k: 0.6, averageFuelBurn: 5.01(kg/km)
1. Scale by 10000(distance, p, k, averageFuelBurn)
2. calculateCO2ByAirPlane(true, 10000000, 8000, 100, 6000, 50100)
3. 237474000000000000000 (in UI it should be divided by 18 decimals 237.474)
The Smart Contract-Based Carbon Footprint Calculator has been deployed on the Gesia Chain. Below are the deployment details:
Contract Address: 0xd8bd5B6e36f0500357f33c71d3483446db903f2B
Transaction Hash: 0xc8037e12bd394c0ed5c4ac842e8b4ece113eeabaf061002ddcfdd83bc5c29c0e
You can verify the deployment of the Calculator Contract by checking the contract address and transaction hash on Gesia Explorer. Here are the links for your convenience:
The carbon emissions are calculated based on the emission factors and calculation methods referenced from wikipedia and aeroflot
The following formula is the essential formula of Carbon Footprint Calculator.
# emission factor of individual passenger: 3.16
# T(tot): Total payload transport fuel consumption(Average Fuel Burn x range)
# P(pax/tot): Ratio of passenger weight to total payload weight
# N(seat): Total number of seats
# K(pax/seat): Ratio of seats occupied during flight
emission factor of airplane(kgCO2/kg) x is business class(true: 2, false: 1) x Average Fuel Burn(kg/km) x range(km) x P(pax/tot) ÷ (N(seat) x K(pax/seat))
Please refer to the Link for more detailed info.
This project is licensed under the MIT License.