

Case Study
"The ease, speed, and efficiency of 0x Swap API, along with the exceptional support from the 0x team, has been a game changer for us."
Swap
API
"The ease, speed, and efficiency of 0x Swap API, along with the exceptional support from the 0x team, has been a game changer for us. Their collaboration not only streamlined our integration but also empowered us to innovate and deliver a superior trading experience to our users."
- Sarvesh Jain, CTO at Moxie
Moxie is an onchain AI assistant - analyzing transactions, unlocking social alpha, and executing trades on users behalf.
Moxie offers a fully-featured AI platform:
In this case study, we will take a look at how 0x helps power swaps for Moxie’s AI agents.
Moxie was founded in August 2024 by the team behind Airstack. Airstack pioneered early onchain AI tech in 2022 with developer tooling that used natural language to write GraphQL queries, combining onchain and offchain data in a unified response.
Originally launched on Farcaster, Moxie enabled users to earn rewards by posting social content and launch creator coins. Since then, the collective market cap of Moxie creator coins has topped over $20M.
Late in 2024, the Moxie team began planning to expand their footprint on Base and layer utility on top of the now thriving Moxie ecosystem. In an effort to provide even more utility to users, the team began scoping its AI Agents, backed by its developer-charged Skills Marketplace.
AI agents are autonomous agents designed to analyze data, execute actions, and interact with smart contracts - providing intelligent automation onchain. Agents hold the potential to unlock onchain alpha with automated analysis of onchain and offchain data, optimized strategies, and automated trading.
With trading at the heart of AI agents, Moxie needed support for thousands of tokens on Base with deep liquidity to ensure a superior agent trading experience for users, while minimizing engineering time so the team could focus on building out the rest of the product.
Moxie’s key challenge was finding a solution that offered a simple and efficient swap API to streamline the user experience. In addition, the team required reliable support to ensure a smooth integration process.
0x provided Moxie with easy-to-use and reliable API infrastructure. The result:
The Moxie AI agent can analyze both onchain and off-chain data to provide deeper insights to users. It conducts transaction analysis to recommend tokens based on historical buying patterns and trends among favorite creators. Additionally, it performs sentiment analysis on tweets and Farcaster casts, helping users gauge market sentiment and identify potential trading opportunities.
Swaps are one of the primary use cases of the Moxie AI agent.
Users can buy, sell, and manage their portfolios using natural language commands, making token swaps more intuitive and seamless. The agent optimizes trade execution by analyzing onchain liquidity, selecting the best swap routes, and minimizing slippage and gas fees.
Moxie integrated 0x’s Swap API to power the core swap functionality of the Moxie AI agent. By leveraging Swap API, Moxie was able to gain access to an efficient routing algorithm that ensures token swaps are executed along the optimal path across various liquidity sources, reducing slippage and ensuring the best pricing.
The Moxie team found integrating 0x to be a remarkably simple and seamless experience, with a straightforward API and comprehensive documentation allowing for rapid development and reliable processing of natural language swap commands.
Moxie AI goes beyond simple automation—it’s designed to be an intelligent and extensible agent for creators and communities. One of Moxie’s key differentiators is its skills-based architecture:
Using the popular ElizaOS framework, Moxie also makes it easy for any existing Eliza plug-in to quickly integrate into Moxie agents - allowing devs to easily monetize and scale their plug-in through Moxie.
0x v2 makes it easy for developers to embed swaps in their onchain apps, from AI agents to SocialFi, with the best all-in prices.
Built to meet the needs of growing Web3 businesses, 0x v2 offers the most seamless swap experience with optimal trade execution, powerful new monetization controls, and enhanced security baked in at the ground level.
0x v2 is the next-generation trading engine for serious onchain apps. Join over a dozen teams, including Definitive, Matcha, and Coinbase, already building with 0x v2.
Sign-up for a free account on the 0x Dashboard to get started.
3 days
to integrate
12k+ traders
since launch
$4M+
in trading volume
Ready to get started?
Create a 0x account and embed swaps in your app, for free, in less than five minutes.