Overview
A decentralized exchange protocol for seamless token swaps on Paxeer Network with real-time price feeds and WebSocket support.Swap Fee
0.3%
Supported Tokens
12 Tokens
Real-time Prices
WebSocket
Quick Start
1
API Base URL
2
WebSocket URL
3
Test Connection
Key Features
Real-time Price Feeds
Real-time Price Feeds
Get live price updates via REST API or WebSocket for all supported tokens.
Low Fees
Low Fees
Only 0.3% swap fee (30 basis points) on all token exchanges.
Smart Contracts
Smart Contracts
Battle-tested vault and oracle contracts for secure swaps.
Developer Friendly
Developer Friendly
Simple REST API, WebSocket support, and clear documentation.
REST API
Endpoints
- Health Check
- Get Prices
- Token Price
- Swap Data
- Price History
Rate Limits
- 100 requests per minute per IP
- Responses include cache information
- No authentication required
WebSocket API
Connection
Connect to the WebSocket server for real-time price updates:Message Format
Price update messages follow this format:React Hook Example
usePaxDexPrices.ts
Smart Contracts
Deployed Contracts
Vault Contract
Oracle Contract
Swap Function
Fee Constants
30 / 10000 = 0.003 = 0.3%
Implementation Example
Supported Tokens
All tokens are deployed on Paxeer Network (Chain ID: 125)
Integration Example
Here’s a complete example of integrating PaxDex into your dApp:Error Handling
Common errors and their solutions:Insufficient Allowance
Insufficient Allowance
Make sure to approve the Vault contract before swapping:
Slippage Exceeded
Slippage Exceeded
Increase the
minAmountOut parameter or wait for better market conditions.Insufficient Liquidity
Insufficient Liquidity
The pool may not have enough liquidity for your swap. Try a smaller amount.
Price Impact Too High
Price Impact Too High
Your swap would significantly impact the price. Consider splitting into smaller swaps.
Resources
API Health
Check API status
Vault Contract
View on PaxScan
Oracle Contract
View on PaxScan
Community
Get help and support