> **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.

# Kzg.from

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

Defines a KZG interface.

## Imports

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

## Examples

```ts twoslash
// @noErrors
import * as cKzg from 'c-kzg'
import { Kzg } from 'viem/utils'
import { Paths } from 'viem/utils'

cKzg.loadTrustedSetup(Paths.mainnet)

const kzg = Kzg.from(cKzg)
```

## Definition

```ts
function from(
  value: Kzg,
): Kzg
```

## Parameters

### value

* **Type:** `Kzg`

The KZG object to convert.

#### value.cells

* **Type:** `readonly Uint8Array[]`

#### value.proofs

* **Type:** `readonly Uint8Array[]`

## Return Type

The KZG interface object.

`Kzg`
