A decentralized platform for managing, verifying, and trading tokenized carbon credits.
Live App: https://decentralized-carbon-credit.vercel.app/
GitHub Repo: github.com/arrnaya/BCarbon-base44
B-Carbon is a blockchain-powered carbon credit registry and marketplace. It allows project developers/issuers to tokenize carbon credits, undergo validation and verification, and sell their carbon offsets on-chain — all while ensuring transparency, immutability, and auditability.
The platform combines smart contracts, decentralized governance, and user-friendly interfaces to build trust and accessibility in voluntary carbon markets.
-
Carbon Project Registry:
Register afforestation, reforestation, renewable, or carbon avoidance projects. -
On-Chain Governance:
Validators (VVBs) validate and verify projects using decentralized governance via smart contracts. -
Tokenized Carbon Credits (BCO2):
Credits are issued as ERC-1155 tokens with metadata including vintage, permanence, and project details. -
Marketplace:
Trade carbon credits using RUSD, a mock stablecoin for testnet. Support for listings, sales, and credit retirement. -
Certificates & Metadata:
Minted and retired credits generate traceable, verifiable certificates. -
Role Management:
Project developers, VVBs (validators), governance admins all have distinct on-chain roles.
| Layer | Technology |
|---|---|
| Frontend | React, TailwindCSS, shadcn/ui |
| Contracts | Solidity (ERC1155, Governance, Marketplace, Registry) |
| Backend (Legacy) | Deno (via base44 platform) |
| Blockchain | EVM-compatible network (local/testnet) |
| Dev Tools | Foundry, Forge, Hardhat |
git clone https://github.com/arrnaya/BCarbon-base44.git
cd BCarbon-base44- Install Frontend Dependencies
cd frontend
npm install
npm run devVisit: http://localhost:3000
- Run Smart Contract Tests (Foundry)
forge install
forge test -vv- Deploy Contracts Configure .env and RPC settings for your testnet (e.g., BSC Testnet, Polygon Mumbai), then:
forge script script/Deploy.s.sol --rpc-url <YOUR_RPC_URL> --private-key <YOUR_KEY> --broadcast-
BCO2.sol – ERC1155 token for carbon credits
-
CarbonCreditGovernance.sol – Handles project validation/verification and approvals
-
ProjectData.sol – Stores registered project data
-
ProjectManager.sol – Interfaces for project owners
-
ProjectFactory.sol – Deploys new BCO2 contracts per project
-
Marketplace.sol – Allows trading and retirement of credits
All contracts are found in the src/ directory.
Foundry is used for unit testing all critical contracts. Run:
forge test -vv-
Register Project → Issuer submits project details via ProjectManager.
-
Validation & Verification → VVBs validate/verify project on-chain via governance.
-
Credit Issuance → Governance contract approves and issues credits to project contract.
-
Minting → Users can mints carbon credits using RUSD stablecoin.
-
Retiring → Buyers retire credits to claim a certificate of carbon offset.
-
Listing & Sale → Credits are listed by users on the marketplace for sale.
-
Owner / Admin – Manages global governance
-
Project Developer/Issuers – Registers and manages carbon projects
-
VVB (Validator/Verifier Body) – Validates/Verifies projects
-
Buyer – Purchases and retires carbon credits
🔐 Integrate real-world VVB identity verification
🌐 IPFS or Arweave metadata hosting for certificates
🔁 Cross-chain bridging of credits
💸 DeFi staking and insurance for carbon assets
✅ On-chain certificate registry with QR code validation
This project is licensed under the MIT License.