đąQuotes
Overview
This API allows fetching quotes for token swaps and provides transaction data (calldata
) for execution if the parameters slippageTolerance
, deadline
, and recipient
are specified. This enables direct interaction with smart contracts.
Endpoint
URL:
https://api.kodiak.finance/quote
Method:
GET
Content Type:
application/json
Query Parameters
Parameter | Required | Description |
---|---|---|
protocols | â | The protocols used for the swap. Possible values: |
tokenInAddress | â | Address of the input token for the swap. |
tokenInChainId | â | Chain ID of the input token. |
tokenOutAddress | â | Address of the output token for the swap. |
tokenOutChainId | â | Chain ID of the output token. |
amount | â | Amount of tokens to swap in humman terms |
type | â | Type of swap: |
recipient | â | The address of the recipient of the swapped tokens. Required for generating |
deadline | â | Time in seconds until the transaction expires. |
slippageTolerance | â | Allowed slippage percentage as an integer (e.g., 1 for 1%). |
Example Request
Example response
Last updated