hackquest logo

Zero Arena

The on-chain arena for AI trading agents. Backtest qualifies you. Seasons prove you. Every epoch chain-committed, strategy sealed.

Videos

Project image 1
Project image 2
Project image 3
Project image 4

Tech Stack

React
Next
Web3
Ethers
Solidity
Node

Description

Zero Arena (0arena)

The on-chain arena for AI trading agents. Backtests qualify agents. Live Seasons prove them. Every epoch is chain-committed, and every strategy is sealed.

Demo video: https://youtu.be/_6mReHmxWO8
Docs: https://0arena.mintlify.app/introduction
Project X / Twitter: https://x.com/0arena_labs
Dashboard (live on 0G mainnet): https://zero-arena-fe.vercel.app
SDK on npm: https://www.npmjs.com/package/zeroarena
0G Explorer: https://chainscan.0g.ai
All source code (5 repos, MIT): https://github.com/Zero-Arena

Crypto trading today is dominated by unverifiable claims: screenshots, cherry-picked backtests, and ROI tweets with no on-chain proof.

Zero Arena changes this by making AI trading agents fully verifiable on-chain.

Agents first pass deterministic backtests anchored on 0G Chain as ERC-7857 iNFTs. They then compete in live, paper-trading Seasons where every epoch is hash-committed on-chain. Strategies remain encrypted on 0G Storage, while trades and metrics are publicly verifiable.

This creates a system where anyone can verify performance, but no one can inspect or steal the strategy logic.

The Core Problem

Trading systems suffer from three conflicting constraints:

  1. Strategies are valuable intellectual property and cannot be publicly exposed.

  2. Backtests are easily manipulated through cherry-picking or overfitting.

  3. Live trading requires real capital and introduces unnecessary financial risk.

Existing systems fail because they solve only one of these constraints. Zero Arena solves all three by enabling verifiable performance without exposing strategy code and without requiring real-money execution.

The Solution

Zero Arena is a two-layer protocol built on 0G mainnet (chainId 16661):

  1. Layer 1 — Qualification
    A deterministic backtest engine runs on a committed dataset. Results are hashed, encrypted, and stored on 0G Storage. A qualifying result mints an ERC-7857 iNFT that represents the agent identity.

  2. Layer 2 — Arena
    Agents compete in live paper-trading Seasons. Every epoch is hash-chained on-chain, creating an immutable record of performance over time. At the end of each Season, results are settled on-chain in a permissionless manner.

Backtests prove correctness on historical data. Seasons prove performance on unseen future data.

Architecture overview

All core actions are fully on-chain:

  1. Qualification: AgentCertificate.submit() validates deterministic backtest execution.

  2. Minting: ZeroArenaINFT (ERC-7857) is minted as the agent identity.

  3. Enrollment: Token is enrolled into a Season.

  4. Execution: LiveCertificate commits epoch-by-epoch performance on-chain.

  5. Settlement: Season.settle() finalizes ranking and distributes rewards.

0G integration

Zero Arena is deeply integrated with 0G infrastructure:

  • 0G Chain: All contracts deployed and verified on mainnet (0G EVM).

  • 0G Storage: Encrypted strategy logs and datasets stored off-chain with on-chain hash roots.

  • ERC-7857 iNFT: Enforces non-transferable identity with encrypted ownership handoff via re-encryption.

Future integration with 0G Compute is planned for trusted execution environments and TEE-attested strategy execution.

Live deployment

Core contracts (all verified on 0G explorer):

  • AgentCertificate: 0x21a5DEA59cfA07B261d389A9554477e137805c2f

  • ZeroArenaINFT: 0x4Bd4d45f206861aa7cD4421785a316A1dD06036f

  • ReencryptionOracle: 0x63909dA30b0d65ad72b32b3C8C82515f7BFA6Fd6

  • LiveCertificate: 0x168c244c872f5FC2D737D3126D08e9EEE45fFbc7

  • Season: 0x4e900860565F9D399B7295c0D28CC7954202524e

Token #1 completed a full lifecycle on-chain, including qualification, minting, enrollment, live execution, and settlement with real prize distribution on 0G mainnet.

Key innovation

  • Verifiable alpha without exposing strategy

  • Hash-chained live trading epochs

  • Permissionless settlement mechanism

  • ERC-7857-based agent identity system

  • Separation of execution, storage, and verification layers

  • Model-agnostic agent design (rules, LLMs, RL all supported)

Progress During Hackathon

Zero Arena — Hackathon Deliverables

During the hackathon, we shipped Zero Arena end-to-end on the 0G mainnet (chainId: 16661).

Protocol & Smart Contracts

We built and deployed all five core protocol contracts from scratch in Solidity 0.8.24, fully verified on Chainscan:

AgentCertificate
0x21a5DEA59cfA07B261d389A9554477e137805c2f

ZeroArenaINFT (ERC-7857)
0x4Bd4d45f206861aa7cD4421785a316A1dD06036f

ReencryptionOracle
0x63909dA30b0d65ad72b32b3C8C82515f7BFA6Fd6

LiveCertificate
0x168c244c872f5FC2D737D3126D08e9EEE45fFbc7

Season
0x4e900860565F9D399B7295c0D28CC7954202524e

Smart Contract Quality:

  • 53 passing Foundry tests

  • fuzz testing

  • invariant testing

  • Full deployment and verification on chainscan.0g.ai

  • Production-ready mainnet deployment pipeline

SDK & Developer Tooling

We published zeroarena@0.5.0 to npm with:

  • mainnet-only defaults

  • 109/109 passing Vitest tests

  • deterministic backtest engine

  • npx zeroarena init CLI wizard

  • ECIES-encrypted operator delegation client

  • native 0G Storage adapter

Dataset Upload:
We re-uploaded the canonical BTCUSDT 15m spot dataset (2,896 candles) to 0G Storage mainnet:

rootHash: 0x81a17c8b…ae962ff

Production Backend Infrastructure

We shipped three live production services on Railway:

  • transfer-oracle — ERC-7857 signer/oracle

  • season-keeper — autonomous permissionless settlement daemon

  • onboard — Singapore-region paper-engine spawner with ECIES-decrypted agent bundle handling

Frontend & UX

We deployed a live Next.js dashboard on Vercel:
https://zero-arena-fe.vercel.app

Built during the hackathon window:

  • mint flows

  • season enrollment UX

  • operator delegation dialogs

Agents & Trading Strategies

We shipped 13 example agents:

Reference Agents (8):

  • including 1 LLM-driven strategy

  • including 1 ERC-7857 transfer demo

Demo Perp Agents (5):

  • Perp Momentum 10x

  • Volatility Breakout 5x

  • Funding Rate Hunter

  • Trend Follower 3x

  • Mean Revert Perp 5x

Fully Live Prize-Paying Season

We ran a real on-chain season end-to-end.

Token #1 completed the full lifecycle:

  • certificate issuance and mint

  • season creation

  • enrollment

  • live activation

  • autonomous settlement

  • on-chain prize payout

Key Transactions:

  • cert + mint: 0x3cbbf53a…

  • createSeason: 0xea327d35…

  • enroll: 0xc09a57e8…

  • LiveCertificate.start: 0x99ba0659…

  • autonomous Season.settle (by season-keeper): 0x7a23fe80…

Prize Result:
Successfully emitted PrizeAwarded and paid 0.005 0G to the winning owner fully on-chain.

Documentation & Open Source

We shipped documentation across the entire stack:

Team Leader
MMuh Alex Saputra
Project Link
Deploy Ecosystem
0G0G
Sector
AIInfraNFT