# 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;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hatsprotocol.xyz/for-developers/hats-account-sdk/1-of-n-hats-account/types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
