Overview
TheExchange Services provides a unified interface for cross-chain cryptocurrency exchange operations, supporting both EVM-compatible and Solana blockchains.
Included services:
- evmExchange: Handles exchanges on Ethereum, BSC, Polygon, Arbitrum, Optimism, and Avalanche
- solExchange: Handles exchanges on Solana blockchain
EVM Exchange
Get Price Quote (Native → Token)
Swap Native → Token
Get Price Quote (Token → Token)
Swap Token → Token
Get Price Quote (Token → Native)
Swap Token → Native
Solana Exchange
Get SOL → Token Quote
Swap SOL → Token
Get Token → Token Quote
Swap Token → Token (Solana)
Get Token → SOL Quote
Swap Token → SOL
Working with Response Objects
All methods return objects with property access:Notes
- All methods require a properly configured
MoneiClientinstance with authentication - EVM methods require
chainIdparameter (e.g., 56 for BSC, 137 for Polygon) - Solana methods require
networkparameter (SolanaNetwork.MAINNETorSolanaNetwork.DEVNET) slippageis optional (defaults to 0.5% for EVM, 1% for Solana)- All responses are strongly typed objects with property access

