Authorizations
Body
application/json
The wallet ID to swap from
Example:
"68bb7d8399900e253084e6f9"
The recipient address for the swapped assets
Example:
"0x4ad21FA456Bb297f505B2718ba87ad63D8a95E6B"
The asset to swap from
Available options:
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
Example:
"solana:usdc"
The asset to swap to
Available options:
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
Example:
"base:usdc"
Amount to swap. Use -1 to swap all available balance.
Use this for EXACT INPUT swaps.
Example:
-1
Amount of the to_asset
you want to receive.
Use this for EXACT OUTPUT swaps.
Example:
100