Carbon Oracle

Lightweight oracle dApp using Pyth feeds for real-time carbon prices with EVVM auto updates.

Carbon Oracle

Created At

ETHOnline 2025

Project Description

A lightweight oracle dApp that uses Pyth data feeds to fetch real-time carbon credit prices and track emissions data flow. Built with Next.js, Hardhat, and EVVM integration for fast price updates.

✨ Features Real-time Carbon Credit Prices: Live price feeds from Pyth Network for VERRA, Gold Standard, and other carbon credit types Emissions Tracking: Track your carbon footprint and offset credits Automated Trading Strategies: Set up automated carbon credit purchases with EVVM executor Beautiful Dashboard: Modern, responsive UI with live data visualization Fast Price Updates: EVVM integration for high-frequency price updates Smart Contract Integration: Deploy and interact with carbon credit oracles on-chain

How it's Made

Carbon Oracle is a lightweight on-chain oracle dApp that tracks real-time carbon credit prices using @Pyth Network’s data feeds and @EVVM’s executor for automated, high-frequency updates.

⚙️ Architecture

The system has three layers:

Smart Contracts (Solidity + @Hardhat) — Fetch and store verified carbon price data from Pyth.

Frontend (Next.js 14 + TypeScript + Tailwind) — Displays live price feeds and update events.

Automation (EVVM) — Triggers periodic updatePrice() calls for continuous on-chain freshness.

🔐 Smart Contracts

CarbonOracle.sol pulls verified price data from Pyth and emits a PriceUpdated event whenever new data arrives. EVVMExecutor.sol automates these updates using EVVM’s execution nodes for fast, gas-efficient refresh cycles.

💻 Frontend

Built with Next.js 14 (App Router), TypeScript, and Tailwind CSS, the dashboard fetches on-chain data using Wagmi + Ethers.js, displaying live carbon credit prices with automatic updates from contract events.

🔗 Integrations

Pyth Network: Real-time, verifiable carbon price feeds.

EVVM: Automated on-chain updates with minimal latency.

Ethereum: Smart contract deployment and verifiable storage.

🧪 Notable Implementations

Simulated carbon credit feed using a commodity price source for testing.

Integrated EVVM automation for near real-time price refreshes.

Event-driven UI updates without reloads — mimicking a “live oracle dashboard.”

🧰 Stack

Solidity, Hardhat, Next.js 14, Tailwind, TypeScript, Ethers.js, Pyth Network, EVVM, Base/Arbitrum Sepolia

background image mobile

Join the mailing list

Get the latest news and updates