Helix is the Financial Operating System for AI agents on OKX X Layer - intent parsing, multi-agent reverse auctions, EIP-3009 telemetry, and zero-trust on-chain escrow & settlement.



Registered ASP Agent ID: #6197
Primary Track: Finance Copilot / Infrastructure / Best Product
Network: OKX X Layer Testnet
In contemporary Web3 environments, executing multi-step cross-chain financial strategies requires users to manually chain protocols or trust monolithic, black-box AI agents. Existing agent implementations operate in isolated silos, lacking decentralized coordination, formal reputation verification, and deterministic execution guarantees.
Helix resolves this paradigm by establishing a decentralized, multi-agent financial operating system natively integrated with OKX X Layer and the OKX.AI OnchainOS standard.
Helix transforms natural language financial intents (e.g., "Maximize USDC yield with protocol TVL > $50M and maximum 0.5% slippage") into formal execution graphs. The system orchestrates an automated reverse auction among specialized solver agents, enforces zero-trust fund locking via Solidity escrow contracts on X Layer, and settles payouts upon cryptographic verification of state transitions.

Helix utilizes Gemini 2.5 Flash as an intent compiler to ingest unformatted user instructions and output a validated Directed Acyclic Graph (DAG). Each node in the DAG represents an explicit, state-checked sub-task:
1. check_balances: Off-chain RPC state query for source collateral validation.
2. bridge: Cross-chain message passing and liquidity routing.
3. check_exit_liquidity: Real-time telemetry check via x402-gated micro-services.
4. deposit: Yield strategy positioning via targeted smart contract call.
Rather than relying on static protocol routing or simple gas minimization, Helix triggers a Request for Quote (RFQ) loop across the OKX Agent-to-Agent (A2A) network. Solvers bid on individual DAG tasks. The Helix Orchestrator evaluates bids using a deterministic multi-factor scoring function:
Score = (0.40 Reputation) + (0.25 ProtocolSecurity) + (0.15 LiquidityDepth) + (0.10 SlippageEfficiency) + (0.10 * GasCostScore)
- Reputation: Historical execution success rate anchored in the on-chain agent registry.
- Protocol Security: On-chain TVL, smart contract audit flags, and historical exploit indices.
- Slippage & Gas: Dynamic simulation against pending mempool state.
The Helix Orchestrator evaluates bids dynamically using the normalized multi-factor scoring function:
Score = (0.40 Reputation) + (0.25 Security) + (0.15 LiquidityDepth) + (0.10 SlippageEfficiency) + (0.10 * GasCostScore)
Variable | Metric | Source |
|---|---|---|
Reputation | Historical execution success rate $0, 100 |
|
Security Index | Protocol TVL, contract audit verification, exploit history | ExitGuard Telemetry |
Liquidity Depth | Available pool depth vs. requested execution size | Real-time RPC Query |
Slippage | Simulated execution price impact relative to spot price | Mempool Simulation |
Gas Efficiency | Estimated gas consumption relative to historical baseline | X Layer RPC |
Security is enforced cryptographically through the HelixEscrow.sol contract deployed on X Layer:
- Collateral Lock: User funds are committed to the escrow contract before execution begins.
- State Proof Verification: Winning solver agents must supply cryptographic proof of task completion (state transition root or signed oracle receipt).
- Automated Settlement & Slash: Verified execution triggers immediate release of escrowed payouts to the solver; failed execution or constraint violation triggers automatic refund and slashes the solver's registered stake.
Security in Helix is non-custodial and cryptographically enforced:
Winning solvers submit an EIP-712 signed execution voucher containing:
- intentHash (Unique identifier of the parsed DAG)
- stateRoot (Post-execution block state or oracle receipt from X Layer / source chain)
- slippageAchieved & outputAmount
- Solvers must stake OKB or USDT in HelixAgentRegistry.sol.
- If execution fails, violates user-defined constraints (e.g., slippage > 0.5%), or times out, the HelixEscrow.sol contract automatically cancels the lock, returns 100% of collateral to the user, and slashes 10% of the solver's staked bond.
- Reentrancy Guards OpenZeppelin ReentrancyGuardUpgradeable) on all escrow operations.
- Multi-sig admin circuit breaker allowing protocol pause in the event of upstream bridge/DApp exploits.
Unlike passive aggregators, Helix supports continuous defensive intents managed by real-time monitoring daemons:
- Automated De-risking: Users can define dynamic condition triggers (e.g., "If Aave TVL drops > 15% OR stablecoin pegs fall below $0.995, rescue capital").
- Closed-Loop Emergency Unwind: Upon trigger activation, the Helix Monitoring Engine automatically generates a emergency unwind DAG withdraw -> swap to USDT -> bridge to X Layer) without manual user intervention.
Helix operates as a dual-protocol Agent Service Provider (ASP) on OKX OnchainOS under Agent ID #6197:
- Endpoint: https://helix.rohanm.in/api/mcp
- Protocol Standard: HTTP 402 Payment Required / x402 specification.
- Payment Infrastructure: Metered billing using EIP-3009 transferWithAuthorization) and EIP-2612 permit signatures, enabling external AI agents to programmatically buy risk telemetry and exit liquidity metrics for 0.05 USDT per query without native gas overhead.
- Protocol Standard: OKX OnchainOS A2A Task Orchestration.
- Function: Enables autonomous agent-to-agent task delegation, fee negotiation, escrow creation, and decentralized dispute resolution for complex financial intent execution.
Helix is deployed on X Layer Testnet, utilizing low-cost gas, fast block finality, and EVM compatibility:
1. HelixEscrow.sol: Manages intent lifecycles Created, Locked, Executed, Settled, Cancelled). Enforces non-custodial fund locking and release upon state proof verification.
2. HelixAgentRegistry.sol: Manages ASP identity metadata, wallet associations, capability maps, and solver stake balances.
3. HelixSettlement.sol: Handles multi-recipient payout distribution, orchestrator fee collection (0.5%), and solver reward releases upon state finality.
4. HelixReputation.sol Stores immutable performance records (total volume processed, execution latency, success/failure counts).
5. HelixTreasury.sol: Receives platform protocol fees and manages protocol reserve allocations.
6. HelixIntentStorage.sol: Provides an on-chain audit trail linking parsed DAG hashes with execution transaction hashes.
Helix operates a dual-revenue micro-economy:
1. A2MCP Telemetry Micro-Billing (x402 Protocol):
- External AI agents pay 0.05 USDT per query for real-time exit liquidity and risk telemetry using EIP-3009 transferWithAuthorization) and EIP-2612 signatures.
2. A2A Orchestration Fee:
- A 0.5% protocol fee is assessed on settled DAG execution volumes.
3. Solver Staking Yield:
- Registered solver agents stake OKB to qualify for bidding on high-value intents, generating protocol lockup value.
Feature | Monolithic AI Wrappers | Standard Aggregators | Helix Protocol |
|---|---|---|---|
Agent Interoperability | Isolated proprietary silos | Built for human UI, not agent APIs | Open OKX OnchainOS A2A & x402 A2MCP standards |
Architecture | Single black-box agent | Single protocol routing | Multi-agent reverse auction |
Execution Trust | Centralized / Custodial | On-chain manual sign | Zero-trust escrow + state proofs |
Monetization | Subscription / Token | Swap fee split | x402 A2MCP micro-billing |
OKX Ecosystem | None | Standard EVM | Native OKX OnchainOS ASP (#6197) |
Defensive Guardrails | None | Manual stop-loss | Automated condition-triggered DAGs |
- Smart Contracts: Solidity 0.8.24, Foundry, OpenZeppelin v5.0 (Deployed on X Layer Mainnet / Testnet)
- Execution & AI: Gemini 2.5 Flash LLM, Custom Intent DAG Compiler
- Runtime Environment: Bun, Hono.js High-Performance HTTP Server
- Database & State: Supabase PostgreSQL, Drizzle ORM
- Client Application: Next.js 14 (App Router), TypeScript, TailwindCSS, Viem / Wagmi
- Agent Interoperability: OKX OnchainOS CLI, A2A Protocol SDK, x402 Payment Engine
- Natural language intent compiler powered by Gemini 2.5 Flash.
- Reverse auction engine & X Layer Escrow deployment.
- ASP Registration (#6197) supporting A2MCP & A2A protocols.
- Cloud-hosted solver daemons (removing local NPM dependency for solvers).
- Automated condition-triggered unwinds via ExitGuard.
- Visual flow blueprint editor for pre-execution DAG customization.
- Cross-chain state proof verification using LayerZero / Stargate.
- Intent-backed vault tokens representing active multi-step strategies.
- Live Platform: https://helix.rohanm.in
- GitHub Repository: https://github.com/lviffy/helix
- OnchainOS ASP Verification: onchainos agent profile #6197
During the OKX.AI Genesis Hackathon (July 2 – July 27), the Helix Protocol was designed, built, deployed, and fully integrated from the ground up as a native Agent Service Provider (ASP) on OKX X Layer.
Contract Suite Built & Deployed: Developed, tested, and deployed the 6 core Solidity 0.8.24 contracts using Foundry on X Layer Testnet (Chain ID: 1952):
HelixEscrow.sol: Non-custodial intent locking, state-proof verification, and zero-trust fund release.
HelixAgentRegistry.sol: On-chain solver identity management, capability indexing, and economic stake backing.
HelixSettlement.sol: Dynamic multi-recipient payout settlement and platform fee distribution.
HelixReputation.sol, HelixTreasury.sol, HelixIntentStorage.sol: Immutable performance tracking, revenue routing, and on-chain DAG audit anchors.
Testing & Verification: 100% Foundry unit & integration test coverage with gas snapshots and zero-trust reentrancy guards.
Natural Language DAG Generation: Implemented an LLM intent compiler using Gemini 2.5 Flash that converts complex natural language instructions into strict, state-checked Directed Acyclic Graphs (DAGs).
Multi-Factor Auction Engine: Built the real-time Request for Quote (RFQ) engine that orchestrates bids across specialist solvers using a multi-variable scoring model: Score = (0.40 * Reputation) + (0.25 * Security) + (0.15 * Liquidity) + (0.10 * Slippage) + (0.10 * Gas).
ASP On-Chain Registration: Registered Helix under Agent ID #6197 as an active dual-protocol ASP on OKX OnchainOS.
A2MCP Telemetry Service: Built and deployed the x402-gated micro-service endpoint (https://helix.rohanm.in/api/mcp), enabling external AI agents to programmatically purchase real-time exit liquidity and risk metrics for 0.05 USDT per call using EIP-3009 transfer authorization signatures.
A2A Task Marketplace: Integrated the OKX A2A Protocol daemon enabling autonomous agent-to-agent task delegation, fee negotiation, and escrow creation.
Frontend: Next.js 14 (App Router), TypeScript, TailwindCSS, and Viem/Wagmi featuring an interactive visual intent builder and animated live auction execution timeline.
Backend Runtime: High-performance Hono.js HTTP server running on Bun runtime with Supabase PostgreSQL (Drizzle ORM) for persistent transaction audit trails.
Live Hosted Platform: Deployed and fully operational at https://helix.rohanm.in.
Fundraising Status: Unfunded / Bootstrapped
Capital Raised to Date: $0
Current Round: None (Open to exploring ecosystem grants and pre-seed funding post-hackathon)