quoteIn
Get a quote for swapping tokens from one network to another.
Request Parameters:
Name | Type | Description | Example |
---|---|---|---|
fromNetwork (required) | String | The network to swap tokens from | bsc |
toNetwork (required) | String | The address of the token to swap from | polygon |
fromTokenAddress (required) | String | The address of the token to swap from | 0xb58e26ac9cc14c0422c2b419b0ca555ee4dcb7cb |
toTokenAddress (required) | String | The address of the token to swap to | 0x2791bca1f2de4661ed88a30c99a7a9449aa84174 |
sellAmount (required) | String | The amount of tokens to sell in the swap | 10000000000000000 |
slippageIn (required) | Number | The slippage tolerance for the token being swapped in | 0.1 |
slippageOut (required) | Number | The slippage tolerance for the token being swapped out | 0.1 |
liquiditySources (optional) | String[] | An array of liquidity sources to consider for the quote | |
bridgeTypes (optional) | String | An array of bridge types to consider for the swap 0: Wormhole 1: Stargate 2: Celer | |
dataTransferTypes (optional) | String | An array of data transfer types to consider for the swap 0: Wormhole 1: LayerZero |
Request URL Example:
Response Example:
Last updated