Get swap price estimate (no calldata)
post/v1/price
Headers
x-api-keystring required
Request body
Example request
{
"chainID": "ethereum",
"inputToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"outputToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"inputAmount": "1000000000000000000",
"userAddress": "0x174F75176b73124627116653085Ce9585E261388",
"outputReceiver": "0x9A6D76cB905Df126832AEB1802A27a1b37a6e872",
"uniquePID": "866a61811189692e8eccae5d2759724a812fa6f8703ebffe90c29dc1f886bbc1"
}Response
Price estimate response
Example response
{
"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"
}
}Changes
Changed in 5 of the 8 revisions of this API.213
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ▲
added the new required
headerrequest parameterx-api-keynew-required-request-parameter
- ▲
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●