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

# CreateEvmSwapQuoteRequest

> CreateEvmSwapQuoteRequest API reference.

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

```java theme={null}
public final class CreateEvmSwapQuoteRequest extends Object
```

## Method Details

### `getIdempotencyKey`

```java theme={null}
public Optional<String> getIdempotencyKey()
```

**Returns:**

`Optional<String>` - An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.

### `getNetwork`

```java theme={null}
public EvmSwapsNetwork getNetwork()
```

**Returns:**

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

### `getToToken`

```java theme={null}
public String getToToken()
```

**Returns:**

`String` - The 0x-prefixed contract address of the token to receive.

### `getFromToken`

```java theme={null}
public String getFromToken()
```

**Returns:**

`String` - The 0x-prefixed contract address of the token to send.

### `getFromAmount`

```java theme={null}
public String getFromAmount()
```

**Returns:**

`String` - The amount of the `fromToken` to send in atomic units of the token. For example, `1000000000000000000` when sending ETH equates to 1 ETH, `1000000` when sending USDC equates to 1 USDC, etc.

### `getTaker`

```java theme={null}
public String getTaker()
```

**Returns:**

`String` - The 0x-prefixed address that holds the `fromToken` balance and has the `Permit2` allowance set for the swap.

### `getSignerAddress`

```java theme={null}
public Optional<String> getSignerAddress()
```

**Returns:**

`Optional<String>` - The 0x-prefixed Externally Owned Account (EOA) address that will sign the `Permit2` EIP-712 permit message. This is only needed if `taker` is a smart contract.

### `getGasPrice`

```java theme={null}
public Optional<String> getGasPrice()
```

**Returns:**

`Optional<String>` - The target gas price for the swap transaction, in Wei. For EIP-1559 transactions, this value should be seen as the `maxFeePerGas` value. If not provided, the API will use an estimate based on the current network conditions.

### `getSlippageBps`

```java theme={null}
public Optional<Integer> getSlippageBps()
```

**Returns:**

`Optional<Integer>` - The maximum acceptable slippage of the `toToken` in basis points. If this parameter is set to 0, no slippage will be tolerated. If not provided, the default slippage tolerance is 100 bps (i.e., 1%).

### `equals`

```java theme={null}
public boolean equals(Object other)
```

**Overrides:**

`[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Parameters:**

`other` - `Object`

**Returns:**

`boolean`

### `getAdditionalProperties`

```java theme={null}
public Map<String,Object> getAdditionalProperties()
```

**Returns:**

`Map<String,Object>`

### `hashCode`

```java theme={null}
public int hashCode()
```

**Overrides:**

`[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`int`

### `toString`

```java theme={null}
public String toString()
```

**Overrides:**

`[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`String`

### `builder`

```java theme={null}
public static CreateEvmSwapQuoteRequest.NetworkStage builder()
```

**Returns:**

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