# TxEnvelopeTempo.toTransactionRequest

Converts a [`TxEnvelopeTempo.TxEnvelopeTempo`](/tempo/reference/TxEnvelopeTempo/types#txenvelopetempo) to a Tempo [`TransactionRequest.TransactionRequest`](/api/TransactionRequest/types#transactionrequest).

Preserves `signature` and `feePayerSignature`. The Tempo `TransactionRequest` shape carries the same envelope-style signature fields so signed envelopes can be round-tripped through the request representation without information loss.

## Imports

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

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

## Examples

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

const envelope = TxEnvelopeTempo.from({
  calls: [
    { to: '0x0000000000000000000000000000000000000000' }
  ],
  chainId: 1,
  maxFeePerGas: 1n
})

const request =
  TxEnvelopeTempo.toTransactionRequest(envelope)
```

## Definition

```ts
function toTransactionRequest(
  envelope: TxEnvelopeTempo,
): TransactionRequest.TransactionRequest
```

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

## Parameters

### envelope

* **Type:** `TxEnvelopeTempo`

The Tempo transaction envelope to convert.

#### envelope.accessList

* **Type:** `readonly { address: abitype_Address; storageKeys: readonly 0x${string}[]; }[]`
* **Optional**

EIP-2930 Access List.

#### envelope.authorizationList

* **Type:** `readonly { address: abitype_Address; chainId: numberType; nonce: bigintType; signature: SignatureEnvelope; }[]`
* **Optional**

EIP-7702 (Tempo) Authorization list for the transaction.

#### envelope.calls

* **Type:** `readonly Call[]`

Array of calls to execute.

#### envelope.chainId

* **Type:** `numberType`

EIP-155 Chain ID.

#### envelope.feePayerSignature

* **Type:** `{ r: 0x${string}; s: 0x${string}; yParity: numberType; }`
* **Optional**

Fee payer signature.

#### envelope.feeToken

* **Type:** `Address.Address | undefined`
* **Optional**

Fee token preference. Address of the TIP-20 token.

#### envelope.from

* **Type:** `Address.Address | undefined`
* **Optional**

Sender of the transaction.

#### envelope.gas

* **Type:** `bigintType`
* **Optional**

Gas provided for transaction execution

#### envelope.keyAuthorization

* **Type:** `Signed`
* **Optional**

Key authorization for provisioning a new access key.

When present, this transaction will add the specified key to the AccountKeychain precompile,
before verifying the transaction signature.
The authorization must be signed with the root key, the tx can be signed by the Keychain signature.

#### envelope.maxFeePerGas

* **Type:** `bigintType`
* **Optional**

Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas).

#### envelope.maxPriorityFeePerGas

* **Type:** `bigintType`
* **Optional**

Max priority fee per gas (in wei).

#### envelope.nonce

* **Type:** `bigintType`
* **Optional**

Unique number identifying this transaction

#### envelope.nonceKey

* **Type:** `bigintType`
* **Optional**

Nonce key for 2D nonce system (192 bits).

#### envelope.signature

* **Type:** `SignatureEnvelope`
* **Optional**

#### envelope.type

* **Type:** `type`

Transaction type

#### envelope.validAfter

* **Type:** `numberType`
* **Optional**

Transaction can only be included in a block after this timestamp.

#### envelope.validBefore

* **Type:** `numberType`
* **Optional**

Transaction can only be included in a block before this timestamp.

## Return Type

A Tempo transaction request.

`TransactionRequest.TransactionRequest`
