issues in the response (e.g. insufficient balance or allowance).
When the token pair, network, account, or userId changes, previous data is cleared. When only the
amount or slippage changes, previous data is preserved while the new price loads
(stale-while-revalidate).
Parameters
| Parameter | Type | Description |
|---|---|---|
options | UseGetSwapPriceOptions | Configuration for the swap price query. |
Returns
UseGetSwapPriceReturnType
An object containing the swap price data, status, error, refetch, and reset functions.