
Eiko Agent
LLM-NATIVE x402 PAYMENT LAYER
AI agents often need to pay for APIs but don't have the exact token required. When an agent encounters a 402 Payment Required response, Eiko Agent automatically swaps tokens (e.g. SOL -> USDC) and handles payments seamlessly -- zero manual intervention needed.
The x402 Flow
From 402 Payment Required to seamless execution. Six steps, fully automated, zero friction.
AGENT REQUESTS API
AI agent calls an API endpoint that requires payment
402 RECEIVED
Server responds with HTTP 402 Payment Required + token info
EIKO INTERCEPTS
Eiko Agent detects the 402 and identifies the required token
AUTO-SWAP
Automatically swaps agent's tokens (e.g. SOL -> USDC) via Jupiter
PAYMENT SENT
Pays the API in the exact token required -- zero friction
RESPONSE DELIVERED
Agent receives the API response. Fully automated, no intervention.
Key Innovation
First automated token swapping for x402 protocol. Production-ready, 22 tests passing, live on mainnet.
AUTOMATED TOKEN SWAPS
When an agent needs USDC but only has SOL, Eiko Agent auto-swaps via Jupiter aggregator before payment. No manual token management.
x402 PROTOCOL NATIVE
Built from the ground up for the x402 payment standard. Detects 402 responses, parses payment requirements, and executes seamlessly.
PRODUCTION READY
22 tests passing. Live on Solana mainnet. Battle-tested with real transactions and real AI agent workloads.
0% PLATFORM FEES
Zero platform fees on all swaps. Agents only pay Solana network fees. Sustainable model, maximum value for users.
ANY TOKEN PAIR
Supports any Solana token pair via Jupiter routing. SOL, USDC, USDT, and any SPL token the agent holds or needs.
TRUSTLESS EXECUTION
All swaps execute on-chain via Solana smart contracts. Fully verifiable, fully transparent. No custodial risk.
AGENT NETWORK READY
Designed for multi-agent systems. Any agent in the Eiko network can leverage tools for frictionless payments.
COMPOSABLE SDK
Drop-in SDK for any Solana agent framework. A few lines of code to add automated x402 payment handling.
Drop-In SDK
A few lines of code. Your agent handles x402 payments automatically.
// Eiko Agent -- Automated x402 Payment Handlerimport { EikoTools } from "@eiko/sdk";const tools = new EikoTools({ rpc: process.env.SOLANA_RPC, wallet: agentWallet, slippage: 0.5, // 0.5% max slippage});// Agent calls a paid APIconst response = await tools.fetch( "https://api.example.com/data", { // If 402 is returned, Eiko handles it: // 1. Parses the x402 payment header // 2. Checks agent wallet for required token // 3. Auto-swaps if needed (SOL -> USDC) // 4. Sends payment on-chain // 5. Retries the original request autoSwap: true, maxPayment: "5.00", // max 5 USDC });console.log(response.data);// -> { result: "..." } -- seamless
Enabling True Agent Automation
MoltyDEX removes the last friction point for autonomous AI agents. No more manual token management. No more failed API calls due to wrong tokens. Just seamless, automated, on-chain payments.