Swap API
API Reference
API Endpoint
Token Swap
post
Body
userWalletAddressstringRequired
The wallet address of the user initiating the swap.
amountstringRequired
The amount to swap. Must include precision (e.g., 1.00 USDT -> 1000000, 1.00 SOL -> 1000000000).
fromTokenAddressstringRequired
The public key of the token to swap from.
toTokenAddressstringRequired
The public key of the token to swap to.
slippageBpsnumber Β· max: 10000Required
The maximum acceptable slippage in bps (basis points). Default is 500 (5%).
referrerWalletAddressstringOptional
Optional wallet address to receive referrer fees.
referrerFeeBpsnumber Β· max: 300Optional
Optional referrer fee in bps (basis points). Range: 0-300 for Open API, For Pro API, the limit varies depending on the contract.
Responses
200
200 response
application/json
400
400 response
application/json
500
500 response
application/json
post
/dex/swapLast updated