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

# TxEnvelopeEip7702.assert

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

Asserts a [`TxEnvelopeEip7702.TxEnvelopeEip7702`](/docs/utilities/txenvelopeeip7702/types#txenvelopeeip7702) is valid.

## Imports

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

## Examples

```ts twoslash
// @noErrors
import { TxEnvelopeEip7702, Value } from 'viem/utils'

TxEnvelopeEip7702.assert({
  authorizationList: [],
  maxFeePerGas: 2n ** 256n - 1n + 1n,
  chainId: 1,
  to: '0x0000000000000000000000000000000000000000',
  value: Value.fromEther('1')
})
// @error: FeeCapTooHighError:
// @error: The fee cap (`masFeePerGas` = 115792089237316195423570985008687907853269984665640564039457584007913 gwei) cannot be
// @error: higher than the maximum allowed value (2^256-1).
```

## Definition

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

## Parameters

### envelope

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

The transaction envelope to assert.

## Return Type

`void`
