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

# UserOperationReceipt

> UserOperationReceipt API reference.

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

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

## Method Details

### `getRevert`

```java theme={null}
public Optional<UserOperationReceiptRevert> getRevert()
```

**Returns:**

`Optional`\<[UserOperationReceiptRevert](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/UserOperationReceiptRevert)>

### `getTransactionHash`

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

**Returns:**

`Optional<String>` - The hash of this transaction as 0x-prefixed string.

### `getBlockHash`

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

**Returns:**

`Optional<String>` - The block hash of the block including the transaction as 0x-prefixed string.

### `getBlockNumber`

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

**Returns:**

`Optional<Integer>` - The block height (number) of the block including the transaction.

### `getGasUsed`

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

**Returns:**

`Optional<String>` - The gas used for landing this user operation.

### `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 UserOperationReceipt.Builder builder()
```

**Returns:**

[UserOperationReceipt](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/UserOperationReceipt).`Builder`
