# TxEnvelopeEip2930.validate

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

## Imports

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

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

## Examples

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

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

## Definition

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

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

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
