quote
Get a quote based on network, token addresses and sell amount. (On-Chain Transaction)
Request Parameters:
Name | Type | Description | Example |
---|---|---|---|
networkName (required) | String | The network for which to retrieve the quote | Eg: bsc |
fromTokenAddress (required) | String | The token address of the token to sell | 0x55d398326f99059ff775485246999027b3197955 |
toTokenAddress (required) | String | The token address of the token to buy | 0xac51066d7bec65dc4589368da368b212745d63e8 |
sellAmount (required) | String | The amount of the token to sell. Includes decimals. | 1000000000000000000000 |
slippage (required) | Number | The slippage tolerance for the transaction | 0.1 |
liquiditySources (optional) | String[] | An array of liquidity sources to consider for the quote |
Request URL Example:
Response Example:
Last updated