Agentic Identity - X Layer - Hackathon Requirement
Autonomous Agents
Three specialized agents with distinct onchain identities on X Layer. Each has a dedicated agentic wallet, a defined role, and earns autonomously through the AUREX credit scoring system.
[PRICE]
AGENT 01 - Signal Generator
Price Signal Agent
Onchain Identity - X Layer
0xfA526dd65039E7ad827e666760A8F9505c9FE47C [view]Balance0.0000 OKB
Onchain OS: Onchain OS DEX Aggregator API
Monitors OKB/USDT price on X Layer via Onchain OS DEX Aggregator API. Calculates momentum over 30 data points to generate BUY/SELL/HOLD signals with confidence scores.
Onchain OS Endpoints
GET /api/v5/dex/aggregator/token-detail
-> Fetches real-time OKB price on X Layer
-> Updates every 2-minute cycle
Earns: x402 micro-payment from Allocator per cycle
Responsibilities
>Fetch live token prices from Onchain OS DEX API
>Calculate price momentum over 30 data point window
>Generate directional signal with confidence score
>Earn x402 fee per signal used in allocation cycle
[FLOW]
AGENT 02 - Signal Generator
Flow Signal Agent
Onchain Identity - X Layer
0xfA526dd65039E7ad827e666760A8F9505c9FE47C
[view]Balance0.0000 OKB
Onchain OS: Onchain OS Wallet API
Monitors active X Layer wallets via Onchain OS Wallet API. Aggregates net buying vs selling pressure to produce a smart money flow signal.
Onchain OS Endpoints
GET /api/v5/wallet/post-transaction/transactions
-> Reads wallet activity for 3 X Layer addresses
-> Aggregates net buy/sell pressure per cycle
Earns: x402 micro-payment from Allocator per cycle
Responsibilities
>Monitor X Layer wallet activity via Onchain OS
>Count buy vs sell transactions across smart wallets
>Generate net flow directional signal with confidence
>Earn x402 fee per signal used in allocation cycle
[ALLOC]
AGENT 03 - Capital Allocator
Allocator Agent
Onchain Identity - X Layer
0xa98f386E036433Ae0630F1d87B77f28F2011cEFE [view]Balance0.0000 OKB
Onchain OS: DEX Swap + x402 + MCP
The brain of AUREX. Weights signals by credit score, makes BUY/SELL/HOLD decision, executes trade on X Layer via Onchain OS DEX, pays agents via x402, and logs via MCP.
Onchain OS Endpoints
GET /api/v5/dex/aggregator/swap
-> Best-route swap execution on X Layer
-> x402 payments to both signal agents
-> MCP onchain decision logging per cycle
Earns: Trade profits minus signal agent fees
Responsibilities
>Calculate credit score for both signal agents
>Weight capital allocation by credit score
>Execute best-route swap via Onchain OS DEX API
>Pay signal agents via x402 on X Layer
>Log every decision onchain via MCP integration
>Update agent credit scores after trade outcome
System Design
Architecture Overview
+------------------------------------------------------------------+
| AUREX -- X Layer (Chain ID: 196) |
| Credit-Weighted Signal Capital Allocation |
+------------------------------------------------------------------+
+------------------+ +------------------+
| [PRICE] Agent01 | | [FLOW] Agent02 |
| Onchain OS | | Onchain OS |
| DEX API | | Wallet API |
| -> Price signal | | -> Flow signal |
+--------+---------+ +--------+---------+
| signal + confidence |
+------------+-----------+
|
v
+------------------------+
| Credit Scorer |
| score = acc x 70 |
| + pay x 30 |
+------------+-----------+
|
v
+------------------------+
| [ALLOC] Agent03 |
| Higher score -> |
| More capital weight |
| Onchain OS DEX Swap |
+------------+-----------+
|
+--------------+--------------+
| |
v v
x402 payments MCP onchain log
to signal agents immutable record
(X Layer TX) (X Layer TX)
Powered by: Onchain OS - DEX API - Wallet API - x402 - MCP