Skip to main content

Overview

This page is archived legacy documentation. Use HyperPax DEX for the current network-operated DEX.
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

Get live price updates via REST API or WebSocket for all supported tokens.
Only 0.3% swap fee (30 basis points) on all token exchanges.
Battle-tested vault and oracle contracts for secure swaps.
Simple REST API, WebSocket support, and clear documentation.

REST API

Endpoints

GET /api/health

Check API health status and service availability.
cURL
Response

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

View on Explorer →

Oracle Contract

View on Explorer →

Swap Function

Fee Constants

Fee calculation: 30 / 10000 = 0.003 = 0.3%

Implementation Example

Supported Tokens

All tokens are deployed on Paxeer Network (Chain ID: 125)
Click on any address to view the token contract on PaxScan.

Integration Example

Here’s a complete example of integrating PaxDex into your dApp:

Error Handling

Common errors and their solutions:
Make sure to approve the Vault contract before swapping:
Increase the minAmountOut parameter or wait for better market conditions.
The pool may not have enough liquidity for your swap. Try a smaller amount.
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