GreenChain

Track emissions, auto-buy & retire carbon tokens via PYUSD with private, auditable ESG data.

Visit Repo
GreenChain banner

About

GreenChain is an intelligent, agent-driven platform that automates the full lifecycle of carbon accounting, procurement, and retirement of credits — turning ESG compliance into a live, auditable system. It begins by securely ingesting electricity bills, meter readings, or activity data, then calculates carbon emissions using authoritative emission factors such as those from the U.S. EPA and UK Government. A Fetch.ai uAgent-powered **Procurement Agent** automatically identifies verified carbon credit providers, performs price discovery, and assembles an optimized basket of offsets. Payments are executed using **PYUSD**, PayPal’s regulated stablecoin, over EVM networks (with Sepolia testnet support and faucet integration for demos). Once credits are purchased, they are represented as **ERC-1155 carbon tokens** that can be transparently tracked, retired (burned), and proven on-chain through **Blockscout** explorers. Sensitive ESG and energy data remain encrypted using **Lit Protocol’s PKP and MPC-TSS architecture**, ensuring that only authorized auditors can decrypt records when necessary. This balance of privacy and verifiability allows organizations to prove real impact without exposing operational data. The GreenChain dashboard unifies everything in one place — showing current footprint, purchased and retired credits, total offsets, PYUSD expenditure, and cryptographic proofs. Designed for enterprises, sustainability teams, and DeFi innovators, GreenChain bridges traditional ESG workflows with on-chain automation, offering a fast, transparent, and privacy-preserving path to net-zero compliance.

How it's made

**How it’s made — GreenChain 🌿**

GreenChain was built as a full-stack, agentic ESG automation system, combining on-chain transparency with privacy-first off-chain computation. The backend runs on a multi-service architecture with a TypeScript/Node **emissions engine**, a Python **Procurement Agent**, Solidity smart contracts, and a Next.js + Tailwind front-end. The emissions engine ingests facility data and applies EPA or UK Gov factors to compute tCO₂e in real time. The Procurement Agent, built using the **uAgent Framework by ASI**, performs price discovery and basket optimization across mock offset providers, executes settlements, and records the audit trail — a true agentic transaction orchestrated through **Beaureu creation** inside the ASI ecosystem.

On-chain logic is handled by three contracts: **CarbonCredit1155**, **PaymentEscrow**, and **RetirementRegistry**, deployed on **Sepolia**. Payments are made with **PYUSD**, a Paxos-issued ERC-20 token. Each transaction produces verifiable mint and retirement events that can be viewed in **Blockscout**. Privacy is enforced using **Lit Protocol’s PKP and MPC-TSS network**, where all sensitive ESG documents (like invoices or attestations) are encrypted and only decryptable for authorized auditors.

A key innovation was the **Vincent by Lit Protocol** integration, which powers both the offset logic and transaction proof mechanism — every credit retirement event is tied to a Lit-secured proof bundle. The front-end dashboard, built in **Next.js 14** with **shadcn/ui**, visualizes footprints, offsets, PYUSD flows, and decryptable audit bundles. Our setup leverages containerized microservices, Docker for local orchestration, and Hardhat for Solidity testing. It’s hacky but elegant — agents talk to contracts, payments are stablecoin-denominated, and audit proofs are cryptographically gated — delivering a fully automated, verifiable ESG offset pipeline.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

CarbonSeal

🌍🔗 CarbonSeal – The Web3 Carbon Footprint Oracle! Estimate emissions for any ETH wallet & prove carbon neutrality with Brevis ZK proofs. Seamlessly verify crypto carbon credit purchases & offset your impact. #ZKCarbonNeutral #EthGlobal #Web3Sustainability 🚀

SmartMarket

A decentralized carbon credit marketplace on Ethereum for transparent, efficient trading of offsets