Preview 8DX Market Swap
eightdx_preview_market_swapPreview a market swap to receive quote data, refresh hints, slippage/deadline metadata, route links, and signing guidance before executing.
Instructions
Previews a market swap for an AI-guided flow. Returns quote data, a 30-second refresh hint, selected slippage/deadline metadata, 8DX route link metadata, and external signing guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountIn | No | Normalized input token amount to quote. Pass the exact amount format expected by the 8DX REST API for this token. | |
| deadline | No | ||
| blockchain | Yes | Blockchain network with live 8DX API support. | |
| dstAddress | No | ||
| amountInWei | No | Smallest-unit input token amount to quote. Pass the exact amount format expected by the 8DX REST API for this token. | |
| slippageBps | No | ||
| addressTokenIn | Yes | Token address or native-token identifier to sell. Use the token identifier format accepted by the 8DX API. | |
| addressTokenOut | Yes | Token address or native-token identifier to buy. Use the token identifier format accepted by the 8DX API. |