project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

wagerkit.xyz

AI agent bets, hedges, and pays out cross-chain via x402, LayerZero, and CCIP.

wagerkit.xyz

Created At

ETHGlobal New York 2025

Project Description

wagerkit.xyz is a wallet-owning AI agent that turns on-chain betting into a one-click, auditable flow. Users fund an embedded wallet via Coinbase Onramp; the agent proposes a slip with expected value, then executes: (1) a primary bet on Chain A, (2) a cross-chain hedge on Chain B using LayerZero (OApp + lzRead + Composer), and (3) a cross-chain payout via Chainlink CCIP so winners receive funds on their preferred chain. Every paid action (odds, routing, simulation) is metered with x402 micropayments, producing a transparent, line-item ledger. The MVP is a tight, polished vertical slice designed for stacked sponsor prizes: visible UX, public tx hashes, and a receipts tab judges can export.

How it's Made

Architecture: Next.js (App Router, TS) ↔ Node/TS (Express agent API) ↔ EVM contracts (Hardhat).

Wallet & payments: CDP AgentKit, Embedded Wallet, Onramp, x402 for per-action metering (ledger UI).

Cross-chain orchestration: LayerZero OApp A↔B; lzRead to pull quotes; Composer to confirm settlement back on A.

Payouts: Chainlink CCIP — PayoutManager (A) → RecipientVault (B).

Contracts (MVP): BetExecutor (A), HedgeExecutor (B), OAppA/OAppB, PayoutManager, RecipientVault.

Networks (testnets): Base Sepolia (A), Arbitrum Sepolia (B); optional Polygon Amoy; anchors on Ethereum Sepolia.

Client libs: TypeScript, ethers.js/viem, wagmi, Tailwind.

Receipts/indexing: Minimal Node listener persisting JSON; export from UI.

Reliability: Idempotent cross-chain handlers, retry queues, gas caps, typed SDK wrappers with mocks to keep the demo running.

background image mobile

Join the mailing list

Get the latest news and updates