# TxEnvelopeTempo.validate

Validates a [`TxEnvelopeTempo.TxEnvelopeTempo`](/tempo/reference/TxEnvelopeTempo/types#txenvelopetempo). Returns `true` if the envelope is valid, `false` otherwise.

## Imports

:::code-group
```ts [Named]
import { TxEnvelopeTempo } from 'ox/tempo'
```

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

## Examples

```ts twoslash
import { Address } from 'ox'
import { TxEnvelopeTempo } from 'ox/tempo'

const valid = TxEnvelopeTempo.validate({
  calls: [
    {
      data: '0xdeadbeef',
      to: Address.from(
        '0x0000000000000000000000000000000000000000'
      )
    }
  ],
  chainId: 1,
  maxFeePerGas: 1000000000n
})
// @log: true
```

## Definition

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

**Source:** [src/tempo/TxEnvelopeTempo.ts](https://github.com/wevm/ox/blob/main/src/tempo/TxEnvelopeTempo.ts#L1168)

## Parameters

### envelope

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

The transaction envelope to validate.

## Return Type

`boolean`
