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

# TxEnvelopeEip1559.validate

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

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

## Imports

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

## Examples

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

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

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
