Interface: SwapOptions
Options of a swap.
Properties
| Property | Type | Description |
|---|---|---|
pool? | SwapPool | Pin the pool: take token0 / token1 verbatim from the quote the user saw, instead of ordering tokenIn / tokenOut by string comparison. tokenIn and tokenOut must be exactly these two symbols, and token0 must sort before token1. See swapRouteFromQuote. |
uniqueKey? | string | The attempt's uniqueKey (1-128 characters of A-Za-z0-9._:-). Default: a fresh <uniqueKeyPrefix><uuid>. Supply one to know the key before signing (to remember it, to show it), or to retry the SAME attempt after a lost response; never reuse it for another trade. |
swap pool token in out unique key prefix