# TxEnvelopeEip4844.assert

Asserts a [`TxEnvelopeEip4844.TxEnvelopeEip4844`](/api/TxEnvelopeEip4844/types#txenvelopeeip4844) is valid.

## Imports

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

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

## Examples

```ts twoslash
import { TxEnvelopeEip4844, Value } from 'ox'

TxEnvelopeEip4844.assert({
  blobVersionedHashes: [],
  chainId: 1,
  to: '0x0000000000000000000000000000000000000000',
  value: Value.fromEther('1')
})
// @error: EmptyBlobVersionedHashesError: Blob versioned hashes must not be empty.
```

## Definition

```ts
function assert(
  envelope: PartialBy<TxEnvelopeEip4844, 'type'>,
): void
```

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

## Parameters

### envelope

* **Type:** `PartialBy<TxEnvelopeEip4844, 'type'>`

The transaction envelope to assert.

## Return Type

`void`
