> ## 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.

# ExecuteSwapOptions

```ts theme={null}
type ExecuteSwapOptions = {
  network: EvmSwapsNetwork;
  fromToken: EvmAddress;
  toToken: EvmAddress;
  fromAmount: string;
  slippageBps?: number;
  account?: EvmAddress;
  useCdpPaymaster?: boolean;
  paymasterUrl?: string;
  idempotencyKey?: string;
};
```

Request parameters for executing a token swap.

## Properties

| Property                                      | Type                                                                                            | Description                                                                                                                                             |
| --------------------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="network" /> `network`                  | [`EvmSwapsNetwork`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-core/Type-Aliases/EvmSwapsNetwork) | The network on which to perform the swap.                                                                                                               |
| <a id="fromtoken" /> `fromToken`              | [`EvmAddress`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/EvmAddress)          | The 0x-prefixed contract address of the token to sell.                                                                                                  |
| <a id="totoken" /> `toToken`                  | [`EvmAddress`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/EvmAddress)          | The 0x-prefixed contract address of the token to buy.                                                                                                   |
| <a id="fromamount" /> `fromAmount`            | `string`                                                                                        | The amount of fromToken to sell, in atomic units.                                                                                                       |
| <a id="slippagebps" /> `slippageBps?`         | `number`                                                                                        | Maximum slippage in basis points (100 = 1%). Default is 100.                                                                                            |
| <a id="account" /> `account?`                 | [`EvmAddress`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/EvmAddress)          | The taker account address. If omitted, auto-selected from the signed-in user's accounts.                                                                |
| <a id="usecdppaymaster" /> `useCdpPaymaster?` | `boolean`                                                                                       | Whether to use the CDP Paymaster for gas sponsorship. Only applicable for smart accounts; ignored for EOA. Cannot be used together with `paymasterUrl`. |
| <a id="paymasterurl" /> `paymasterUrl?`       | `string`                                                                                        | Custom paymaster URL for gas sponsorship. Only applicable for smart accounts; ignored for EOA. Cannot be used together with `useCdpPaymaster`.          |
| <a id="idempotencykey" /> `idempotencyKey?`   | `string`                                                                                        | Optional idempotency key for safe retries.                                                                                                              |
