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

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

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

## Imports

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

## Examples

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

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
```

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
