TypeScript
Swap
Get api quote
GET quote for aggregation swap
GET
TypeScript
Path Parameters
Available options:
ethereum, bsc, arbitrum Query Parameters
Source token contract address (ERC20 or native token)
Destination token contract address (ERC20 or native token)
Amount of source token to swap (in token's normalized unit, e.g., eth for ETH).
Ignored when amountInWei is provided.
Amount of source token in the smallest unit (wei). Takes precedence over amountIn
- useful for callers that don't account for token decimals.
Partner API key. Header X-Api-Key takes precedence.
Response
Quote for aggregation swap through POST /{blockchain}/swap