# TxEnvelopeTempo Errors

## `TxEnvelopeTempo.CallsEmptyError`

Thrown when a transaction's calls list is empty.

### Examples

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

TxEnvelopeTempo.assert({
  calls: [],
  chainId: 1
})
// @error: TxEnvelopeTempo.CallsEmptyError: Calls list cannot be empty.
```

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

## `TxEnvelopeTempo.InvalidValidityWindowError`

Thrown when validBefore is not greater than validAfter.

### Examples

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

TxEnvelopeTempo.assert({
  calls: [
    {
      to: Address.from(
        '0x0000000000000000000000000000000000000000'
      )
    }
  ],
  chainId: 1,
  validBefore: 100,
  validAfter: 200
})
// @error: TxEnvelopeTempo.InvalidValidityWindowError: validBefore (100) must be greater than validAfter (200).
```

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