# TxEnvelopeEip7702.validate

Validates a [`TxEnvelopeEip7702.TxEnvelopeEip7702`](/api/TxEnvelopeEip7702/types#txenvelopeeip7702). Returns `true` if the envelope is valid, `false` otherwise.

## Imports

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

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

## Examples

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

const valid = TxEnvelopeEip7702.validate({
  authorizationList: [],
  maxFeePerGas: 2n ** 256n - 1n + 1n,
  chainId: 1,
  to: '0x0000000000000000000000000000000000000000',
  value: Value.fromEther('1')
})
// @log: false
```

## Definition

```ts
function validate(
  envelope: PartialBy<TxEnvelopeEip7702, 'type'>,
): boolean
```

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

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
