# Channel.getVoucherSignPayload

Computes the EIP-712 sign payload for a TIP-20 channel voucher.

Mirrors `getVoucherDigest` on the TIP-20 channel reserve precompile without performing an RPC call.

## Imports

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

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

## Examples

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

const payload = Channel.getVoucherSignPayload({
  chainId: 4217,
  channelId:
    '0x0000000000000000000000000000000000000000000000000000000000000000',
  cumulativeAmount: 1n
})
```

## Definition

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

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

## Parameters

### value

* **Type:** `getVoucherSignPayload.Value`

Voucher fields and chain id.

#### value.chainId

* **Type:** `number | bigint`

Chain id used by the channel reserve precompile.

#### value.channelId

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

Channel id.

#### value.cumulativeAmount

* **Type:** `bigint`

Total voucher amount signed for the channel.

## Return Type

The voucher sign payload.

`Hex.Hex`
