# BlobCells.fromBlob

Compute the cells and KZG proofs for a single blob (PeerDAS, EIP-7594).

Returns 128 cells (each 2048 bytes) and 128 cell-level KZG proofs (each 48 bytes).

## Imports

:::code-group
```ts [Named]
import { BlobCells } from 'ox'
```

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

## Examples

```ts twoslash
// @noErrors
import { BlobCells, Blobs } from 'ox'
import { kzg } from './kzg'

const [blob] = Blobs.from('0xdeadbeef')
const { cells, proofs } = BlobCells.fromBlob(blob, { kzg })
```

## Definition

```ts
function fromBlob<blob, as>(
  blob: blob | Hex.Hex | Bytes.Bytes,
  options: fromBlob.Options<as>,
): fromBlob.ReturnType<as>
```

**Source:** [src/core/BlobCells.ts](https://github.com/wevm/ox/blob/main/src/core/BlobCells.ts#L380)

## Parameters

### blob

* **Type:** `blob | Hex.Hex | Bytes.Bytes`

The blob to convert.

### options

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

Options.

#### options.as

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

Return type.

#### options.kzg

* **Type:** `Pick`

KZG implementation.

## Return Type

The cells and proofs.

`fromBlob.ReturnType<as>`
