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

# EvmSwapsClient

> EvmSwapsClient API reference.

Package: [`com.coinbase.cdp.resources.evmswaps`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/index)

```java theme={null}
public class EvmSwapsClient extends Object
```

## Constructor Details

### `EvmSwapsClient`

```java theme={null}
public EvmSwapsClient(ClientOptions clientOptions)
```

**Parameters:**

`clientOptions` - [ClientOptions](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/ClientOptions)

## Method Details

### `withRawResponse`

```java theme={null}
public WithRawResponseEvmSwapsClient withRawResponse()
```

Get responses with HTTP metadata like headers

**Returns:**

[WithRawResponseEvmSwapsClient](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/WithRawResponseEvmSwapsClient)

### `getEvmSwapPrice`

**Overload 1**

```java theme={null}
public GetSwapPriceResponseWrapper getEvmSwapPrice(GetEvmSwapPriceRequest request)
```

Get a price estimate for a swap between two tokens on an EVM network.

**Parameters:**

`request` - [GetEvmSwapPriceRequest](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/requests/GetEvmSwapPriceRequest)

**Returns:**

[GetSwapPriceResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/GetSwapPriceResponseWrapper)

**Overload 2**

```java theme={null}
public GetSwapPriceResponseWrapper getEvmSwapPrice(GetEvmSwapPriceRequest request, RequestOptions requestOptions)
```

Get a price estimate for a swap between two tokens on an EVM network.

**Parameters:**

`request` - [GetEvmSwapPriceRequest](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/requests/GetEvmSwapPriceRequest)

`requestOptions` - [RequestOptions](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions)

**Returns:**

[GetSwapPriceResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/GetSwapPriceResponseWrapper)

### `createEvmSwapQuote`

**Overload 1**

```java theme={null}
public CreateSwapQuoteResponseWrapper createEvmSwapQuote(CreateEvmSwapQuoteRequest request)
```

Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap.

**Parameters:**

`request` - [CreateEvmSwapQuoteRequest](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/requests/CreateEvmSwapQuoteRequest)

**Returns:**

[CreateSwapQuoteResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateSwapQuoteResponseWrapper)

**Overload 2**

```java theme={null}
public CreateSwapQuoteResponseWrapper createEvmSwapQuote(CreateEvmSwapQuoteRequest request, RequestOptions requestOptions)
```

Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap.

**Parameters:**

`request` - [CreateEvmSwapQuoteRequest](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/evmswaps/requests/CreateEvmSwapQuoteRequest)

`requestOptions` - [RequestOptions](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions)

**Returns:**

[CreateSwapQuoteResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateSwapQuoteResponseWrapper)
