← Back to home

Orai

On-demand true data generating AI Oracle for everyone and every smart contract

Problem Statement

Orai: Decentralized AI-powered Q&A platform leveraging blockchain for verifiable answers. Features 0g storage integration, cryptographic proof verification, and community voting for answer validation.(Exactly 200 characters)This captures the key aspects I can see from the code:Decentralized Q&A systemAI-powered answersBlockchain integration (questions-fastify.routes.ts:1-223)Verification system (modelHash, inputHash, outputHash)0g storage integration (storageUrl references)

Solution

Smart Contracts: Hardhat 3 with native ESM support, Solidity 0.8.20, OpenZeppelin for upgradeability and access control. Deployed on 0G Testnet with custom chain descriptors for block explorer integration.Relay: Fastify (high-performance over Express), TypeScript, Prisma ORM with PostgreSQL, BullMQ + Redis for async job queues. Critical 0G integrations: @0glabs/0g-serving-broker (v0.5.4) for AI orchestration and @0glabs/0g-ts-sdk (v0.3.3) for decentralized storage.Frontend: React 19 + Vite 7, RainbowKit v2.2 + Wagmi v2.19 + Viem v2.39 for Web3 (modern hook-based architecture), TailwindCSS for styling, TanStack Query for state management.Challenges 0G Storage IntegrationBenefitsSpeed: Sub-5s blocks enable 60s answer verification cyclesDecentralized AI: GPU nodes independently verify results for consensusPermanent Storage: Erasure-coded redundancy with content-addressed retrieval

Hackathon

ETHGlobal Buenos Aires

2025

Contributors