Skip to main content

Token Swap

CryptoClaw enables token swaps on major decentralized exchanges across multiple EVM chains.

Supported DEXs

DEXVersionsChains
PancakeSwapV2, V3BSC, Ethereum
UniswapV2, V3Ethereum, Polygon, Arbitrum, Optimism, Base

Tools

ToolDescriptionConfirmation
swap_quoteGet a price quote for a token pair
swap_executeExecute a token swapYes
check_allowanceCheck token spending allowance
get_dex_listList supported DEXs for a chain
get_token_infoLook up token details by address or symbol

Swap flow

1

Get a quote

Ask: “Quote swapping 1 BNB to USDT on PancakeSwap”The agent fetches the best route, shows expected output, price impact, and fees.
2

Review and confirm

The agent displays:
  • Input/output amounts
  • Exchange rate
  • Price impact percentage
  • Slippage tolerance
  • Gas estimate
You must confirm before execution.
3

Execute

The swap is submitted on-chain. The agent reports the transaction hash and final amounts.

Safety features

  • Slippage protection — Default 0.5% slippage tolerance, configurable per swap
  • Price impact warnings — Alerts when price impact exceeds 3%
  • Honeypot detection — Checks for tokens that cannot be sold
  • Allowance management — Automatic approval flow when needed
  • Spending limits — Respects configured per-transaction and daily USD caps
Always verify token contract addresses. The agent will warn about unverified tokens, but exercise caution with unfamiliar tokens.

Examples

"Swap 0.5 BNB for USDT on PancakeSwap"
"Get a quote for 100 USDC to ETH on Uniswap V3"
"What DEXs are available on Polygon?"
"Check my USDT allowance for PancakeSwap router"

Configuration

{
  blockchain: {
    swap: {
      defaultSlippage: 0.5, // Percentage
      maxPriceImpact: 5, // Percentage threshold for warnings
    },
  },
}