Skip to main content

Overview

Monei integrates with leading DEX aggregators to provide the best swap rates across multiple decentralized exchanges. This guide covers token swaps on EVM networks. What you’ll learn:
  • Get swap quotes and rates
  • Swap native tokens to ERC-20 tokens
  • Swap ERC-20 to ERC-20 tokens
  • Swap ERC-20 tokens back to native
  • Price impact and slippage
  • Gas optimization for swaps

Swap Types

Native → Token

Swap ETH/BNB/MATIC to any ERC-20 token

Token → Token

Swap between any two ERC-20 tokens

Token → Native

Swap ERC-20 tokens back to native currency

Get Swap Quote

Always get a quote before executing a swap to see the exchange rate and estimated output.

Native to Token Quote

Response:

Token to Token Quote

Token to Native Quote


Execute Swap

Swap Native to Token

Response:

Swap Token to Token

Swap Token to Native


Understanding Quote Details

Key Quote Fields

Price Impact

Price impact shows how much your trade will move the market price:

Slippage Protection

Slippage is the difference between expected and actual output amounts. Default Slippage: 0.5% (configurable)
Recommended Slippage:

Gas Optimization

Network Comparison for Swaps

Optimize Swap Costs


Common Token Pairs

Stablecoin Swaps (BSC)


Best Practices

Always Get Quote

Get fresh quote before each swap (quotes expire in ~5 min)

Check Price Impact

Avoid swaps with high price impact (>5%)

Set Slippage

Use appropriate slippage for market conditions

Monitor Gas

Factor gas costs into swap profitability

Use Cheap Networks

Polygon/BSC for small swaps, Ethereum for large

Test Small First

Test with small amount before large swaps

Troubleshooting

Error: Transaction reverted due to slippageCause: Actual output fell below minimum due to price movementSolution:
  • Increase slippage tolerance
  • Get fresh quote
  • Split into smaller trades
  • Try during less volatile periods
Error: Not enough liquidity for swapSolutions:
  • Reduce swap amount
  • Try different network
  • Use more liquid token pairs (USDT/USDC)
  • Check DEX liquidity on explorer
Error: Quote ID expired or invalidCause: Quotes are valid for ~5 minutesSolution:
  • Get fresh quote before swapping
  • Execute swap immediately after quote
  • Don’t reuse old quotes
Warning: Price impact > 5%Recommendations:
  • Split into multiple smaller swaps
  • Use different network with more liquidity
  • Wait for better liquidity
  • Consider limit orders (if available)

Next Steps

Wallet Operations

Manage your EVM wallet

Transactions

Learn about EVM transactions

Solana Swaps

Swap tokens on Solana

Networks

Explore supported networks