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

# WithRawResponseEvmSwapsClient

> WithRawResponseEvmSwapsClient API reference.

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

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

## Method Details

### `getEvmSwapPrice`

**Overload 1**

```java theme={null}
public CdpClientHttpResponse<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:**

[CdpClientHttpResponse](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[GetSwapPriceResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/GetSwapPriceResponseWrapper)>

**Overload 2**

```java theme={null}
public CdpClientHttpResponse<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:**

[CdpClientHttpResponse](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[GetSwapPriceResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/GetSwapPriceResponseWrapper)>

### `createEvmSwapQuote`

**Overload 1**

```java theme={null}
public CdpClientHttpResponse<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:**

[CdpClientHttpResponse](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[CreateSwapQuoteResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateSwapQuoteResponseWrapper)>

**Overload 2**

```java theme={null}
public CdpClientHttpResponse<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:**

[CdpClientHttpResponse](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[CreateSwapQuoteResponseWrapper](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateSwapQuoteResponseWrapper)>
