Get swap price estimate
Get a price estimate for a swap between two tokens on an EVM network.
Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Query Parameters
Response
A price estimate for the swap.
- GetSwapPriceResponse
A wrapper for the response of a swap price operation.
The minimum amount of the toToken that must be received for the swap to succeed, in atomic units of the toToken. For example, 1000000000000000000 when receiving ETH equates to 1 ETH, 1000000 when receiving USDC equates to 1 USDC, etc. This value is influenced by the slippageBps parameter.
^(0|[1-9]\d*)$"900000000000000000"