Swap API
Last updated
Last updated
Swap API is completely free and offers a highly intuitive and secure REST API.
As a powerful aggregator integrating various DEXs (Decentralized Exchanges) within the Solana ecosystem, Dexlab partners with the trusted global exchange, , to provide a stable and efficient trading environment.
Developers and project teams can leverage Dexlab Swap API to easily access liquidity, optimize trading routes, and experience cost savings with high trading performance.
The Open API is freely accessible with no restrictions. However, it is subject to a rate limit of 2 request per second (RPS) per IP, and the referral fee can be set up to a maximum of 3% (100 bps).
All APIs are free to use, but the Pro API requires an API key(Free) issuance.
Open API: https://open-api.dexlab.space/
There is a rate limit of 10 RPS. If you need more, get a free API key.
Pro API( API key required ): https://pro-api.dexlab.space/
The rate limit is increased and free.
The wallet address of the user initiating the swap.
The amount to swap. Must include precision (e.g., 1.00 USDT
-> 1000000
, 1.00 SOL
-> 1000000000
).
The public key of the token to swap from.
The public key of the token to swap to.
The maximum acceptable slippage in bps (basis points). Default is 500 (5%).
Optional wallet address to receive referrer fees.
Optional referrer fee in bps (basis points). Range: 0-300 for Open API, For Pro API, the limit varies depending on the contract.