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

# BankAccountUs

> BankAccountUs API reference.

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

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

## Method Details

### `getCurrency`

```java theme={null}
public BankAccountUsCurrency getCurrency()
```

**Returns:**

[BankAccountUsCurrency](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/BankAccountUsCurrency) - The fiat currency for the deposit destination.

### `getBankName`

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

**Returns:**

`String` - The name of the bank holding the account.

### `getBeneficiaryName`

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

**Returns:**

`String` - The name of the account beneficiary.

### `getRoutingNumber`

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

**Returns:**

`String` - The ABA routing number of the bank.

### `getAccountNumber`

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

**Returns:**

`String` - The bank account number.

### `getBankAddress`

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

**Returns:**

`Optional<String>` - The address of the bank. Present when required by the receiving institution.

### `getReferenceCode`

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

**Returns:**

`Optional<String>` - A reference code that must be included in the payment memo or reference field so the receiving institution can route the deposit to the correct account. Only present when required by the receiving institution.

### `getSupportedRails`

```java theme={null}
public List<DepositDestinationPaymentRail> getSupportedRails()
```

**Returns:**

`List`\<[DepositDestinationPaymentRail](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestinationPaymentRail)> - The payment rails this account can receive deposits on.

### `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 BankAccountUs.CurrencyStage builder()
```

**Returns:**

[BankAccountUs](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/BankAccountUs).`CurrencyStage`
