Get quote for pair
GET
https://api.entrswap.io/v1/{chainID}/quote
Request
Path Params
chainID
enum<integer>
required
Allowed values:
110561372504216143114
Default:
1
Example:
1
Query Params
fromTokenAddress
string
required
Default:
0xdac17f958d2ee523a2206206994597c13d831ec7
Example:
0xdac17f958d2ee523a2206206994597c13d831ec7
toTokenAddress
string
required
Default:
0x6b175474e89094c44da98b954eedeac495271d0f
Example:
0x6b175474e89094c44da98b954eedeac495271d0f
takerAddress
string
optional
amount
integer
required
Default:
1500000000
Example:
1500000000
slippage
integer
required
Default:
1
Example:
1
gasPrice
string
optional
Default:
16000000000
feeRecipient
string
optional
buyTokenPercentageFee
or sellTokenPercentageFee
.Default:
0xdac17f958d2ee523a2206206994597c13d831ec7
buyTokenPercentageFee
number
optional
sellTokenPercentageFee
number
optional
recipientAddress
string
optional
skipValidation
boolean
optional
Default:
true
excludeAggregator
string
optional
includeAggregator
string
optional
withGas
boolean
optional
Default:
false
rfqOnly
boolean
optional
Default:
false
Request samples
Responses
Modified at 2024-06-04 11:14:09