hackquest logo

SmartChain Hub

SmartChain Hub is a decentralized platform integrating AI-driven agents and blockchain technology to optimize transactions, enhance security, and provide seamless, transparent, and autonomous digital

Videos

Description

SmartChain Hub is a decentralized AI commerce platform where every user owns a sovereign AI agent with verifiable on-chain identity, persistent cross-session memory, and cryptographically proven intelligence powered entirely by the 0G modular stack.

Unlike projects that bolt AI onto a wallet, SmartChain Hub implements the full agentic loop:

1. IDENTITY

SmartChainAgentID.sol mints a soulbound NFT (one per wallet, non-transferable) storing the agent's TensorFlow model hash, 0G Storage KV memory root, and reputation score. Reputation increments on every confirmed optimization.

2. INTELLIGENCE

The AI agent runs LLaMA 3.1 8B inside a Trusted Execution Environment via 0G Compute TeeML mode. Every inference returns a cryptographic TEE proof displayed in the UI users can verify the AI ran correctly.

3. MEMORY

Agent memory (preferred routes, past savings, user behavior) is persisted to 0G Storage KV layer across browser resets and devices. The memory Merkle root is committed on-chain after every session.

4. RECEIPTS

Every transaction optimization uploads an immutable receipt to 0G Storage Log layer via @0glabs/0g-ts-sdk. The Merkle root is stored in Supabase and on-chain simultaneously.

5. ECONOMICS

SmartChainPayments.sol collects a 0.5% fee on every transaction. SmartChainRevenue.sol distributes 10% proportionally to registered stakers. Users earn 5% APY on staked A0GI.

Every single user action generates exactly 3 on-chain interactions: 1 Storage upload + 1 Agent ID memory update + 1 revenue event. This is the economic flywheel.

The platform also integrates M-Pesa (via Flutterwave) and Stripe onramps, targeting emerging markets where fee optimization has the highest real-world impact Sub-Saharan Africa and Southeast Asia.

Progress During Hackathon

<p><strong>SmartChainAgentID.sol</strong></p><p>Soulbound NFT deployed on 0G Galileo Testnet. Stores modelHash, memoryRoot, reputation. One per wallet, non-transferable. Address: 0x69C619374c6B901b99941Df7238fceb80d7DCd08</p><p><strong>0G Compute Integration</strong></p><p>LLaMA 3.1 8B inference routed through 0G Compute broker in TeeML mode. TEE proof returned in response headers and displayed in the UI with provider ID and proof hash.</p><p><strong>0G Storage Log</strong></p><p>Immutable transaction receipts uploaded via @0glabs/0g-ts-sdk MemData. Merkle root stored in Supabase and committed to Agent ID contract on every optimization.</p><p><strong>0G Storage KV </strong><br>Agent memory persisted cross-session via server-side /api/agent-memory route. Memory root committed on-chain after every session update.</p><p><strong>4 Smart Contracts deployed on 0G Galileo Testnet</strong> <br>SmartChainTransaction, SmartChainRevenue (proportional staker distribution), SmartChainPayments (send/stake/earn), SmartChainAgentID.</p><p><strong>Full-stack application</strong> live at <a href="https://smartchainhubfrontend.vercel.app">https://smartchainhubfrontend.vercel.app</a> Next.js 16 frontend, Express.js backend, Flask + TensorFlow AI agent with graceful fallback when 0G Compute is unavailable.</p><p><strong>Security hardened</strong></p><p>SSRF protection, CSRF tokens, log injection prevention, rate limiting, helmet headers. Build passes with zero TypeScript errors.</p><p></p>

Tech Stack

React
Node
Solidity
Python
Ethers
Rust
Next

Fundraising Status

<p>Pre-seed stage. We have a fully functional MVP deployed on 0G Galileo Testnet with live contracts, a working AI agent, and a production frontend. We are actively seeking $150K–$300K seed funding to deploy on 0G Mainnet, onboard the first 1,000 Agent IDs, and launch the M-Pesa integration for East African markets. The economic flywheel is live every optimization generates staking rewards, creating organic user retention without paid acquisition.</p><p></p>

Team LeaderMmokwa moffat
Sector
DeFiDAOSocialFiAI

Builders Also Viewed