Vocaid Hub

Verified resource allocation for AI agents — GPU, Skills, DePIN — via ERC-8004 on 3 chains

Vocaid Hub

Created At

ETHGlobal Cannes 2026

Project Description

Vocaid Hub is a protocol where verified humans and AI agents discover, verify, price, and trade ANY resource — GPU compute, human skills, agent capabilities, and DePIN hardware — through ERC-8004 registries on 0G Chain.

The key innovation: we built the GPU provider verification tool that 0G's own developers confirmed doesn't exist. Providers register with on-chain TEE attestation, build reputation through quality/uptime/latency signals, and become discoverable by any agent via A2A protocol.

Four OpenClaw agents (Seer, Edge, Shield, Lens) operate autonomously — analyzing signals, pricing resources, enforcing risk limits, and monitoring provider quality. Each agent is registered via World AgentKit with ERC-8004 identity, traceable to a verified human via World ID.

Two payment flows: users pay in USDC via World App's native MiniKit payment popup ($0.10+ per transaction), while agents pay directly via x402 USDC micropayments on Hedera ($0.0001 gas). The server handles cross-chain settlement — leases settle on Hedera via Blocky402, prediction bets settle on 0G Chain. Users never see native tokens (A0GI, HBAR). Credential tokens (HTS, non-transferable, KYC-gated) and an immutable HCS audit trail provide compliance infrastructure — all using @hashgraph/sdk with zero Solidity on Hedera.

Resource prediction markets on 0G Chain let anyone bet on future GPU pricing, skill demand, and provider availability — a new asset class for the agentic economy.

Three chains, each doing what it does best: World (Trust) → 0G (Verify) → Hedera (Settle).

How it's Made

Built with Next.js 15 (frontend/SSR) and a standalone Fastify 5 backend (:5001) with Zod validation, managed by PM2. TypeScript throughout. Three core SDKs (MiniKit, 0G broker, 0G SDK) are TypeScript-only, which drove the single-runtime decision. Fastify runs as a persistent process with SDK singletons initialized once at startup (fixes serverless cold-start crashes). Next.js rewrites proxy /api/* transparently to Fastify. Production-grade backend hardening: per-service fetch timeouts (AbortController), exponential backoff retry with jitter, per-service circuit breakers (CLOSED/OPEN/HALF_OPEN), security headers (CSP, CORS, HSTS), response caching, graceful shutdown, and singleton chain client factories — all covered by 125 vitest tests.

0G Chain (Galileo, chainId 16602): We deployed ERC-8004 registries (IdentityRegistry, ReputationRegistry, ValidationRegistry) via Hardhat Ignition with evmVersion cancun. GPUProviderRegistry bridges 0G's listService() SDK with ERC-8004 identity. MockTEEValidator provides ECDSA-based TEE verification. ResourcePrediction.sol implements USDC-denominated prediction markets with oracle resolution.

World Chain (Sepolia, chainId 4801): CredentialGate.sol verifies World ID ZK proofs on-chain. Verification uses three sources: useIsUserVerified (World ID address book contract on Worldchain mainnet), MiniKit.user.verificationStatus.isOrbVerified (native), and /api/world-id/check (CredentialGate fallback). Graceful degradation: unverified users browse freely, gated actions (hire, bet, register, deploy) show an informational modal directing to World App Settings. Four agents registered via AgentKit with operator_world_id_hash in ERC-8004 metadata.

Hedera Testnet: Zero Solidity. All operations via @hashgraph/sdk — HTS non-transferable credential tokens (VCRED, 0.0.8499633) with KYC gating, HCS audit trail (topic 0.0.8499635), and x402 USDC payments via the Blocky402 facilitator (https://api.testnet.blocky402.com, verified live, no API key). We confirmed Blocky402 supports hedera-testnet by curling the /supported endpoint.

OpenClaw 4-agent fleet with wallet key isolation: Seer (read-only, no wallet key), Edge (payment authority), Shield (read-only), Lens (reputation writer only). 14 0G skills + 5 custom skills. Gateway on localhost:18789 with exec allowlist (node/npx/curl only).

The reputation signal system uses 7 ERC-8004 tags: cost, latency, uptime, compute, region, quality, availability. Lens agent writes feedback, Seer reads it for pricing, Shield enforces minimums.

Retroactive Reputation Engine: We compute historical reputation for the ENTIRE existing 0G provider ecosystem by scanning BalanceUpdated, RefundRequested, and ServiceUpdated events from 0G's native InferenceServing contract (last 2M blocks). 8 providers discovered, 239 transactions analyzed, 6-signal composite scoring (activity 25%, settlement health 20%, TEE compliance 15%, pricing 15%, dispute rate 15%, longevity 10%). Unregistered providers are auto-registered into ERC-8004 IdentityRegistry. Results logged to Hedera HCS audit trail.

Page architecture enforces clean separation: Market (browse + hire all resources), Resources (register + manage your marketplace listings), Profile (Connect Your Agent — generate API key, configure chain + wallet, paste into OpenClaw config; 4 agent slots per user consuming Seer/Edge/Shield/Lens services via A2A/MCP with X-API-Key auth). Fleet agent roles (signal-analyst, market-maker, risk-manager, discovery) are filtered out of the marketplace API so internal agents never appear as hireable resources. ResourceStepper uses a data-driven TYPE_META config — adding a new resource type requires zero JSX changes.

Trading Desk: A visual 5-step agent pipeline (Register → Shield → Lens → Seer → Edge) that runs real A2A calls to each OpenClaw agent, ranks all resource types (GPU, Agent, Human, DePIN) by reputation signals, and settles the optimal lease via Edge's x402 payment on Hedera.

Notable hack: We discovered Blocky402's Hedera testnet support isn't documented on their website but IS live on their API — confirmed by curling https://api.testnet.blocky402.com/supported and finding {"network":"hedera-testnet","x402Version":1,"extra":{"feePayer":"0.0.7162784"}}.

background image mobile

Join the mailing list

Get the latest news and updates