AUREXAUTONOMOUS CAPITAL ALLOCATIONLIVENETWORKX LAYER 196ONCHAIN OSDEX + WALLET + x402 + MCPAGENTS3 AUTONOMOUS OPERATINGAUREXAUTONOMOUS CAPITAL ALLOCATIONLIVENETWORKX LAYER 196ONCHAIN OSDEX + WALLET + x402 + MCPAGENTS3 AUTONOMOUS OPERATING
Best Economy Loop ยท OKX Build X Season 2

The Economy Loop

AUREX runs a self-sustaining earn-pay-earn cycle. Agents generate signals, earn x402 fees for accuracy, and the entire system improves autonomously with every cycle โ€” zero human input required.

Onchain Transactions
0
total X Layer txns
Trades Executed
0
DEX swaps via Onchain OS
x402 Payments
0
inter-agent micro-pays
MCP Logs
0
onchain decision records
Full Autonomous Cycle
Economy Loop Flow
Running autonomously
๐Ÿ“ŠSTEP 01Price Signal GenerationRead ยท No Gas
โ€บ
๐Ÿ”STEP 02Flow Signal GenerationRead ยท No Gas
โ€บ
๐Ÿ“ˆSTEP 03Credit Score EvaluationOff-chain
โ€บ
โš–๏ธSTEP 04Credit-Weighted DecisionOff-chain
โ€บ
๐Ÿ”„STEP 05Swap Execution on X Layerโ›“ Real X Layer TX
โ€บ
๐Ÿ’ณSTEP 06x402 Inter-Agent Paymentsโ›“ 2 Real X Layer TXs
โ€บ
๐Ÿ“กSTEP 07MCP Onchain Loggingโ›“ Real X Layer TX
โ€บ
๐Ÿ”STEP 08Credit Score UpdateAuto-adjusting
DEX Aggregator APIWallet APIx402 ProtocolMCP IntegrationX Layer Chain 196
STEP 01
๐Ÿ“Š
Price Signal GenerationOnchain OS DEX Aggregator APIRead ยท No Gas

Price Agent reads real-time OKB/USDT price from Onchain OS DEX API every 2 minutes. Calculates momentum over 30 data points and returns BUY/SELL/HOLD with confidence score.

GET /api/v5/dex/aggregator/token-detail โ†’ chainId: 196 (X Layer) โ†’ Output: { direction, confidence, price }
STEP 02
๐Ÿ”
Flow Signal GenerationOnchain OS Wallet APIRead ยท No Gas

Flow Agent monitors 3 active X Layer wallets via Onchain OS Wallet API. Counts net buy vs sell pressure across all wallets to generate a smart money flow signal.

GET /api/v5/wallet/post-transaction/transactions โ†’ 3 X Layer wallets monitored โ†’ Output: { direction, netFlow }
STEP 03
๐Ÿ“ˆ
Credit Score EvaluationLocal computationOff-chain

Allocator reads both agent credit histories. Score = (accuracy ร— 70%) + (payment reliability ร— 30%). Higher score = more capital allocated next cycle.

score = (correctSignals/total ร— 70) + (onTimePayments/total ร— 30) Range: 0โ€“100
STEP 04
โš–๏ธ
Credit-Weighted DecisionAllocator logicOff-chain

Signals are combined proportionally to credit scores. Agent with score 79 gets 54% influence, score 68 gets 46%. Highest weighted vote determines BUY/SELL/HOLD.

weight = score / (score1 + score2) weightedVote[direction] += weight finalDecision = maxVote()
STEP 05
๐Ÿ”„
Swap Execution on X LayerOnchain OS DEX Aggregator Swapโ›“ Real X Layer TX

If decision is BUY or SELL, Allocator executes real swap via Onchain OS DEX. Routes through 500+ DEXs on X Layer for best price. Creates verifiable onchain transaction.

GET /api/v5/dex/aggregator/swap โ†’ Routes across 500+ X Layer DEXs โ†’ Creates: Real TX ยท AI judge scans
STEP 06
๐Ÿ’ณ
x402 Inter-Agent Paymentsx402 Protocolโ›“ 2 Real X Layer TXs

After trade, Allocator pays both signal agents via x402 micro-payments. Two autonomous machine-to-machine transactions on X Layer. No human approval needed.

TX 1: Allocator โ†’ Price Agent (x402) TX 2: Allocator โ†’ Flow Agent (x402) Amount: SIGNAL_FEE_ETH each
STEP 07
๐Ÿ“ก
MCP Onchain LoggingMCP Integrationโ›“ Real X Layer TX

Allocator logs the complete cycle decision onchain via MCP. Creates immutable verifiable record of every signal, credit score, decision, and outcome. AI judge verified.

encodes: signals + scores + decision broadcasts: self-TX with data field Immutable: X Layer explorer verified
STEP 08
๐Ÿ”
Credit Score UpdateLocal + MCP logAuto-adjusting

After trade outcome known, both agent credit scores update automatically. Correct signal = score rises. Wrong signal = score falls. Next cycle allocation adjusts accordingly.

if (tradeProfit > 0) correctSignals++ agentScore = recalculate() nextAllocation = scoreWeighted()
x402 Protocol ยท X Layer
Recent Inter-Agent Payments
0 total
๐Ÿ’ณNo x402 payments yetx402 payments appear here after first trade execution. Each trade triggers 2 payments โ€” one to each signal agent.