POST
/
v1
/
price
Get swap price estimate (no calldata)
curl --request POST \
  --url https://router.gluex.xyz/v1/price \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chainID": "ethereum",
  "inputToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "outputToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "inputAmount": "1000000000000000000",
  "orderType": "SELL",
  "userAddress": "0x174F75176b73124627116653085Ce9585E261388",
  "outputReceiver": "0x9A6D76cB905Df126832AEB1802A27a1b37a6e872",
  "uniquePID": "866a61811189692e8eccae5d2759724a812fa6f8703ebffe90c29dc1f886bbc1"
}'
{
  "statusCode": 200,
  "result": {
    "inputToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
    "outputToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "feeToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "inputSender": "0x174F75176b73124627116653085Ce9585E261388",
    "outputReceiver": "0x9A6D76cB905Df126832AEB1802A27a1b37a6e872",
    "inputAmount": "1000000000000000000",
    "outputAmount": "1000000000000000000",
    "partnerFee": "0",
    "routingFee": "0",
    "effectiveInputAmount": "1000000000000000000",
    "effectiveOutputAmount": "1000000000000000000",
    "minOutputAmount": "1000000000000000000",
    "isNativeTokenInput": true,
    "value": "1000000000000000000",
    "router": "0x6Ec7612828B776cC746fe0Ee5381CC93878844f7",
    "surgeValue": 0
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

Body

application/json

Response

200 - application/json

Price estimate response

The response is of type object.