API Reference
PulseSwap is a multi-chain DEX aggregator that finds the best swap prices across multiple liquidity sources. It scans 12+ aggregators and 50+ DEXs in real time, including PulseX, Piteas, 9inch, and others. Developers can integrate PulseSwap to give users cost-efficient swaps directly inside their applications.
Overview
The Quote API provides two endpoints for getting swap quotes on PulseChain DEX platforms:
POST
/quotes– Standard quote algorithm (fast, optimized for common swaps)POST
/quotes/advanced– Advanced routing (deeper route search, best for complex swaps)
Both endpoints use the same request and response structure.
Base URL
https://quotes.pulseswap.io/api/v2All endpoints are relative to this base URL.
POST /quotes
Get a quote using the standard routing algorithm.
Endpoint
POST /quotesRequest Headers
Request Body
Request Schema
chainId
number
Yes
Must be 369 (PulseChain)
platform
string
Yes
DEX platform identifier (see Supported Platforms)
fromToken
string
Yes
Source token address (42-char EVM address). Use 0x000...000 for PLS
toToken
string
Yes
Destination token address (42-char EVM address). Use 0x000...000 for PLS
amountIn
string
Yes
Amount in wei/smallest unit
slippage
number
Yes
Max allowed slippage (0.0 to 100.0)
userAddress
string
No
EVM address used to generate transaction data
amountUSD
number
No
USD amount for analytics
extra
object
No
Additional pricing & gas parameters
extra.tokenInPrice
number
No
Price of input token in USD
extra.tokenOutPrice
number
No
Price of output token in USD
extra.gasPrice
string
No
Gas price in wei (string)
extra.gasTokenPrice
number
No
Gas token price in USD
Supported Platforms
pulsex_v1
UniV2
PulseX V1
pulsex_v2
UniV2
PulseX V2
pulsex_stable
Stable
PulseX Stable Pools
9inch_v2
UniV2
9inch V2
9inch_v3
UniV3
9inch V3
9mm_v2
UniV2
9mm V2
9mm_v3
UniV3
9mm V3
phux_v2
BalV2
Phux V2
tide_v3
BalV3
Tide V3
mixed
Mixed
Cross-DEX routing
Response Schema
Example Request
Example Response
POST /quotes/advanced
The advanced endpoint performs more exhaustive routing.
Endpoint
Same request schema as /quotes.
Differences
Deeper route exploration
Better multi-hop optimization
Better for large swaps or illiquid pairs
Slightly slower
Example Request
Example Response
Validation Rules
Chain ID
Must be
369(PulseChain)
Token Addresses
Must be valid 42-character EVM addresses
Use
0x000...000for native PLS
Amount Format
Must be a positive integer string (wei)
Slippage
Must be between
0.0and100.0
Platform
Must match one of the supported platforms (case-sensitive)
User Address
Optional but must be a valid EVM address if provided
Common Use Cases
Simple PLS → Token
ERC20 → ERC20
Swap With Transaction Data
Swap With Extra Pricing Data
Error Handling
Invalid Chain ID
Invalid Platform
Invalid Token Address
Invalid Slippage
Server Error
Best Practices
Caching
Quotes cached for 5 seconds
Use identical params to utilize cache
Slippage
0.1–0.5% for stablecoins
1–3% for volatile assets
Platform Choice
pulsex_v2,9inch_v2for standard swapspulsex_stablefor stablecoinsmixedfor best overall price9inch_v3/9mm_v3for UniV3 concentrated liquidity
Transaction Execution
Quotes expire quickly
Execute ASAP
Always validate gas costs
Error Handling
Check
successHandle validation failures
Log
quoteIdfor debugging
Rate Limiting
60 requests/min/IP
Whitelisted domains bypass limits:
pulsecoinlist.compulseswap.io
User-Agent bot detection enabled
CORS Support
Automatic OPTIONS handling
CORS headers included on all responses
Developer Notes
Use
0x000...000for native PLS (auto-wrapped to WPLS).Always send
amountInas a string.Quotes are cached for 5 seconds.
txonly appears whenuserAddressis provided.Gas estimates are approximate.
Platform determines DEX routing logic automatically.
Contact/support via X @PulseCoinList
Last updated
Was this helpful?