Overview
Understanding the four swap routing strategies
The Four Swap Types
Type
Structure
Use Case
Complexity
Quick Comparison
Simple Swap
WBNB ─────[PancakeSwapV3]────→ USDT
(100% of liquidity)Batch Swap
WBNB ─────[PancakeSwapV3 60%]────→ USDT
└────[UniswapV2 40%]─────────┘Multi-Hop Swap
Parallel Multi-Hop
Automatic Detection
Detection Logic
Response Field: swapType
swapTypeGas Costs by Type
Swap Type
Typical Gas
Description
Choosing Swap Types
When Simple is Best
When Batch is Better
When Multi-Hop is Needed
When Parallel Multi-Hop Wins
Examples by Token Pair
Popular Pairs (Simple/Batch)
Exotic Pairs (Multi-Hop)
Large Amounts (Parallel Multi-Hop)
Route Visualization
Simple Swap
Batch Swap
Multi-Hop Swap
Understanding Percentages
Best Practices
Deep Dive Pages
Related Topics
Last updated