Swaps
Get Swap V 2 Handler
Changed onBuild approve + swap transactions via the router for an arbitrary token pair
get/v2/swap/
Request
- The document declares no server URL.
- Auth: none declared
Query parameters
userstring required
User's EOA address initiating the swap
chainIdinteger required
Chain ID for the swap
distributorIdstring required
Distributor ID
tokenInstring required
Input token address or 'native' alias
tokenOutstring required
Output token address or 'native' alias
amountInstring required
Input amount in smallest unit (wei)
slippageBpsinteger required
Slippage tolerance in basis points (e.g., 50 = 0.5%)
quoteOnlyboolean
Skip balance validation for quote preview
Response
OK
Example response
{
"actionId": "248df4b7-aa70-47b8-a036-33ac447e668d"
}Changes
- info
added the optional property
///to the response with the status
- info
- warning
for the
queryrequest parameteramountIn, the maxLength was set to78
- warning