πSDK Examples
SummitX DEX Integration Examples
π Quick Start Example
Features
Installation
# Clone the example repository
git clone https://github.com/summitx/summitx-example
cd summitx-example
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Add your private key to .env
# PRIVATE_KEY=your_private_key_hereBasic Usage
π Code Examples
Native to ERC20 Swap
ERC20 to ERC20 Swap
Wrap and Unwrap Native Tokens
βοΈ Configuration
TokenQuoter Options
Environment Variables
ποΈ Architecture Overview
TokenQuoter
SmartRouter Integration
Transaction Flow
π§ Troubleshooting
Common Issues and Solutions
Rate Limiting (429 errors)
Insufficient Balance
No Route Found
Gas Estimation Failed
Debug Tools
π€ Support
β οΈ Security Notice
Last updated