Skip to main content
GET
Quote from a token to another

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the quote on

fromAddress
string

Ethereum address of the wallet to quote from

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

tokenIn
enum<string>[]
required

Ethereum address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Available options:
0x,
1inch,
openocean,
kyberswap,
native,
paraswap,
bebop,
barter,
sushiswap-router,
ooga-booga,
renegade,
uniswap,
rooster,
wowmax,
grapher,
hyperbloom,
hyperswap,
hyperflow,
fly,
eisen,
nordstern,
everlong,
bitget
Example:
tokenOut
enum<string>[]
required

Ethereum address of the token to swap to. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Available options:
0x,
1inch,
openocean,
kyberswap,
native,
paraswap,
bebop,
barter,
sushiswap-router,
ooga-booga,
renegade,
uniswap,
rooster,
wowmax,
grapher,
hyperbloom,
hyperswap,
hyperflow,
fly,
eisen,
nordstern,
everlong,
bitget
Example:
amountIn
enum<string>[]
required

Amount of tokenIn to swap in wei

Available options:
cctp,
stargate,
ccip,
relay
Example:
routingStrategy
enum<string> | null

Routing strategy to use

Available options:
ensowallet-v2,
router,
delegate,
router-legacy,
delegate-legacy
fee
enum<string>[]

Fee in basis points (1/10000) for each amountIn value. Must be in range 0-100. If specified, this percentage of each amountIn value will be sent to feeReceiver

Available options:
0x,
1inch,
openocean,
kyberswap,
native,
paraswap,
bebop,
barter,
sushiswap-router,
ooga-booga,
renegade,
uniswap,
rooster,
wowmax,
grapher,
hyperbloom,
hyperswap,
hyperflow,
fly,
eisen,
nordstern,
everlong,
bitget
Example:
feeReceiver
string

The Ethereum address that will receive the collected fee. Required if fee is provided

Example:

"0x220866B1A2219f40e72f5c628B65D54268cA3A9D"

ignoreAggregators
enum<string>[] | null

A list of swap aggregators to be ignored from consideration

Available options:
0x,
1inch,
openocean,
kyberswap,
native,
paraswap,
bebop,
barter,
sushiswap-router,
ooga-booga,
renegade,
uniswap,
rooster,
wowmax,
grapher,
hyperbloom,
hyperswap,
hyperflow,
fly,
eisen,
nordstern,
everlong,
bitget
ignoreStandards
string[] | null

A list of standards to be ignored from consideration

Response

amountOut
string
required
route
object[]
required

The route selected for the quote

priceImpact
number | null

Price impact in basis points, null if USD price not found

feeAmount
string[]

An array of the fee amount collected for each tokenIn

ensoFeeAmount
string[]