Overview
TheExchange Services provides a unified interface for cross-chain cryptocurrency exchange operations, supporting both EVM-compatible and Solana blockchains.
Included services:
- evm_exchange: Handles exchanges on Ethereum, BSC, Polygon, Arbitrum, Optimism, and Avalanche
- sol_exchange: Handles exchanges on Solana blockchain
Note: All methods return response objects with attributes accessible via dot notation (e.g.,price.expected_output,tx.tx_hash).
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 attribute access:Notes
- All methods require a properly configured
MoneiClientinstance with authentication - EVM methods require
chain_idparameter (e.g., 56 for BSC, 137 for Polygon) - Solana methods require
networkparameter (“mainnet” or “devnet”) slippageis optional (defaults to 0.5% for EVM, 1% for Solana)- All responses are strongly typed objects with attribute access

