# AccountOperation.getHash

Derives the deterministic hash for an account operation.

## Imports

:::code-group
```ts [Named]
import { AccountOperation } from 'ox/tempo'
```

```ts [Entrypoint]
import * as AccountOperation from 'ox/tempo/AccountOperation'
```
:::

## Examples

```ts twoslash
// @noErrors
import { AccountOperation } from 'ox/tempo'

const hash = AccountOperation.getHash({
  account,
  config,
  transaction,
  type: 'transaction'
})
```

## Definition

```ts
function getHash(
  options: getHash.Options,
): Hex.Hex
```

**Source:** [src/tempo/AccountOperation.ts](https://github.com/wevm/ox/blob/main/src/tempo/AccountOperation.ts#L91)

## Parameters

### options

* **Type:** `getHash.Options`

Operation payload and account identity.

#### options.account

* **Type:** `abitype_Address`

Root configurable account.

#### options.config

* **Type:** `{ owners: readonly Owner[]; salt: 0x${string}; threshold: number; version: bigint; }`

Complete root account configuration witness.

#### options.keyAuthorization

* **Type:** `0x${string}`

Canonical serialized key authorization.

#### options.transaction

* **Type:** `0x76${string} | 0x78${string}`

Canonical serialized Tempo envelope without its outer sender signature.

#### options.type

* **Type:** `"transaction"`

Operation kind.

## Return Type

The operation hash signed by each owner.

`Hex.Hex`
