One API call to swap any token on any of 8 supported chains. Purple Flea's Wagyu aggregator simultaneously queries 1inch, Paraswap, Jupiter, Li.Fi, and 0x to find the best execution price, then routes your swap through whichever gives the most output. No manual bridge hunting. No split transactions. Just swap.
The Wagyu aggregator runs behind every quote request. It fans out to all available liquidity sources in parallel, collects their output amounts, compares them accounting for gas costs and fees, and returns the single best route. Your agent gets the best price automatically — no source selection required.
The aggregator queries all sources simultaneously and picks the one returning the highest output amount after all fees. Your agent never leaves money on the table due to fragmented liquidity.
For cross-chain swaps, Li.Fi's bridging intelligence finds the optimal route — whether that means bridging then swapping, or swapping then bridging, depending on which produces more output tokens at the destination.
Every quote response includes the expected price impact as a percentage. If impact exceeds 1%, a warning flag is set. Your agent can inspect this before executing and decide whether to proceed or split the swap.
Every major chain your agent might hold assets on is supported — from EVM chains to Solana, Tron, and Bitcoin. Same-chain swaps complete in seconds. Cross-chain transfers estimate completion times based on bridge latency.
All swap endpoints are served from wallet.purpleflea.com.
Every request requires a bearer token in the Authorization header.
All bodies are JSON.
from_chain, to_chain, from_token, to_token, amount.
quote_id from the quote response to lock in the quoted rate. Quotes are valid for 30 seconds after issuance. Returns an order_id for status tracking.
pending, bridging, swapping, completed, or failed.
Includes source transaction hash, destination transaction hash (when available), estimated completion time, and actual received amount on completion.
| Parameter | Type | Description | Required |
|---|---|---|---|
| from_chain | string | Source chain identifier: ethereum, base, polygon, arbitrum, bnb, solana, tron, bitcoin |
Required |
| to_chain | string | Destination chain identifier. Can be the same as from_chain for same-chain swaps. |
Required |
| from_token | string | Token to swap from. Use token symbol (e.g. ETH, USDC) or contract address. |
Required |
| to_token | string | Token to receive. Use token symbol or contract address on the destination chain. | Required |
| amount | string | Amount of from_token to swap, in token units (e.g. "1.5" for 1.5 ETH, "100" for 100 USDC). |
Required |
| slippage_bps | integer | Maximum acceptable slippage in basis points. Default: 50 (0.5%). Set lower for stable pairs, higher for volatile tokens or large sizes. |
Optional |
| recipient | string | Destination address for the output tokens. Defaults to the wallet address associated with the API key. | Optional |
Slippage and price impact: slippage_bps sets the maximum deviation from the quoted price your agent will accept. If execution price moves beyond this, the transaction reverts and no funds are lost. Price impact (shown in quote response as price_impact_pct) is the market movement caused by your order size — distinct from slippage. Inspect both fields before executing large swaps.
Completion time depends on whether the swap stays on one chain or crosses a bridge. Same-chain swaps are limited by block time. Cross-chain swaps depend on bridge finality requirements — the status endpoint keeps your agent informed throughout.
Both examples follow the same pattern: get a quote, confirm the price impact is acceptable, then execute and poll for completion.
The cross-chain swap API is a building block for any agent that manages assets across multiple chains or protocols. Here are the three most common patterns.
An agent holding assets across chains runs rebalancing logic on a schedule: it checks allocations against targets, calculates the optimal swap path to restore balance, and executes via the swap API. No manual cross-chain treasury management required.
After a Hyperliquid position closes with profit in USDC, an agent bridges a portion to Solana to take advantage of higher yield rates on Solana DeFi. The swap API handles the USDC → SOL conversion and Arbitrum → Solana bridge in a single call.
An agent operating on multiple chains occasionally runs low on native gas tokens. It monitors native balances via the wallet API and automatically tops up by swapping a small amount of USDC to the required gas token on the chain where it is running low.
One fee covers everything — Purple Flea's service, the aggregator routing, and a contribution to the referral program. No subscription, no per-call charge, no hidden markups on routes.
One API. Eight chains. Best rate on every swap. 0.1% fee, 10% referral share.