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

# TxEnvelopeEip1559.getSignPayload

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

Returns the payload to sign for a [`TxEnvelopeEip1559.TxEnvelopeEip1559`](/docs/utilities/txenvelopeeip1559/types#txenvelopeeip1559).

## Imports

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

## Examples

The example below demonstrates how to compute the sign payload which can be used with ECDSA signing utilities like [`Secp256k1.sign`](/docs/utilities/secp256k1/sign).

```ts twoslash
// @noErrors
import { Secp256k1, TxEnvelopeEip1559 } from 'viem/utils'

const envelope = TxEnvelopeEip1559.from({
  chainId: 1,
  nonce: 0n,
  maxFeePerGas: 1000000000n,
  gas: 21000n,
  to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
  value: 1000000000000000000n
})

const payload = TxEnvelopeEip1559.getSignPayload(envelope) // [!code focus]
// @log: '0x...'

const signature = Secp256k1.sign({
  payload,
  privateKey: '0x...'
})
```

## Definition

```ts
function getSignPayload(
  envelope: TxEnvelopeEip1559,
): getSignPayload.ReturnType
```

## Parameters

### envelope

* **Type:** `TxEnvelopeEip1559`

The transaction envelope to get the sign payload for.

#### envelope.accessList

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

EIP-2930 Access List.

#### envelope.chainId

* **Type:** `numberType`

EIP-155 Chain ID.

#### envelope.data

* **Type:** `0x${string}`
* **Optional**

Contract code or a hashed method call with encoded args

#### envelope.from

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

Sender of the transaction. RPC-only metadata; not part of the
serialized envelope. Carried here for parity with
[`TransactionRequest.TransactionRequest`](/docs/utilities/transactionrequest/types#transactionrequest) and
[`Transaction.Transaction`](/docs/utilities/transaction/types#transaction).

#### envelope.gas

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

Gas provided for transaction execution

#### envelope.input

* **Type:** `0x${string}`
* **Optional**

#### 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.r

* **Type:** `0x${string}`

#### envelope.s

* **Type:** `0x${string}`

#### envelope.to

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

Transaction recipient

#### envelope.type

* **Type:** `type`

Transaction type

#### envelope.v

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

#### envelope.value

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

Value in wei sent with this transaction

#### envelope.yParity

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

ECDSA signature yParity.

## Return Type

The sign payload.

`getSignPayload.ReturnType`
