GET /api/transaction/rates
Get current swap rates of IDRX to other tokens.
Parameters
idrxAmount
(String):The IDRX amount to sell.
usdtAmount
(String):The USDT amount to sell.
chainId (String): Blockchain ID.
You must provide either one of idrxAmount
or usdtAmount
as parameter. chainId
will default to 137 (Polygon) if left unspecified.
Example Request
Response
If the request is successful, the response will be as shown below:
buyAmount
represents the IDRX amount you would get from the specified USDT amount in the parameter.
Last updated