> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Blobs.toVersionedHashes

:::info
`Blobs.toVersionedHashes` is a re-export of ox's [`Blobs.toVersionedHashes`](https://oxlib.sh/api/Blobs/toVersionedHashes). Refer to the ox documentation for the full reference.
:::

Compute Blob Versioned Hashes from a list of [`Blobs.Blobs`](/docs/utilities/blobs/types#blobs).

## Imports

```ts
import { Blobs } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Blobs } from 'viem/utils'
import { kzg } from './kzg'

const blobs = Blobs.from('0xdeadbeef')
const versionedHashes = Blobs.toVersionedHashes(blobs, {
  kzg
}) // [!code focus]
```

## Definition

```ts
function toVersionedHashes<blobs, as>(
  blobs: blobs | Blobs<Bytes.Bytes> | Blobs<Hex.Hex>,
  options: toVersionedHashes.Options<as>,
): toVersionedHashes.ReturnType<as>
```

## Parameters

### blobs

* **Type:** `blobs | Blobs<Bytes.Bytes> | Blobs<Hex.Hex>`

The [`Blobs.Blobs`](/docs/utilities/blobs/types#blobs) to transform into Blob Versioned Hashes.

### options

* **Type:** `toVersionedHashes.Options<as>`

Options.

#### options.as

* **Type:** `"Bytes" | "Hex" | as`
* **Optional**

Return type.

#### options.kzg

* **Type:** `Pick`

KZG implementation.

## Return Type

The Blob Versioned Hashes.

`toVersionedHashes.ReturnType<as>`
