> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetSwapPriceResult

```ts theme={null}
type GetSwapPriceResult = {
  liquidityAvailable: true;
  network: EvmSwapsNetwork;
  fromToken: string;
  fromAmount: string;
  toToken: string;
  toAmount: string;
  minToAmount: string;
  fees:   | SwapFees
     | null;
  issues:   | SwapIssues
     | null;
  totalNetworkFee: string | null;
};
```

Returned when liquidity is available for the requested swap.

## Properties

| Property                                           | Type                                                                                                | Description                                                                                                                                                                                                                |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="liquidityavailable" /> `liquidityAvailable` | `true`                                                                                              | Always true when this type is returned.                                                                                                                                                                                    |
| <a id="network" /> `network`                       | [`EvmSwapsNetwork`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-core/Type-Aliases/EvmSwapsNetwork)     | The network.                                                                                                                                                                                                               |
| <a id="fromtoken" /> `fromToken`                   | `string`                                                                                            | The fromToken address.                                                                                                                                                                                                     |
| <a id="fromamount" /> `fromAmount`                 | `string`                                                                                            | The fromAmount in atomic units.                                                                                                                                                                                            |
| <a id="totoken" /> `toToken`                       | `string`                                                                                            | The toToken address.                                                                                                                                                                                                       |
| <a id="toamount" /> `toAmount`                     | `string`                                                                                            | Expected output at current market price, in atomic units.                                                                                                                                                                  |
| <a id="mintoamount" /> `minToAmount`               | `string`                                                                                            | Minimum output after slippage, in atomic units.                                                                                                                                                                            |
| <a id="fees" /> `fees`                             | \| [`SwapFees`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/SwapFees) \| `null`     | Fees to be deducted in this transaction, or null.                                                                                                                                                                          |
| <a id="issues" /> `issues`                         | \| [`SwapIssues`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/SwapIssues) \| `null` | Preflight issues (e.g. insufficient allowance or balance) that may prevent execution, or null.                                                                                                                             |
| <a id="totalnetworkfee" /> `totalNetworkFee`       | `string` \| `null`                                                                                  | The estimated total network cost of the swap. On chains where there is no L1 data cost, it is calculated as gas \* gasPrice. On chains where there is an L1 data cost, it is calculated as gas \* gasPrice + L1 data cost. |
