> For the complete documentation index, see [llms.txt](https://docs.hatsprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hatsprotocol.xyz/for-developers/hats-account-sdk/1-of-n-hats-account/types.md).

# Types

### <mark style="color:purple;">Operation</mark>

Execution data for a Hats Account operation.

```typescript
{
  to: Address;
  value: bigint;
  data: Hex;
  operation: OperationType;
}
```

* to - The target address of the operation.
* value - The Ether value to be sent to the target.
* data - The encoded operation calldata.
* operation - A value of type [OperationType](#operationtype), indicating the type of operation to perform (call or delegate-call).

### <mark style="color:purple;">OperationType</mark>

Enum describing the operation to execute.

```typescript
enum OperationType {
  Call,
  DelegateCall,
}
```

### <mark style="color:purple;">CreateAccountResult</mark>

Account creation result.

```typescript
enum OperationType {
  status: "success" | "reverted";
  transactionHash: Address;
  newAccount: Address;
}
```

### <mark style="color:purple;">ExecutionResult</mark>

Hats Account execution result.

```typescript
enum OperationType {
  status: "success" | "reverted";
  transactionHash: Address;
}
```
