This endpoint allows you to swap an asset to another.
Documentation Index
Fetch the complete documentation index at: https://docs.bread.africa/llms.txt
Use this file to discover all available pages before exploring further.
The wallet ID to swap from
"68bb7d8399900e253084e6f9"
The recipient address for the swapped assets
"0x4ad21FA456Bb297f505B2718ba87ad63D8a95E6B"
The asset to swap from
ethereum:usdc, base:usdc, arbitrum:usdc, solana:usdc, bsc:usdc, polygon:usdc, optimism:usdc, avalanche:usdc, ethereum:usdt, arbitrum:usdt, solana:usdt, polygon:usdt, bsc:usdt, optimism:usdt, avalanche:usdt, base:cngn, bsc:cngn "solana:usdc"
The asset to swap to
ethereum:usdc, base:usdc, arbitrum:usdc, solana:usdc, bsc:usdc, polygon:usdc, optimism:usdc, avalanche:usdc, ethereum:usdt, arbitrum:usdt, solana:usdt, polygon:usdt, bsc:usdt, optimism:usdt, avalanche:usdt, base:cngn, bsc:cngn "base:usdc"
Amount to swap. Use -1 to swap all available balance.
Use this for EXACT INPUT swaps.
-1
Amount of the to_asset you want to receive.
Use this for EXACT OUTPUT swaps.
100