0x
The tool queries the 0x routing engine to aggregate quotes, pricing, and liquidity across multiple sources.
What is 0x?
0x brings together liquidity aggregation and swap apis. Aggregates deep liquidity from over 150 sources (spanning DEXs, AMMs, and professional market makers). Generates executable quotes and calldata for token swaps using approval frameworks like AllowanceHolder and Permit2.
Its documented workflow includes: To use 0x APIs or toolings such as the 0x CLI, users must sign up for a free account at the 0x Dashboard to generate an authentication API key (0x-api-key). The 0x CLI can be installed directly via prebuilt binary using automated shell scripts for macOS or Linux (supporting x86_64 and arm64 architectures), which fetch releases from GitHub and verify SHA-256 checksums into ~/.local/bin. Before transaction execution, the workflow includes built-in transaction simulation and prompts for user confirmation (or outputs machine-readable JSON envelopes for programmatic/AI agent use).
The platform documentation describes wallet access this way: Operates via self-custody wallets, utilizing local private keys or keypairs provided by the user.
Official resources
Supported networks
- Solana
- Ethereum
- Base
- Arbitrum
- Polygon
- Tron
0x features
Liquidity Aggregation
Aggregates deep liquidity from over 150 sources (spanning DEXs, AMMs, and professional market makers).
Swap APIs
Generates executable quotes and calldata for token swaps using approval frameworks like AllowanceHolder and Permit2.
Cross-Chain API
Provides ready-to-sign bridge quotes and tracking across multi-chain assets.
Gasless API
Enables gasless transactions by allowing applications or sponsors to cover user fees.
Agent Skills & MCP Server
Bundled CLI agent skills (0x-trade) and Model Context Protocol (MCP) server integration to allow AI coding agents to interact natively with the command-line interface and documentation.
How to use 0x
API Access
To use 0x APIs or toolings such as the 0x CLI, users must sign up for a free account at the 0x Dashboard to generate an authentication API key (0x-api-key).
CLI Installation
The 0x CLI can be installed directly via prebuilt binary using automated shell scripts for macOS or Linux (supporting x86_64 and arm64 architectures), which fetch releases from GitHub and verify SHA-256 checksums into ~/.local/bin.
Simulation & Validation
Before transaction execution, the workflow includes built-in transaction simulation and prompts for user confirmation (or outputs machine-readable JSON envelopes for programmatic/AI agent use).
Execution & Settlement
Swaps or cross-chain bridge orders are signed and submitted directly on-chain via the underlying 0x Settler smart contracts or network-appropriate instruction formats.
Who is 0x for?
0x is suited to users looking for liquidity aggregation and swap apis on EVM-Compatible Chains (including Ethereum, Arbitrum, Base, Polygon, and others). Its documented workflow includes wallet funding and balance management.
Before you use it
- Tools such as the 0x CLI are explicitly noted to be in beta and under active development; command contracts, flags, and output formats may shift between releases.
- Developers and advanced users are advised to pin exact tool/API versions and review release notes prior to implementing them in automated production setups.
