# TxEnvelopeEip1559.validate

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

## Imports

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

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

## Examples

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

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

## Definition

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

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

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
