# ZoneRpcAuthentication.hash

Computes the raw authorization hash for a Zone RPC authentication token.

The hash is `keccak256(magicBytes || fields)`.

## Imports

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

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

## Examples

```ts twoslash
import { ZoneRpcAuthentication } from 'ox/tempo'

const authentication = ZoneRpcAuthentication.from({
  chainId: 4217000026,
  expiresAt: 1711235160,
  issuedAt: 1711234560,
  zoneId: 26
})

const hash = ZoneRpcAuthentication.hash(authentication)
```

## Definition

```ts
function hash(
  authentication: PartialBy<ZoneRpcAuthentication, 'version'>,
): Hex.Hex
```

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

## Parameters

### authentication

* **Type:** `PartialBy<ZoneRpcAuthentication, 'version'>`

The Zone RPC authentication token.

## Return Type

The authorization hash.

`Hex.Hex`
