# ValidatorData.getSignPayload

Gets the payload to use for signing [ERC-191 formatted](https://eips.ethereum.org/EIPS/eip-191#0x00) data with an intended validator.

## Imports

:::code-group
```ts [Named]
import { ValidatorData } from 'ox'
```

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

## Examples

```ts twoslash
import { Hex, Secp256k1, ValidatorData } from 'ox'

const payload = ValidatorData.getSignPayload({
  // [!code focus]
  data: Hex.fromString('hello world'), // [!code focus]
  validator: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045' // [!code focus]
}) // [!code focus]

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

## Definition

```ts
function getSignPayload(
  value: getSignPayload.Value,
): Hex.Hex
```

**Source:** [src/core/ValidatorData.ts](https://github.com/wevm/ox/blob/main/src/core/ValidatorData.ts#L87)

## Parameters

### value

* **Type:** `getSignPayload.Value`

The data to get the sign payload for.

#### value.data

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

#### value.validator

* **Type:** `abitype_Address`

## Return Type

The payload to use for signing.

`Hex.Hex`
