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

# TxEnvelopeEip2930.validate

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

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

## Imports

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

## Examples

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

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

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
