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

# Authorization.getSignPayload

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

Computes the sign payload for an [`Authorization.Authorization`](/docs/utilities/authorization/types#authorization) in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`.

## Imports

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

## Examples

The example below demonstrates computing the sign payload for an [`Authorization.Authorization`](/docs/utilities/authorization/types#authorization). This payload can then be passed to signing functions like [`Secp256k1.sign`](/docs/utilities/secp256k1/sign).

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

const authorization = Authorization.from({
  address: '0x1234567890abcdef1234567890abcdef12345678',
  chainId: 1,
  nonce: 69n
})

const payload = Authorization.getSignPayload(authorization) // [!code focus]

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

## Definition

```ts
function getSignPayload(
  authorization: Authorization,
): Hex.Hex
```

## Parameters

### authorization

* **Type:** `Authorization`

The [`Authorization.Authorization`](/docs/utilities/authorization/types#authorization).

#### authorization.address

* **Type:** `abitype_Address`

Address of the contract to set as code for the Authority.

#### authorization.chainId

* **Type:** `numberType`

Chain ID to authorize.

#### authorization.nonce

* **Type:** `bigintType`

Nonce of the Authority to authorize.

## Return Type

The sign payload.

`Hex.Hex`
