Basic Integration with Mach SDK
After installing the SDK, you can start integrating Mach Exchange functionality into your application. This guide covers the fundamental operations.Initializing the SDK
First, import and initialize the SDK in your application:Checking Available Tokens
To get a list of all available tokens on Mach Exchange:Getting Exchange Information
Retrieve information about the exchange, such as supported chains, gas prices, and more:Fetching Token Balances
If a wallet is connected, you can fetch token balances:Simple Price Check
Check the price for swapping tokens:Error Handling
Basic error handling for SDK operations:Next Steps
Now that you understand the basics, you can explore more advanced features:- Order Management - Create and manage orders
- Cross-Chain Swaps - Perform swaps across different blockchains
- Wallet Connection - Advanced wallet connection techniques